diff --git a/crates/rspack_core/src/build_chunk_graph/new_code_splitter.rs b/crates/rspack_core/src/build_chunk_graph/new_code_splitter.rs index f8209927de0e..f3b76444a9ec 100644 --- a/crates/rspack_core/src/build_chunk_graph/new_code_splitter.rs +++ b/crates/rspack_core/src/build_chunk_graph/new_code_splitter.rs @@ -786,7 +786,6 @@ impl CodeSplitter { .expect("should have module") .pre_order_index = Some(idx); } - for (m, idx) in post_order_indices { module_graph .module_graph_module_by_identifier_mut(&m) diff --git a/tests/webpack-test/statsCases/prefetch/inner.js b/tests/webpack-test/statsCases/prefetch/inner.js index e69de29bb2d1..8b137891791f 100644 --- a/tests/webpack-test/statsCases/prefetch/inner.js +++ b/tests/webpack-test/statsCases/prefetch/inner.js @@ -0,0 +1 @@ + diff --git a/tests/webpack-test/statsCases/prefetch/test.config.js b/tests/webpack-test/statsCases/prefetch/test.config.js index f7cbf1136691..fe6f94bea479 100644 --- a/tests/webpack-test/statsCases/prefetch/test.config.js +++ b/tests/webpack-test/statsCases/prefetch/test.config.js @@ -3,7 +3,6 @@ const path = require("path"); module.exports = { validate(stats, error, actual) { - expect(diffStats(actual, path.basename(__dirname))) .toMatchInlineSnapshot(` "- Expected