-
-
Notifications
You must be signed in to change notification settings - Fork 549
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
fix: collect auxiliary assets from module #7222
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Test Compatibility Diff
Unpassed tests4 🔴 Stats chunkGroups: TODO |
Summary
Close #4923
Collect auxiliary assets from module
buildInfo.assetFilenames
because it is immutable after module making parse.compilation.module_assets
to store the mapping from module identifier to emitted assets.loaderContext.emitFile
will add a mapping here and add the asset to chunks which are related to module.loaderContext.emitFile
inloaderContext.importModule
, the module asset fromemitFile
will on the main compilation but the chunk asset will on the execute module compilation. So we need to collect all module assets of execute module compilation and add them to the executing entry module.Checklist