-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Massive js chunks generated in one page #2675
Comments
@swwind I tried to reproduce the issue, using your code. The files created in public/build were
The routes directory also had only a single chunk. |
@Jaikant Most of them located in I created a repo swwind/remix-build-issue for this issue, you can clone and try to build it. |
@swwind yes, I could see the bunch of files getting created in This issue could be related to evanw/esbuild#1581 |
I don't think this is a bug. If you want to avoid loading all languages definitions for Prism, just to use a single one, you should lighten your build: Feel free to open a new Proposal if you want to be able to fine-tune default esbuild chunking 🙏🏼 |
What version of Remix are you using?
1.3.4
Steps to Reproduce
in
app/routes/index.tsx
Expected Behavior
Remix build can bundle multiple dependencies into one single (or a few) js chunks.
Actual Behavior
Remix generated almost 300 js chunks, and most of them are only 1~2kb size.
The text was updated successfully, but these errors were encountered: