-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customizable chunk splitting behavior #2317
Comments
👍
or something like that.. |
Another idea..
|
I really would like to support this idea. We just tried out esbuild by replacing webpack in our project with esbuild. The build time is way faster but the loading time of the website is a lot slower because it has to load 60 different js files instas of 20 with webpack. We use Webpacks maxInitialRequests: 2 split option. |
Dupe of #1128 |
Closing in favor of #1128 |
WebPack has some options for customizing how chunks will be generated (https://webpack.js.org/plugins/split-chunks-plugin/#optimizationsplitchunks) and I think it'd be useful to port (some?) of them over.
In particular I miss the "minSize" option, which tells the bundler to not make chunks below the set size threshold basically. That's pretty useful because for example for my use case I'd rather always pay 0.5kb of bundle size for something rather than pay a network request for it in the future.
The text was updated successfully, but these errors were encountered: