-
-
Notifications
You must be signed in to change notification settings - Fork 612
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
feat: runtime template with dojang #8851
base: main
Are you sure you want to change the base?
feat: runtime template with dojang #8851
Conversation
✅ Deploy Preview for rspack canceled.Built without sensitive environment variables
|
CodSpeed Performance ReportMerging #8851 will not alter performanceComparing Summary
|
474169e
to
8ceb776
Compare
b1ea775
to
a3e3856
Compare
You can add a new test processor which extends |
Done~ |
3a0b050
to
34720a9
Compare
ff68d97
to
074d8bc
Compare
Summary
Use dojang to render runtime modules, related to #5316
Use dojang because it supports custom function, and we can use the same code in template to generate different result by inject functions according to output.environment, and also html plugin is using it so the package size will not increase.
Inject runtime globals as parameters by default.
Dojang only support string literal so array of strings need to be joined with ,.
relate to rspack-contrib/rspack-dojang#3
for example, the on chunk loaded runtime module can be rendered by template blow:
Fork from #7764
Checklist