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]: Support renderModuleContent and other hooks of JavascriptModulesPlugin #8714

Open
steverep opened this issue Dec 16, 2024 · 0 comments
Assignees
Labels
feat New feature or request

Comments

@steverep
Copy link
Contributor

What problem does this feature solve?

Currently there is only support for the chunkHash hook when calling the static method getCompilationHooks of JavascriptModulesPlugin. There are many more hooks available in the Webpack API in order to manipulate the modules as they are wrapped and chunked. I do not think there is any other way to do this.

For example, my plugin transform-async-modules-webpack-plugin cannot be Rspack compatible because it uses the renderModuleContent tap.

What does the proposed API of configuration look like?

Here's the full list of hooks:

https://github.com/webpack/webpack/blob/8a04c64e5e8e1b7ed1fd4b942a3d277296f14ef9/lib/javascript/JavascriptModulesPlugin.js#L175-L190

@steverep steverep added feat New feature or request pending triage The issue/PR is currently untouched. labels Dec 16, 2024
@chenjiahan chenjiahan removed the pending triage The issue/PR is currently untouched. label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants