Replies: 4 comments
-
Probably a duplicate of #65360. |
Beta Was this translation helpful? Give feedback.
-
need ^^ |
Beta Was this translation helpful? Give feedback.
-
Hey @kdy1, I know you added support for this in #69703. However, it seems like you still can't pass a Is this achievable in some way? |
Beta Was this translation helpful? Give feedback.
-
@timneutkens, is this ever going to be supported? It seems like most development is geared towards Turbopack atm and I'm finding it hard to keep our application compatible with Next.js. We have hundreds of SVGs (flags, crypto icons etc) that we don't want to bundle but load as files, but we still have some UI icons that we want to bundle so that we can change their color etc. This issue has been blocking us from migrating for over a year now... Today this PR was merged which will degrade our app performance one way or the other since we also use Sentry which isn't compatible with I realize this forum isn't support ticket system just for me, but this seems like an essential feature if you're real about performance and I've been nagging you guys in other similar issues/PR:s about this all year. I would gladly do it myself but I'm not too familiar with your Rust code. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
N/A
Background
In our app we're currently still using Webpack due to incompatibilities with Turbopack. One of the larger ones is supporting bundling SVGs depending on the
resourceQuery
property in the Webpack loaders. For smaller icons that we need to be able to change color on etc, we bundle withsvgr
, but for larger SVG images we just let the URL loader handle it to avoid increasing the bundle size unnecessarily. The configuration looks like this:So an import ending with
.svg?url
will not be bundled whereas the rest of the.svg
imports will. This helps save bundle size greatly.Proposal
I don't have a strong opinion on how this should be implemented, maybe you want to go the same route as Webpack, or maybe you have something planned for this already. But for someone who is eager to switch to Turbopack, I'm hoping that a stopgap solution would be fine in the meantime.
Beta Was this translation helpful? Give feedback.
All reactions