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

[Feature]: I want to use chunk-rename-webpack-plugin, which relies on optimizeChunks that is not supported #8427

Open
xierenyuan opened this issue Nov 13, 2024 · 1 comment
Labels
feat New feature or request pending triage The issue/PR is currently untouched.

Comments

@xierenyuan
Copy link

What problem does this feature solve?

I want to use chunk-rename-webpack-plugin, which relies on optimizeChunks that is not supported. Are there any other hooks that can be used as a replacement
https://github.com/sueddeutsche/chunk-rename-webpack-plugin/blob/master/lib/index.js#L38C35-L38C49

What does the proposed API of configuration look like?

optimizeChunks
https://github.com/sueddeutsche/chunk-rename-webpack-plugin/blob/master/lib/index.js#L38C35-L38C49 or any other alternative APIs?

@xierenyuan xierenyuan added feat New feature or request pending triage The issue/PR is currently untouched. labels Nov 13, 2024
@JSerFeng
Copy link
Collaborator

OptimizeChunks hook in webpack allows modification of chunk graph, which is not supposed to work in Rspack at present, so any modification to chunk is not allowed.

But you can tell me your needs, maybe there is another way like changing the output.filename or splitChunks configuration ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request pending triage The issue/PR is currently untouched.
Projects
None yet
Development

No branches or pull requests

2 participants