Skip to content
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

Add webpackchunkname everywhere #10617

Open
6 tasks
MV88 opened this issue Oct 16, 2024 · 2 comments
Open
6 tasks

Add webpackchunkname everywhere #10617

MV88 opened this issue Oct 16, 2024 · 2 comments

Comments

@MV88
Copy link
Contributor

MV88 commented Oct 16, 2024

Description

Many times if you look at the network tab for js files there are man that does not have a named chuck, only the sha, it would be better to change this and add webpackChunkName comment as done here

import(/* webpackChunkName: 'plugins/attribution' */ './plugins/Attribution')),

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

Other useful information

@allyoucanmap
Copy link
Contributor

We can also take a look if the optimization.chunkIds could help us in this issue (It seems by default is set to named in dev while deterministic in prod).

@MV88
Copy link
Contributor Author

MV88 commented Oct 16, 2024

i am thinking that if name is not changing over time wouldn't that be good for caching as well ?

if so we might move to named also in production

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants