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

feat: add runtime plugin hooks #9084

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

LingyuCoder
Copy link
Contributor

@LingyuCoder LingyuCoder commented Jan 22, 2025

Summary

relate to #4381

Support RuntimePlugin.getCompilationHooks to modify the code which create script and link tags. Just like mainTemplate.jsonpScript/linkPrefetch/linkPreload in webpack

Cause load script runtime module is not only used in jsonp chunk loading, so rename jsonScript to its inner name createScript in webpack

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Jan 22, 2025

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 4e16a0c
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/6790f99b3111430007c6b442
😎 Deploy Preview https://deploy-preview-9084--rspack.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Jan 22, 2025
Copy link

codspeed-hq bot commented Jan 22, 2025

CodSpeed Performance Report

Merging #9084 will not alter performance

Comparing feat/runtime-plugin-hooks (4e16a0c) with main (06807ac)

Summary

✅ 3 untouched benchmarks

@LingyuCoder LingyuCoder enabled auto-merge (squash) January 22, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant