turbo
1caac877 - feat(turbopack): emit raw image bytes for unsupported codec (#5967)

Commit
2 years ago
feat(turbopack): emit raw image bytes for unsupported codec (#5967) ### Description Turbopack fails & errors when the given image import is non decode / encodeable. This is a large papercut to run some pages as single image import blockes entire page rendering. Enabling those codec support (avif, webp) is unforunately not trivial to achieve across all of the platforms. This PR flips the approach, instead of bailing out if certain compile time feature is not enabled (webp/avif), emits raw bytes to the image directly. Browser may / may not support render, also this disables optimizations but at least can render remaining pages. It is stopgap still; the eventual goal is enable full codec support. Closes WEB-1590
Author
Parents
Loading