From ac5893ab83d94a810b4543c752dc1596a9d576eb Mon Sep 17 00:00:00 2001 From: jserfeng <1114550440@qq.com> Date: Sun, 5 Jan 2025 04:40:04 +0800 Subject: [PATCH] chore: update --- crates/rspack_core/src/build_chunk_graph/new_code_splitter.rs | 1 - tests/webpack-test/statsCases/prefetch/inner.js | 1 + tests/webpack-test/statsCases/prefetch/test.config.js | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) 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