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

chore: remove Compilation.updateAsset comment #7628

Merged
merged 1 commit into from
Aug 20, 2024
Merged

chore: remove Compilation.updateAsset comment #7628

merged 1 commit into from
Aug 20, 2024

Conversation

h-a-n-a
Copy link
Collaborator

@h-a-n-a h-a-n-a commented Aug 20, 2024

Summary

Webpack uses a separate Compilation.assetInfo to store AssetInfo. An empty object will be passed to the first argument assetInfoUpdateOrFunction if it's a function and without AssetInfo bound to it. Ref.

Rspack will always store a default AssetInfo if nothing is provided. This makes these two implementation(webpack and rspack) almost the same(both results in nullish values per request). So here I removed the comment.

Checklist

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

@h-a-n-a h-a-n-a enabled auto-merge (squash) August 20, 2024 10:07
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Aug 20, 2024
Copy link

netlify bot commented Aug 20, 2024

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 80dc6db
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/66c46ad53fd2840008d43644

@h-a-n-a h-a-n-a merged commit b433f96 into main Aug 20, 2024
35 checks passed
@h-a-n-a h-a-n-a deleted the fix-comment branch August 20, 2024 11:08
@chenjiahan chenjiahan mentioned this pull request Aug 23, 2024
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.

2 participants