You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am migrating an app from Webpack and I am using the webpackChunkName feature, which is not currently supported by esbuild. I am determined to make this work though because the improvement to my workflow is so enormous (thanks!).
esbuild is currently creating chunks that are not exactly aligned with what I want, because of the aforementioned lack of webpackChunkName support. To get around this, I am hoping to manually concatenate the relevant chunks server-side.
I will need to manually parse through the main chunk to find the chunk IDs (I can do this), but I am struggling with how to make the exports/imports work.
The chunks have this at the bottom:
export{fa as a,Kf as b,Jf as c,G2 as d,$1 as e,PC as f, [...]
and the main chunk has this:
import{Oa as ie,Sa as he,Ta as we, [...]} from"/[...]/chunk.TJ4BB7AT.js";
Question is: what modifications do I need to do so that I can manually put the split chunks at the top of the main chunk?
Thanks!
The text was updated successfully, but these errors were encountered:
Sorry, this is a question, not a bug.
I am migrating an app from Webpack and I am using the
webpackChunkName
feature, which is not currently supported by esbuild. I am determined to make this work though because the improvement to my workflow is so enormous (thanks!).esbuild is currently creating chunks that are not exactly aligned with what I want, because of the aforementioned lack of
webpackChunkName
support. To get around this, I am hoping to manually concatenate the relevant chunks server-side.I will need to manually parse through the main chunk to find the chunk IDs (I can do this), but I am struggling with how to make the exports/imports work.
The chunks have this at the bottom:
and the main chunk has this:
Question is: what modifications do I need to do so that I can manually put the split chunks at the top of the main chunk?
Thanks!
The text was updated successfully, but these errors were encountered: