next.js
2b635e55 - Turbopack: ignore static asset imports for Edge (#77382)

Commit
1 year ago
Turbopack: ignore static asset imports for Edge (#77382) Closes PACK-4072 Ignore static asset imports in Edge, these are really intended for the client (i.e. for pages and not routes, for example `import logo from "./logo.svg"`), while still allowing `new URL(..., import.meta.url)`. This replicates what Webpack does. A proper solution for assets on Edge would require some change on the Next.js side to actually tell the bundler if an asset is intended for the server (e.g. for next/og: wasm, fonts), or for the browser.
Author
Parents
Loading