Skip to content

Conversation

@LingyuCoder
Copy link
Contributor

@LingyuCoder LingyuCoder commented Nov 7, 2025

Summary

Should not inject css loading prefetch/preload runtime when only prefetch/preload js chunks.

Related links

Checklist

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

Copilot AI review requested due to automatic review settings November 7, 2025 07:20
@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 0128442
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/690dc10528b6230008020614

@github-actions github-actions bot added release: bug fix release: bug related release(mr only) team The issue/pr is created by the member of Rspack. labels Nov 7, 2025
Copy link
Contributor

Copilot AI left a 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.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

📦 Binary Size-limit

Comparing 0128442 to refactor: remove support for nested importModule usage (#12111) by jinrui

❌ Size increased by 29.75KB from 47.90MB to 47.92MB (⬆️0.06%)

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 7, 2025

CodSpeed Performance Report

Merging #12112 will not alter performance

Comparing fix/css-inject-prefetch-runtime (0128442) with main (a2ba295)

Summary

✅ 17 untouched

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2025

📝 Benchmark detail: Open

Name Base (2025-11-07 6737fba) Current Change
10000_big_production-mode_disable-minimize + exec 25.4 s ± 552 ms 25.4 s ± 576 ms +0.04 %
10000_development-mode + exec 1.32 s ± 53 ms 1.31 s ± 12 ms -0.44 %
10000_development-mode_hmr + exec 633 ms ± 6.7 ms 620 ms ± 5.3 ms -2.10 %
10000_development-mode_noop-loader + exec 2.25 s ± 148 ms 2.24 s ± 53 ms -0.39 %
10000_production-mode + exec 1.38 s ± 15 ms 1.36 s ± 15 ms -1.62 %
10000_production-mode_persistent-cold + exec 1.55 s ± 59 ms 1.51 s ± 41 ms -2.48 %
10000_production-mode_persistent-hot + exec 1.05 s ± 14 ms 1.05 s ± 32 ms -0.38 %
arco-pro_development-mode + exec 1.61 s ± 99 ms 1.6 s ± 66 ms -0.67 %
arco-pro_development-mode_hmr + exec 359 ms ± 1.9 ms 359 ms ± 2.3 ms -0.02 %
arco-pro_production-mode + exec 2.87 s ± 78 ms 2.94 s ± 125 ms +2.34 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 2.94 s ± 70 ms 3 s ± 42 ms +2.11 %
arco-pro_production-mode_persistent-cold + exec 2.96 s ± 105 ms 3.04 s ± 150 ms +2.63 %
arco-pro_production-mode_persistent-hot + exec 1.69 s ± 57 ms 1.66 s ± 39 ms -1.68 %
arco-pro_production-mode_traverse-chunk-modules + exec 2.91 s ± 49 ms 2.96 s ± 101 ms +1.76 %
large-dyn-imports_development-mode + exec 1.61 s ± 38 ms 1.62 s ± 78 ms +0.37 %
large-dyn-imports_production-mode + exec 1.65 s ± 182 ms 1.61 s ± 18 ms -2.13 %
threejs_development-mode_10x + exec 1.3 s ± 12 ms 1.31 s ± 42 ms +1.01 %
threejs_development-mode_10x_hmr + exec 918 ms ± 24 ms 924 ms ± 8.6 ms +0.65 %
threejs_production-mode_10x + exec 4 s ± 132 ms 4.03 s ± 184 ms +0.72 %
threejs_production-mode_10x_persistent-cold + exec 4.11 s ± 49 ms 4.16 s ± 284 ms +1.21 %
threejs_production-mode_10x_persistent-hot + exec 3.64 s ± 281 ms 3.59 s ± 53 ms -1.33 %
10000_big_production-mode_disable-minimize + rss memory 5812 MiB ± 137 MiB 5828 MiB ± 273 MiB +0.28 %
10000_development-mode + rss memory 601 MiB ± 27.9 MiB 579 MiB ± 24.3 MiB -3.70 %
10000_development-mode_hmr + rss memory 743 MiB ± 28.4 MiB 728 MiB ± 23.1 MiB -2.07 %
10000_development-mode_noop-loader + rss memory 906 MiB ± 38.9 MiB 891 MiB ± 23 MiB -1.67 %
10000_production-mode + rss memory 557 MiB ± 14.8 MiB 553 MiB ± 21.2 MiB -0.78 %
10000_production-mode_persistent-cold + rss memory 667 MiB ± 69.9 MiB 655 MiB ± 21.8 MiB -1.81 %
10000_production-mode_persistent-hot + rss memory 637 MiB ± 12 MiB 632 MiB ± 15.5 MiB -0.77 %
arco-pro_development-mode + rss memory 495 MiB ± 67.6 MiB 470 MiB ± 35.6 MiB -5.03 %
arco-pro_development-mode_hmr + rss memory 389 MiB ± 8.51 MiB 387 MiB ± 10.8 MiB -0.45 %
arco-pro_production-mode + rss memory 608 MiB ± 52.9 MiB 628 MiB ± 64.8 MiB +3.26 %
arco-pro_production-mode_generate-package-json-webpack-plugin + rss memory 607 MiB ± 43.3 MiB 592 MiB ± 59.2 MiB -2.62 %
arco-pro_production-mode_persistent-cold + rss memory 687 MiB ± 63.2 MiB 698 MiB ± 60.4 MiB +1.56 %
arco-pro_production-mode_persistent-hot + rss memory 523 MiB ± 67.4 MiB 515 MiB ± 47.2 MiB -1.39 %
arco-pro_production-mode_traverse-chunk-modules + rss memory 626 MiB ± 111 MiB 626 MiB ± 39 MiB -0.04 %
large-dyn-imports_development-mode + rss memory 612 MiB ± 8.57 MiB 609 MiB ± 7.57 MiB -0.56 %
large-dyn-imports_production-mode + rss memory 539 MiB ± 4.49 MiB 536 MiB ± 4.45 MiB -0.42 %
threejs_development-mode_10x + rss memory 536 MiB ± 11.3 MiB 525 MiB ± 25.7 MiB -2.17 %
threejs_development-mode_10x_hmr + rss memory 742 MiB ± 47.6 MiB 721 MiB ± 35 MiB -2.81 %
threejs_production-mode_10x + rss memory 762 MiB ± 146 MiB 725 MiB ± 195 MiB -4.91 %
threejs_production-mode_10x_persistent-cold + rss memory 783 MiB ± 41.6 MiB 774 MiB ± 67.7 MiB -1.11 %
threejs_production-mode_10x_persistent-hot + rss memory 636 MiB ± 21.5 MiB 616 MiB ± 16.5 MiB -3.01 %

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: bug fix release: bug 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.

2 participants