-
-
Notifications
You must be signed in to change notification settings - Fork 733
fix: should not inject css prefetch/preload runtime when only prefetch/preload js chunks #12112
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
base: main
Are you sure you want to change the base?
Conversation
…h javascript chunks
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR enables several previously disabled tests and refactors the get_child_ids_by_order method in the Rust core. The changes include:
- Enabling tests that were previously marked as "FIXME" or unstable
- Updating test assertions to match new behavior in prefetch/preload ordering
- Refactoring Rust code to simplify child chunk ID collection logic
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/rspack-test/hotCases/worker/remove-add-worker/test.filter.js | Removed file that was disabling the test |
| tests/rspack-test/hotCases/worker/remove-add-worker/test.config.js | Added Worker configuration to moduleScope |
| tests/rspack-test/hotCases/runtime/root-error/test.filter.js | Updated TODO message |
| tests/rspack-test/hotCases/loader-import-module/css/test.filter.js | Changed from disabled to enabled test |
| tests/rspack-test/hotCases/loader-import-module/css/stylesheet.css.js | Removed HMR accept calls |
| tests/rspack-test/configCases/web/prefetch-preload-module/index.mjs | Reordered test assertions for prefetch/preload |
| tests/rspack-test/configCases/web/prefetch-preload-module-only-js/test.filter.js | Removed file that was disabling the test |
| tests/rspack-test/configCases/web/prefetch-preload-module-only-js/index.mjs | Removed charset assertion |
| tests/rspack-test/configCases/css/prefetch-preload-module/index.mjs | Reordered test assertions |
| tests/rspack-test/configCases/css/import/test.filter.js | Updated TODO message |
| tests/rspack-test/configCases/css/import/test.config.js | Changed how STATS_I is accessed |
| tests/rspack-test/configCases/css/import/index.js | Updated import mechanism and helper function usage |
| tests/rspack-test/configCases/asset-modules/errored/test.filter.js | Updated TODO message |
| crates/rspack_core/src/chunk.rs | Refactored get_child_ids_by_order to inline logic |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Binary Size-limit
❌ Size increased by 29.75KB from 47.90MB to 47.92MB (⬆️0.06%) |
CodSpeed Performance ReportMerging #12112 will not alter performanceComparing Summary
|
…h javascript chunks
…h javascript chunks
…h javascript chunks
|
📝 Benchmark detail: Open
|
Summary
Should not inject css loading prefetch/preload runtime when only prefetch/preload js chunks.
Related links
Checklist