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

docs: addRuntimeModule and runtimeRequirementInTree #7938

Merged
merged 4 commits into from
Sep 24, 2024

Conversation

LingyuCoder
Copy link
Collaborator

@LingyuCoder LingyuCoder commented Sep 20, 2024

Summary

Should merge after releasing 1.0.6

Add docs of compilation.addRuntimeModule and compilation.hooks.runtimeRequirementInTree

Checklist

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

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Sep 20, 2024
Copy link

netlify bot commented Sep 20, 2024

Deploy Preview for rspack ready!

Name Link
🔨 Latest commit 696ef5f
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66f26d3ddc3259000768aa4d
😎 Deploy Preview https://deploy-preview-7938--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 release: document release: document related release(mr only) label Sep 20, 2024
@LingyuCoder LingyuCoder marked this pull request as ready for review September 24, 2024 06:48
@chenjiahan chenjiahan merged commit ac92769 into main Sep 24, 2024
28 checks passed
@chenjiahan chenjiahan deleted the docs/add-runtime-module branch September 24, 2024 07:44
super('custom');
}

generate(compilation) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just wondering, is this compilation param a typo?

Webpack types do not have it:
https://github.com/webpack/webpack/blob/main/types.d.ts#L12839

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right. Pass the compilation as param of RuntimeModule.generate is not aligned with webpack. I will fix it in #8000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release: document release: document related release(mr only) team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants