rspack icon indicating copy to clipboard operation
rspack copied to clipboard

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

Open xierenyuan opened this issue 1 year ago • 2 comments

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 avatar Nov 13 '24 11:11 xierenyuan

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 ?

JSerFeng avatar Nov 15 '24 07:11 JSerFeng

This issue has been automatically marked as stale because it has not had recent activity. If this issue is still affecting you, please leave any comment (for example, "bump"). We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

stale[bot] avatar Feb 28 '25 23:02 stale[bot]