-
Notifications
You must be signed in to change notification settings - Fork 18
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
Is it possible to change chunk filenames? #344
Comments
Hey @insectman, I didn't catch how does chunk renaming will help you? Technically, you could clone this repo, modify rollup config and bundle your own custom package. But I think it's better to figure out why your CI is ignoring dynamic imports and fix it. What bundler do you use on CI? Could you share the config or something that would help me to reproduce the problem? |
I misworded my question a bit - after bundles are generated, they're deployed with shopify theme kit, which ignores everything, that contains "node_modules" in filename, and there seemingly is no option to disable this ignore rule. |
What tool do you use to generate the bundle?
I don't quite understand what you mean. The So there is a problem with dynamic imports only? And you have no problems with other NPM packages without dynamic imports? I guess your bundler could process them incorrectly, may I take a look on to your generated bundle? |
|
For those, who may encounter the same problem, I was able to resolve it by using following webpack plugin:
|
Question
Is there a way to alter generated chunk filenames?
Uploader & Dialog chunks are using relative path, resulting strings contain "node_modules" substring, which causes chunks to be ignored by one of components of my CI pipeline.
The text was updated successfully, but these errors were encountered: