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 compilation.runtimeTemplate api #8403

Open
hardfist opened this issue Nov 12, 2024 · 0 comments
Open

[Feature]: support compilation.runtimeTemplate api #8403

hardfist opened this issue Nov 12, 2024 · 0 comments
Labels
feat New feature or request pending triage The issue/PR is currently untouched. team The issue/pr is created by the member of Rspack.

Comments

@hardfist
Copy link
Contributor

hardfist commented Nov 12, 2024

What problem does this feature solve?

lots of plugins use runtimeTemplate api to inject runtime code(like https://www.npmjs.com/package/webpack-retry-chunk-load-plugin) ,without runtimeTemplate api it is hard to migrate webpack plugin to be compatible with rspack.

notice runtimeTemplate and mainTemplate are two different things, runtimeTemplate is more like a utility function and mainTemplate is more like a builtin custom runtime module

What does the proposed API of configuration look like?

same as webpack https://github.com/webpack/webpack/blob/main/lib/RuntimeTemplate.js

@hardfist hardfist added feat New feature or request pending triage The issue/PR is currently untouched. labels Nov 12, 2024
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 12, 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 pending triage The issue/PR is currently untouched. team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

No branches or pull requests

1 participant