From 3c5fc10f074f2fd8b6545cebf4ccd825944fa215 Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Thu, 11 Jul 2024 12:00:58 +0800 Subject: [PATCH 1/4] test: enable stats test --- .../StatsTestCases.basictest.js.snap | 2069 +++++++++++++++++ .../test.filter.js | 6 +- .../statsCases/all-stats/test.filter.js | 6 +- .../statsCases/asset-concat/test.filter.js | 6 +- .../statsCases/asset/test.filter.js | 6 +- .../node_modules/x.js | 1 + .../node_modules/xy.js | 1 + .../node_modules/xyz.js | 1 + .../node_modules/y.js | 1 + .../node_modules/z.js | 1 + .../async-commons-chunk-auto/test.filter.js | 6 +- .../async-commons-chunk/test.filter.js | 6 +- .../test.filter.js | 6 +- .../chunk-module-id-range/test.filter.js | 6 +- .../chunks-development/test.filter.js | 6 +- .../statsCases/chunks/test.filter.js | 6 +- .../circular-correctness/test.filter.js | 6 +- .../statsCases/color-disabled/test.filter.js | 6 +- .../color-enabled-custom/test.filter.js | 6 +- .../statsCases/color-enabled/test.filter.js | 6 +- .../statsCases/common-libs/test.filter.js | 6 +- .../commons-chunk-min-size-0/test.filter.js | 6 +- .../test.filter.js | 6 +- .../commons-plugin-issue-4980/test.filter.js | 6 +- .../node_modules/pmodule/a.js | 3 + .../node_modules/pmodule/aa.js | 1 + .../node_modules/pmodule/b.js | 3 + .../node_modules/pmodule/bb.js | 1 + .../node_modules/pmodule/c.js | 3 + .../node_modules/pmodule/cc.js | 1 + .../node_modules/pmodule/index.js | 3 + .../node_modules/pmodule/package.json | 3 + .../concat-and-sideeffects/test.filter.js | 6 +- .../context-independence/test.filter.js | 6 +- .../statsCases/custom-terser/test.filter.js | 6 +- .../statsCases/define-plugin/test.filter.js | 6 +- .../statsCases/details-error/test.filter.js | 6 +- .../test.filter.js | 6 +- .../test.filter.js | 6 +- .../statsCases/entry-filename/test.filter.js | 6 +- .../exclude-with-loader/test.filter.js | 6 +- .../statsCases/external/test.filter.js | 6 +- .../graph-correctness-entries/test.filter.js | 6 +- .../graph-correctness-modules/test.filter.js | 6 +- .../statsCases/graph-roots/test.filter.js | 6 +- .../statsCases/ignore-warnings/test.filter.js | 6 +- .../statsCases/immutable/test.filter.js | 6 +- .../import-weak-parser-option/test.filter.js | 6 +- .../statsCases/import-weak/test.filter.js | 6 +- .../test.filter.js | 6 +- .../issue-7577/node_modules/vendor.js | 1 + .../statsCases/issue-7577/test.filter.js | 6 +- .../statsCases/logging-debug/test.filter.js | 6 +- .../node_modules/custom-loader/index.js | 21 + .../statsCases/logging/test.filter.js | 5 +- .../max-modules-default/test.filter.js | 6 +- .../statsCases/max-modules/test.filter.js | 6 +- .../module-assets/node_modules/a/1.png | Bin 0 -> 21499 bytes .../module-assets/node_modules/a/2.png | Bin 0 -> 21499 bytes .../module-assets/node_modules/a/index.js | 2 + .../module-assets/node_modules/b/index.js | 1 + .../statsCases/module-assets/test.filter.js | 6 +- .../module-deduplication-named/test.filter.js | 6 +- .../module-deduplication/test.filter.js | 6 +- .../test.filter.js | 6 +- .../module-not-found-error/test.filter.js | 6 +- .../statsCases/module-reasons/test.filter.js | 6 +- .../test.filter.js | 6 +- .../test.filter.js | 6 +- .../named-chunk-groups/node_modules/x.js | 1 + .../named-chunk-groups/node_modules/y.js | 1 + .../named-chunk-groups/test.filter.js | 6 +- .../named-chunks-plugin/test.filter.js | 6 +- .../test.filter.js | 6 +- .../statsCases/optimize-chunks/test.filter.js | 6 +- .../statsCases/output-module/test.filter.js | 6 +- .../statsCases/parse-error/test.filter.js | 5 +- .../performance-disabled/test.filter.js | 6 +- .../performance-error/test.filter.js | 6 +- .../performance-no-hints/test.filter.js | 6 +- .../prefetch-preload-mixed/test.filter.js | 6 +- .../statsCases/prefetch/test.filter.js | 6 +- .../statsCases/preload/test.filter.js | 6 +- .../statsCases/preset-detailed/test.filter.js | 6 +- .../preset-errors-only-error/test.filter.js | 6 +- .../preset-errors-only/test.filter.js | 6 +- .../preset-errors-warnings/test.filter.js | 6 +- .../preset-minimal-simple/test.filter.js | 6 +- .../statsCases/preset-minimal/test.filter.js | 6 +- .../preset-mixed-array/test.filter.js | 6 +- .../preset-none-array/test.filter.js | 6 +- .../preset-none-error/test.filter.js | 6 +- .../statsCases/preset-none/test.filter.js | 6 +- .../test.filter.js | 6 +- .../preset-normal-performance/test.filter.js | 6 +- .../statsCases/preset-normal/test.filter.js | 6 +- .../statsCases/preset-summary/test.filter.js | 6 +- .../statsCases/preset-verbose/test.filter.js | 6 +- .../real-content-hash/test.filter.js | 6 +- .../statsCases/related-assets/test.filter.js | 6 +- .../related-assets/webpack.config.js | 7 +- .../resolve-plugin-context/test.filter.js | 6 +- .../reverse-sort-modules/test.filter.js | 6 +- .../runtime-chunk-integration/test.filter.js | 6 +- .../runtime-chunk-issue-7382/test.filter.js | 6 +- .../runtime-chunk-single/test.filter.js | 6 +- .../statsCases/runtime-chunk/test.filter.js | 6 +- .../test.filter.js | 6 +- .../scope-hoisting-bailouts/test.filter.js | 6 +- .../scope-hoisting-multi/test.filter.js | 6 +- .../side-effects-issue-7428/test.filter.js | 6 +- .../node_modules/big-module/a.js | 2 + .../node_modules/big-module/index.js | 2 + .../node_modules/big-module/log.js | 5 + .../node_modules/big-module/package.json | 4 + .../module-with-export/emptyModule.js | 1 + .../node_modules/module-with-export/index.js | 8 + .../module-with-export/package.json | 4 + .../side-effects-optimization/test.filter.js | 6 +- .../node_modules/pmodule/a.js | 5 + .../node_modules/pmodule/b.js | 5 + .../node_modules/pmodule/c.js | 3 + .../node_modules/pmodule/index.js | 4 + .../node_modules/pmodule/package.json | 3 + .../side-effects-simple-unused/test.filter.js | 6 +- .../simple-more-info/test.filter.js | 6 +- .../statsCases/simple/test.filter.js | 5 +- .../node_modules/x.js | 1 + .../node_modules/y.js | 1 + .../node_modules/z.js | 1 + .../test.filter.js | 6 +- .../split-chunks-chunk-name/node_modules/a.js | 1 + .../split-chunks-chunk-name/node_modules/b.js | 3 + .../split-chunks-chunk-name/node_modules/c.js | 3 + .../split-chunks-chunk-name/test.filter.js | 6 +- .../split-chunks-combinations/test.filter.js | 6 +- .../split-chunks-issue-6413/node_modules/x.js | 1 + .../split-chunks-issue-6413/test.filter.js | 6 +- .../split-chunks-issue-6696/node_modules/x.js | 1 + .../split-chunks-issue-6696/node_modules/y.js | 1 + .../split-chunks-issue-6696/test.filter.js | 6 +- .../split-chunks-issue-7401/node_modules/x.js | 1 + .../split-chunks-issue-7401/test.filter.js | 6 +- .../node_modules/shared.js | 3 + .../test.filter.js | 6 +- .../split-chunks-max-size/test.filter.js | 4 +- .../node_modules/shared.js | 3 + .../test.filter.js | 6 +- .../test.filter.js | 6 +- .../test.filter.js | 6 +- .../statsCases/tree-shaking/test.filter.js | 6 +- 151 files changed, 2500 insertions(+), 311 deletions(-) create mode 100644 tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xy.js create mode 100644 tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xyz.js create mode 100644 tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/y.js create mode 100644 tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/z.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/a.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/aa.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/b.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/bb.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/c.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/cc.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/index.js create mode 100644 tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/package.json create mode 100644 tests/webpack-test/statsCases/issue-7577/node_modules/vendor.js create mode 100644 tests/webpack-test/statsCases/logging/node_modules/custom-loader/index.js create mode 100644 tests/webpack-test/statsCases/module-assets/node_modules/a/1.png create mode 100644 tests/webpack-test/statsCases/module-assets/node_modules/a/2.png create mode 100644 tests/webpack-test/statsCases/module-assets/node_modules/a/index.js create mode 100644 tests/webpack-test/statsCases/module-assets/node_modules/b/index.js create mode 100644 tests/webpack-test/statsCases/named-chunk-groups/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/named-chunk-groups/node_modules/y.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/a.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/index.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/log.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/package.json create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/emptyModule.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/index.js create mode 100644 tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/package.json create mode 100644 tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js create mode 100644 tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js create mode 100644 tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js create mode 100644 tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js create mode 100644 tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/package.json create mode 100644 tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/y.js create mode 100644 tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/z.js create mode 100644 tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/a.js create mode 100644 tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/b.js create mode 100644 tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/c.js create mode 100644 tests/webpack-test/statsCases/split-chunks-issue-6413/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/y.js create mode 100644 tests/webpack-test/statsCases/split-chunks-issue-7401/node_modules/x.js create mode 100644 tests/webpack-test/statsCases/split-chunks-keep-remaining-size/node_modules/shared.js create mode 100644 tests/webpack-test/statsCases/split-chunks-min-size-reduction/node_modules/shared.js diff --git a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap index 82b867d5a8f..19616ccccf4 100644 --- a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap @@ -1,5 +1,488 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP +exports[`StatsTestCases should print correct stats for asset 1`] = ` +"asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (name: main) +asset bundle.js 12.7 KiB [emitted] (name: main) +asset static/file.html 12 bytes [emitted] [from: static/file.html] (name: main) +Entrypoint main 12.7 KiB = bundle.js +runtime modules 1.28 KiB 2 modules +asset modules 14.6 KiB (asset) 9.12 KiB (javascript) + ./images/file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./images/fileXsvg 915 bytes [built] [code generated] + ./images/file.jpg 7.92 KiB [built] [code generated] + ./static/file.html 12 bytes (asset) 42 bytes (javascript) [built] [code generated] + data:text/plain;base64,szsaAAdsadasdfaf.. 72.2 bytes [built] [code generated] + data:text/plain,asd= 41.4 bytes [built] [code generated] + data:text/plain,XXXXXXXXXXXXXXX.. 58.8 bytes [built] [code generated] + ./a.css 41.4 bytes [built] [code generated] + ./aXsource.js 13 bytes [built] [code generated] +./index.js 402 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for asset-concat 1`] = ` +"asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: images/file.png] (name: main) +asset bundle.js 12 KiB [emitted] (name: main) +asset static/file.html 12 bytes [emitted] [from: static/file.html] (name: main) +Entrypoint main 12 KiB = bundle.js +orphan modules 9.43 KiB [orphan] 8 modules +runtime modules 1.28 KiB 2 modules +cacheable modules 9.59 KiB (javascript) 14.6 KiB (asset) + ./index.js + 9 modules 9.51 KiB [code generated] + ./images/file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./static/file.html 12 bytes (asset) 42 bytes (javascript) [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for async-commons-chunk-auto 1`] = ` +"disabled: + Entrypoint main 8.78 KiB = disabled/main.js + Entrypoint a 8.65 KiB = disabled/a.js + Entrypoint b 226 bytes = disabled/b.js + Entrypoint c 226 bytes = disabled/c.js + chunk (runtime: main) disabled/async-c.js (async-c) 196 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) disabled/async-a.js (async-a) 245 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./a.js 165 bytes [built] [code generated] + chunk (runtime: main) disabled/async-b.js (async-b) 196 bytes [rendered] + > ./b [10] ./index.js 2:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./b.js 116 bytes [built] [code generated] + chunk (runtime: a) disabled/a.js (a) 165 bytes (javascript) 6.95 KiB (runtime) [entry] [rendered] + > ./a a + ./a.js 165 bytes [built] [code generated] + chunk (runtime: b) disabled/b.js (b) 116 bytes [entry] [rendered] + > ./b b + ./b.js 116 bytes [built] [code generated] + chunk (runtime: c) disabled/c.js (c) 116 bytes [entry] [rendered] + > ./c c + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) disabled/main.js (main) 147 bytes (javascript) 7.02 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] + chunk (runtime: a, main) disabled/async-g.js (async-g) 65 bytes [rendered] + > ./g [847] ./a.js 6:0-47 + dependent modules 20 bytes [dependent] 1 module + ./g.js 45 bytes [built] [code generated] + disabled (Rspack x.x.x) compiled successfully + +default: + Entrypoint main 9.16 KiB = default/main.js + Entrypoint a 8.72 KiB = default/a.js + Entrypoint b 226 bytes = default/b.js + Entrypoint c 226 bytes = default/c.js + chunk (runtime: main) default/async-c.js (async-c) 116 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) default/async-a.js (async-a) 185 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + dependent modules 20 bytes [dependent] 1 module + ./a.js 165 bytes [built] [code generated] + chunk (runtime: main) default/async-b.js (async-b) 116 bytes [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 116 bytes [built] [code generated] + chunk (runtime: main) default/310.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./node_modules/y.js 20 bytes [built] [code generated] + chunk (runtime: main) default/416.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) + > ./c [10] ./index.js 3:0-47 + ./node_modules/z.js 20 bytes [built] [code generated] + chunk (runtime: main) default/418.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: defaultVendors) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./node_modules/x.js 20 bytes [built] [code generated] + chunk (runtime: a, main) default/581.js (id hint: ) 20 bytes [rendered] split chunk (cache group: default) + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + > ./g [847] ./a.js 6:0-47 + ./f.js 20 bytes [built] [code generated] + chunk (runtime: a) default/a.js (a) 165 bytes (javascript) 6.98 KiB (runtime) [entry] [rendered] + > ./a a + ./a.js 165 bytes [built] [code generated] + chunk (runtime: b) default/b.js (b) 116 bytes [entry] [rendered] + > ./b b + ./b.js 116 bytes [built] [code generated] + chunk (runtime: main) default/753.js (id hint: ) 20 bytes [rendered] split chunk (cache group: default) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./d.js 20 bytes [built] [code generated] + chunk (runtime: c) default/c.js (c) 116 bytes [entry] [rendered] + > ./c c + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 7.03 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] + chunk (runtime: a, main) default/async-g.js (async-g) 45 bytes [rendered] + > ./g [847] ./a.js 6:0-47 + ./g.js 45 bytes [built] [code generated] + default (Rspack x.x.x) compiled successfully + +vendors: + Entrypoint main 8.78 KiB = vendors/main.js + Entrypoint a 8.64 KiB = vendors/a.js + Entrypoint b 226 bytes = vendors/b.js + Entrypoint c 226 bytes = vendors/c.js + chunk (runtime: main) vendors/async-c.js (async-c) 196 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) vendors/async-a.js (async-a) 245 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./a.js 165 bytes [built] [code generated] + chunk (runtime: main) vendors/async-b.js (async-b) 196 bytes [rendered] + > ./b [10] ./index.js 2:0-47 + dependent modules 80 bytes [dependent] 4 modules + ./b.js 116 bytes [built] [code generated] + chunk (runtime: a) vendors/a.js (a) 165 bytes (javascript) 6.95 KiB (runtime) [entry] [rendered] + > ./a a + ./a.js 165 bytes [built] [code generated] + chunk (runtime: b) vendors/b.js (b) 116 bytes [entry] [rendered] + > ./b b + ./b.js 116 bytes [built] [code generated] + chunk (runtime: c) vendors/c.js (c) 116 bytes [entry] [rendered] + > ./c c + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) vendors/main.js (main) 147 bytes (javascript) 7.02 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] + chunk (runtime: a, main) vendors/async-g.js (async-g) 65 bytes [rendered] + > ./g [847] ./a.js 6:0-47 + dependent modules 20 bytes [dependent] 1 module + ./g.js 45 bytes [built] [code generated] + vendors (Rspack x.x.x) compiled successfully + +multiple-vendors: + Entrypoint main 11.2 KiB = multiple-vendors/libs.js 6.19 KiB multiple-vendors/main.js 4.99 KiB + Entrypoint a 11.2 KiB = multiple-vendors/libs.js 6.19 KiB multiple-vendors/a.js 4.99 KiB + Entrypoint b 11.2 KiB = multiple-vendors/libs.js 6.19 KiB multiple-vendors/b.js 4.99 KiB + Entrypoint c 11.2 KiB = multiple-vendors/libs.js 6.19 KiB multiple-vendors/c.js 4.99 KiB + chunk (runtime: a, b, c, main) multiple-vendors/libs.js (libs) (id hint: libs) 709 bytes [initial] [rendered] split chunk (cache group: libs) + > ./ main + > ./a a + > ./b b + > ./c c + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + > ./g [847] ./a.js 6:0-47 + dependent modules 562 bytes [dependent] 10 modules + ./index.js 147 bytes [built] [code generated] + chunk (runtime: a) multiple-vendors/a.js (a) 3.38 KiB [entry] [rendered] + > ./a a + chunk (runtime: b) multiple-vendors/b.js (b) 3.38 KiB [entry] [rendered] + > ./b b + chunk (runtime: c) multiple-vendors/c.js (c) 3.38 KiB [entry] [rendered] + > ./c c + chunk (runtime: main) multiple-vendors/main.js (main) 3.38 KiB [entry] [rendered] + > ./ main + multiple-vendors (Rspack x.x.x) compiled successfully + +all: + Entrypoint main 9.17 KiB = all/main.js + Entrypoint a 11.2 KiB = all/272.js 1.33 KiB all/a.js 9.91 KiB + Entrypoint b 5.91 KiB = all/726.js 1.18 KiB all/b.js 4.73 KiB + Entrypoint c 5.91 KiB = all/29.js 1.18 KiB all/c.js 4.73 KiB + chunk (runtime: main) all/async-c.js (async-c) (id hint: vendors) 20 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + ./node_modules/z.js 20 bytes [built] [code generated] + chunk (runtime: main) all/async-a.js (async-a) (id hint: vendors) 20 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + ./e.js 20 bytes [built] [code generated] + chunk (runtime: main) all/async-b.js (async-b) (id hint: vendors) 20 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./node_modules/y.js 20 bytes [built] [code generated] + chunk (runtime: a, main) all/272.js (id hint: vendors) 165 bytes [initial] [rendered] split chunk (cache group: vendors) + > ./a a + > ./a [10] ./index.js 1:0-47 + ./a.js 165 bytes [built] [code generated] + chunk (runtime: c, main) all/29.js (id hint: vendors) 116 bytes [initial] [rendered] split chunk (cache group: vendors) + > ./c c + > ./c [10] ./index.js 3:0-47 + ./c.js 116 bytes [built] [code generated] + chunk (runtime: main) all/457.js (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./d.js 20 bytes [built] [code generated] + ./node_modules/x.js 20 bytes [built] [code generated] + chunk (runtime: a, main) all/581.js (id hint: vendors) 20 bytes [rendered] split chunk (cache group: vendors) + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + > ./g [847] ./a.js 6:0-47 + ./f.js 20 bytes [built] [code generated] + chunk (runtime: b, main) all/726.js (id hint: vendors) 116 bytes [initial] [rendered] split chunk (cache group: vendors) + > ./b b + > ./b [10] ./index.js 2:0-47 + ./b.js 116 bytes [built] [code generated] + chunk (runtime: a) all/a.js (a) 8.09 KiB [entry] [rendered] + > ./a a + chunk (runtime: b) all/b.js (b) 3.16 KiB [entry] [rendered] + > ./b b + chunk (runtime: c) all/c.js (c) 3.16 KiB [entry] [rendered] + > ./c c + chunk (runtime: main) all/main.js (main) (id hint: vendors) 147 bytes (javascript) 7.06 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] + chunk (runtime: a, main) all/async-g.js (async-g) (id hint: vendors) 45 bytes [rendered] + > ./g [847] ./a.js 6:0-47 + ./g.js 45 bytes [built] [code generated] + all (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for child-compiler-apply-entry-option 1`] = ` +"asset child.js 66 bytes [emitted] +asset parent.js 66 bytes [emitted] (name: parent) +Entrypoint parent 66 bytes = parent.js +./parent.js 1 bytes [built] [code generated] + asset child.js 66 bytes [emitted] (name: child) + Entrypoint child 66 bytes = child.js + ./child.js 1 bytes [built] [code generated] + + Child TestApplyEntryOptionPlugin compiled successfully +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for circular-correctness 1`] = ` +"Entrypoint main 9.83 KiB = bundle.js +chunk (runtime: main) 74.bundle.js (a) 49 bytes <{76}> <{909}> >{76}< [rendered] + ./module-a.js 49 bytes [built] [code generated] +chunk (runtime: main) 751.bundle.js (b) 49 bytes <{76}> <{909}> >{76}< [rendered] + ./module-b.js 49 bytes [built] [code generated] +chunk (runtime: main) 76.bundle.js (c) 98 bytes <{74}> <{751}> >{74}< >{751}< [rendered] + ./module-c.js 98 bytes [built] [code generated] +chunk (runtime: main) bundle.js (main) 98 bytes (javascript) 8.12 KiB (runtime) >{74}< >{751}< [entry] [rendered] + ./index.js 98 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for color-disabled 1`] = ` +"asset main.js 66 bytes [emitted] (name: main) +Entrypoint main 66 bytes = main.js +./index.js 1 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for color-enabled 1`] = ` +"asset main.js 66 bytes [emitted] (name: main) +Entrypoint main 66 bytes = main.js +./index.js 1 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for common-libs 1`] = ` +"asset react.js 4.71 KiB [emitted] (name: react) +Entrypoint react 4.71 KiB = react.js +./react.js 74 bytes [built] [code generated] +../../../../node_modules/react/index.js 190 bytes [built] [code generated] +../../../../node_modules/react/cjs/react.production.min.js 6.3 KiB [built] [code generated] +../../../../node_modules/object-assign/index.js 2.06 KiB [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for commons-chunk-min-size-Infinity 1`] = ` +"asset entry-1.js 4.39 KiB [emitted] (name: entry-1) +asset vendor-1.js 242 bytes [emitted] (name: vendor-1) +Entrypoint entry-1 4.63 KiB = vendor-1.js 242 bytes entry-1.js 4.39 KiB +runtime modules 2.58 KiB 3 modules +cacheable modules 277 bytes + ./entry-1.js 145 bytes [built] [code generated] + ./modules/a.js 22 bytes [built] [code generated] + ./modules/b.js 22 bytes [built] [code generated] + ./modules/c.js 22 bytes [built] [code generated] + ./modules/d.js 22 bytes [built] [code generated] + ./modules/e.js 22 bytes [built] [code generated] + ./modules/f.js 22 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = ` +"asset app.a0eb2e6ed70cc52bcbd6-1.js 82 bytes [emitted] [immutable] (name: app) +Entrypoint app 82 bytes = app.a0eb2e6ed70cc52bcbd6-1.js +orphan modules 205 bytes [orphan] 3 modules +./entry-1.js 67 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s + +asset app.3c507db620931e296fff-2.js 82 bytes [emitted] [immutable] (name: app) +Entrypoint app 82 bytes = app.3c507db620931e296fff-2.js +orphan modules 212 bytes [orphan] 3 modules +./entry-2.js 67 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for concat-and-sideeffects 1`] = ` +"./index.js 46 bytes [orphan] [built] + Statement with side_effects in source code at ./index.js:3:0-15 + ModuleConcatenation bailout: Module is an entry point +./index.js + 2 modules 119 bytes [code generated] + | ./index.js 46 bytes [orphan] [built] + | Statement with side_effects in source code at ./index.js:3:0-15 + | ModuleConcatenation bailout: Module is an entry point + | ./node_modules/pmodule/a.js 49 bytes [orphan] [built] + | ./node_modules/pmodule/aa.js 24 bytes [orphan] [built] +./node_modules/pmodule/index.js 63 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk +./node_modules/pmodule/a.js 49 bytes [orphan] [built] +./node_modules/pmodule/b.js 49 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk +./node_modules/pmodule/c.js 49 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk +./node_modules/pmodule/aa.js 24 bytes [orphan] [built] +./node_modules/pmodule/bb.js 24 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk +./node_modules/pmodule/cc.js 24 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk" +`; + +exports[`StatsTestCases should print correct stats for custom-terser 1`] = ` +"asset bundle.js 630 bytes [emitted] [minimized] (name: main) +Entrypoint main 630 bytes = bundle.js +./index.js 128 bytes [built] [code generated] + [no exports] + [no exports used] +./a.js 49 bytes [built] [code generated] + [no exports] + [used exports unknown] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for exclude-with-loader 1`] = ` +"asset bundle.js 4.2 KiB [emitted] (name: main) +asset a61a88ff.json 34 bytes [emitted] [immutable] (name: main) +Entrypoint main 4.2 KiB = bundle.js +runtime modules 1.94 KiB 5 modules +cacheable modules 218 bytes + ./index.js 77 bytes [built] [code generated] + ./a.txt 42 bytes [built] [code generated] + ./exclude/b.txt 42 bytes [built] [code generated] + ./exclude/c.json 57 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for external 1`] = ` +"asset main.js 921 bytes [emitted] (name: main) +Entrypoint main 921 bytes = main.js +./index.js 17 bytes [built] [code generated] +external \\"test\\" 42 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for graph-correctness-entries 1`] = ` +"Entrypoint e1 9.75 KiB = e1.js +Entrypoint e2 9.75 KiB = e2.js +chunk (runtime: e1) e1.js (e1) 49 bytes (javascript) 8.15 KiB (runtime) >{74}< [entry] [rendered] + ./e1.js 49 bytes [built] [code generated] + entry ./e1 +chunk (runtime: e1, e2) a.js (a) 49 bytes <{605}> <{76}> >{751}< [rendered] + ./module-a.js 49 bytes [built] [code generated] + import() ./module-a + import() ./module-a +chunk (runtime: e1, e2) b.js (b) 49 bytes <{74}> >{76}< [rendered] + ./module-b.js 49 bytes [built] [code generated] + import() ./module-b +chunk (runtime: e1, e2) c.js (c) 49 bytes <{751}> <{844}> >{74}< [rendered] + ./module-c.js 49 bytes [built] [code generated] + import() ./module-c + import() ./module-c +chunk (runtime: e2) e2.js (e2) 49 bytes (javascript) 8.15 KiB (runtime) >{76}< [entry] [rendered] + ./e2.js 49 bytes [built] [code generated] + entry ./e2 +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for graph-correctness-modules 1`] = ` +"Entrypoint e1 10.7 KiB = e1.js +Entrypoint e2 10.7 KiB = e2.js +chunk (runtime: e1) e1.js (e1) 119 bytes (javascript) 8.46 KiB (runtime) >{74}< >{984}< [entry] [rendered] + ./e1.js 70 bytes [built] [code generated] + entry ./e1 + ./module-x.js 49 bytes [dependent] [built] [code generated] + esm import ./module-x + esm import ./module-x + import() ./module-x +chunk (runtime: e1, e2) a.js (a) 49 bytes <{605}> <{76}> >{751}< [rendered] + ./module-a.js 49 bytes [built] [code generated] + import() ./module-a + import() ./module-a +chunk (runtime: e1, e2) b.js (b) 179 bytes <{74}> >{76}< [rendered] + ./module-b.js 179 bytes [built] [code generated] + import() ./module-b +chunk (runtime: e1, e2) c.js (c) 49 bytes <{751}> <{844}> >{74}< [rendered] + ./module-c.js 49 bytes [built] [code generated] + import() ./module-c + import() ./module-c +chunk (runtime: e2) e2.js (e2) 119 bytes (javascript) 8.46 KiB (runtime) >{76}< >{984}< [entry] [rendered] + ./e2.js 70 bytes [built] [code generated] + entry ./e2 + ./module-x.js 49 bytes [dependent] [built] [code generated] + esm import ./module-x + esm import ./module-x + import() ./module-x +chunk (runtime: e1, e2) y.js (y) 1 bytes <{605}> <{844}> [rendered] + ./module-y.js 1 bytes [built] [code generated] + import() ./module-y +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for graph-roots 1`] = ` +"chunk (runtime: main) cycle.js (cycle) 168 bytes [rendered] + ./cycle/a.js 39 bytes [built] [code generated] + ./cycle/b.js 39 bytes [built] [code generated] + ./cycle/c.js 51 bytes [built] [code generated] + ./cycle/index.js 39 bytes [built] [code generated] +chunk (runtime: main) cycle2.js (cycle2) 205 bytes [rendered] + dependent modules 51 bytes [dependent] 1 module + ./cycle2/a.js 39 bytes [built] [code generated] + ./cycle2/b.js 76 bytes [built] [code generated] + ./cycle2/index.js 39 bytes [built] [code generated] +chunk (runtime: main) cycles.js (cycles) 410 bytes [rendered] + dependent modules 141 bytes [dependent] 3 modules + ./cycles/1/a.js 76 bytes [built] [code generated] + ./cycles/1/index.js 39 bytes [built] [code generated] + ./cycles/2/a.js 39 bytes [built] [code generated] + ./cycles/2/b.js 76 bytes [built] [code generated] + ./cycles/2/index.js 39 bytes [built] [code generated] +chunk (runtime: main) id-equals-name_js.js (id-equals-name_js) 21 bytes [rendered] + ./id-equals-name.js?1 21 bytes [built] [code generated] +chunk (runtime: main) id-equals-name_js-_70e2.js (id-equals-name_js-_70e2) 21 bytes [rendered] + ./id-equals-name.js?2 21 bytes [built] [code generated] +chunk (runtime: main) id-equals-name_js0.js 21 bytes [rendered] + ./id-equals-name.js 21 bytes [built] [code generated] +chunk (runtime: main) id-equals-name_js_3.js 21 bytes [rendered] + ./id-equals-name.js?3 21 bytes [built] [code generated] +chunk (runtime: main) main.js (main) 639 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./index.js 639 bytes [built] [code generated] +chunk (runtime: main) tree.js (tree) 137 bytes [rendered] + dependent modules 98 bytes [dependent] 3 modules + ./tree/index.js 39 bytes [built] [code generated] +chunk (runtime: main) trees.js (trees) 215 bytes [rendered] + dependent modules 98 bytes [dependent] 3 modules + ./trees/1.js 39 bytes [built] [code generated] + ./trees/2.js 39 bytes [built] [code generated] + ./trees/3.js 39 bytes [built] [code generated]" +`; + +exports[`StatsTestCases should print correct stats for ignore-warnings 1`] = ` +"asset main.js 1.83 KiB [emitted] (name: main) +Entrypoint main 1.83 KiB = main.js +orphan modules 794 bytes [orphan] 10 modules +./index.js + 9 modules 794 bytes [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for immutable 1`] = ` +"asset f3307ed29b63fe6a26b3.js 10.1 KiB [emitted] [immutable] (name: main) +asset 9ec5fb56454bddf305ec.js 167 bytes [emitted] [immutable]" +`; + exports[`StatsTestCases should print correct stats for import-context-filter 1`] = ` "asset entry.js 9.64 KiB [emitted] (name: entry) asset 228.js 426 bytes [emitted] @@ -16,6 +499,388 @@ cacheable modules 724 bytes Rspack x.x.x compiled successfully in X s" `; +exports[`StatsTestCases should print correct stats for import-weak 1`] = ` +"asset entry.js 9.92 KiB [emitted] (name: entry) +asset 332.js 285 bytes [emitted] +asset 313.js 130 bytes [emitted] +Entrypoint entry 9.92 KiB = entry.js +runtime modules 8.11 KiB 10 modules +cacheable modules 179 bytes + ./entry.js 120 bytes [built] [code generated] + ./modules/a.js 37 bytes [built] [code generated] + ./modules/b.js 22 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for import-weak-parser-option 1`] = ` +"asset entry.js 9.92 KiB [emitted] (name: entry) +asset 332.js 285 bytes [emitted] +asset 313.js 130 bytes [emitted] +Entrypoint entry 9.92 KiB = entry.js +runtime modules 8.11 KiB 10 modules +cacheable modules 153 bytes + ./entry.js 94 bytes [built] [code generated] + ./modules/a.js 37 bytes [built] [code generated] + ./modules/b.js 22 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for import-with-invalid-options-comments 1`] = ` +"runtime modules 9.16 KiB 12 modules +cacheable modules 559 bytes + ./index.js 50 bytes [built] [code generated] + ./chunk.js 401 bytes [built] [code generated] [2 warnings] + ./chunk-a.js 27 bytes [built] [code generated] + ./chunk-b.js 27 bytes [built] [code generated] + ./chunk-c.js 27 bytes [built] [code generated] + ./chunk-d.js 27 bytes [built] [code generated] + +WARNING in ./chunk.js + ⚠ Module parse warning: + ╰─▶ ⚠ Magic comments parse failed: \`webpackChunkName\` expected a string, but received: notGoingToCompileChunkName . + ╭─[1:1] + 1 │ export default function() { + 2 │ import(/* webpackPrefetch: true, webpackChunkName: notGoingToCompileChunkName */ \\"./chunk-a\\"); + · ───────────────────────────────────────────────────────────────────────────────────────────── + 3 │ import(/* webpackPrefetch: 0, webpackChunkName: \\"goingToCompileChunkName-b\\" */ \\"./chunk-b\\"); + 4 │ import(/* webpack Prefetch: 0, webpackChunkName: \\"notGoingToCompile-c\\" */ \\"./chunk-c\\"); + ╰──── + +WARNING in ./chunk.js + ⚠ Module parse warning: + ╰─▶ ⚠ Magic comments parse failed: \`webpackPrefetch\` expected true or a number, but received: nope . + ╭─[3:1] + 3 │ import(/* webpackPrefetch: 0, webpackChunkName: \\"goingToCompileChunkName-b\\" */ \\"./chunk-b\\"); + 4 │ import(/* webpack Prefetch: 0, webpackChunkName: \\"notGoingToCompile-c\\" */ \\"./chunk-c\\"); + 5 │ import(/* webpackPrefetch: nope */ /* webpackChunkName: \\"yep\\" */ \\"./chunk-d\\"); + · ───────────────────────────────────────────────────────────────────────────── + 6 │ } + ╰──── + +Rspack x.x.x compiled with 2 warnings" +`; + +exports[`StatsTestCases should print correct stats for issue-7577 1`] = ` +"asset a-runtime~main-6f980b3fe4e873c8018a.js 3.69 KiB [emitted] [immutable] (name: runtime~main) +asset a-main-74eb98039f994af619b3.js 323 bytes [emitted] [immutable] (name: main) +Entrypoint main 4 KiB = a-runtime~main-6f980b3fe4e873c8018a.js 3.69 KiB a-main-74eb98039f994af619b3.js 323 bytes +runtime modules 2.59 KiB 3 modules +./a.js 18 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s + +asset b-runtime~main-841c6f8661ffb8487676.js 4.39 KiB [emitted] [immutable] (name: runtime~main) +asset b-main-7a912c9e72d35b5ccb33.js 779 bytes [emitted] [immutable] (name: main) +asset b-vendors-node_modules_vendor_js-97d43f84c65cc0e25938.js 173 bytes [emitted] [immutable] +Entrypoint main 5.32 KiB = b-runtime~main-841c6f8661ffb8487676.js 4.39 KiB b-vendors-node_modules_vendor_js-97d43f84c65cc0e25938.js 173 bytes b-main-7a912c9e72d35b5ccb33.js 779 bytes +runtime modules 3.17 KiB 5 modules +cacheable modules 40 bytes + ./b.js 17 bytes [built] [code generated] + ./node_modules/vendor.js 23 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s + +asset c-runtime~main-758a5f5cc29c2a3b8870.js 10.8 KiB [emitted] [immutable] (name: runtime~main) +asset c-main-badd31d63df8ff8ef439.js 833 bytes [emitted] [immutable] (name: main) +asset c-all-b_js-a364a38577953cc2ab7c.js 488 bytes [emitted] [immutable] +asset c-vendors-node_modules_vendor_js-97d43f84c65cc0e25938.js 173 bytes [emitted] [immutable] +Entrypoint main 11.6 KiB = c-runtime~main-758a5f5cc29c2a3b8870.js 10.8 KiB c-main-badd31d63df8ff8ef439.js 833 bytes +runtime modules 9.38 KiB 13 modules +cacheable modules 101 bytes + ./c.js 61 bytes [built] [code generated] + ./b.js 17 bytes [built] [code generated] + ./node_modules/vendor.js 23 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for logging-debug 1`] = ` +" [LogTestPlugin] Info +asset main.js 66 bytes [emitted] (name: main) +Entrypoint main 66 bytes = main.js +./index.js 1 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for max-modules 1`] = ` +"asset main.js 4.66 KiB [emitted] (name: main) +Entrypoint main 4.66 KiB = main.js +./index.js 181 bytes [built] [code generated] +./a.js?1 33 bytes [built] [code generated] +./a.js?2 33 bytes [built] [code generated] +./a.js?3 33 bytes [built] [code generated] +./a.js?4 33 bytes [built] [code generated] +./a.js?5 33 bytes [built] [code generated] +./a.js?6 33 bytes [built] [code generated] +./a.js?7 33 bytes [built] [code generated] +./a.js?8 33 bytes [built] [code generated] +./a.js?9 33 bytes [built] [code generated] +./a.js?10 33 bytes [built] [code generated] +./c.js?1 33 bytes [built] [code generated] +./c.js?2 33 bytes [built] [code generated] +./c.js?3 33 bytes [built] [code generated] +./c.js?4 33 bytes [built] [code generated] +./c.js?5 33 bytes [built] [code generated] +./c.js?6 33 bytes [built] [code generated] +./c.js?7 33 bytes [built] [code generated] +./c.js?8 33 bytes [built] [code generated] ++ 12 modules +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for max-modules-default 1`] = ` +"asset main.js 4.66 KiB [emitted] (name: main) +Entrypoint main 4.66 KiB = main.js +./index.js 181 bytes [built] [code generated] +./a.js?1 33 bytes [built] [code generated] +./a.js?2 33 bytes [built] [code generated] +./a.js?3 33 bytes [built] [code generated] +./a.js?4 33 bytes [built] [code generated] +./a.js?5 33 bytes [built] [code generated] +./a.js?6 33 bytes [built] [code generated] +./a.js?7 33 bytes [built] [code generated] +./a.js?8 33 bytes [built] [code generated] +./a.js?9 33 bytes [built] [code generated] +./a.js?10 33 bytes [built] [code generated] +./c.js?1 33 bytes [built] [code generated] +./c.js?2 33 bytes [built] [code generated] +./c.js?3 33 bytes [built] [code generated] ++ 17 modules +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for module-assets 1`] = ` +"assets by path *.js 8.69 KiB + asset main.js 8.25 KiB [emitted] (name: main) + asset b.js 226 bytes [emitted] (name: b) + asset a.js 225 bytes [emitted] (name: a) +assets by path *.png 42 KiB + asset 1.png 21 KiB [emitted] + asset 2.png 21 KiB [emitted] +Entrypoint main 8.25 KiB = main.js +Chunk Group a 225 bytes = a.js +Chunk Group b 226 bytes = b.js +chunk (runtime: main) a.js (a) 36 bytes [rendered] + ./node_modules/a/index.js 36 bytes [built] [code generated] +chunk (runtime: main) b.js (b) 18 bytes [rendered] + ./node_modules/b/index.js 18 bytes [built] [code generated] +chunk (runtime: main) main.js (main) 82 bytes (javascript) 6.68 KiB (runtime) [entry] [rendered] + ./index.js 82 bytes [built] [code generated] +runtime modules 6.68 KiB 8 modules +orphan modules 98 bytes [orphan] 2 modules +modules with assets 136 bytes + ./index.js 82 bytes [built] [code generated] + ./node_modules/a/index.js 36 bytes [built] [code generated] + ./node_modules/b/index.js 18 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for module-deduplication 1`] = ` +"asset e1.js 9.58 KiB [emitted] (name: e1) +asset e2.js 9.58 KiB [emitted] (name: e2) +asset e3.js 9.58 KiB [emitted] (name: e3) +asset 106.js 780 bytes [emitted] +asset 511.js 780 bytes [emitted] +asset 637.js 780 bytes [emitted] +asset 263.js 512 bytes [emitted] +asset 400.js 512 bytes [emitted] +asset 806.js 512 bytes [emitted] +Entrypoint e1 9.58 KiB = e1.js +Entrypoint e2 9.58 KiB = e2.js +Entrypoint e3 9.58 KiB = e3.js +chunk (runtime: e1, e2) 106.js 81 bytes [rendered] + ./async3.js 61 bytes [built] [code generated] + ./h.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e1) 263.js 61 bytes [rendered] + ./async1.js 61 bytes [built] [code generated] +chunk (runtime: e3) 400.js 61 bytes [rendered] + ./async3.js 61 bytes [built] [code generated] +chunk (runtime: e1, e3) 511.js 81 bytes [rendered] + ./async2.js 61 bytes [built] [code generated] + ./f.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e1) e1.js (e1) 249 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./d.js 20 bytes [dependent] [built] [code generated] + ./e1.js + 2 modules 209 bytes [code generated] +chunk (runtime: e2, e3) 637.js 81 bytes [rendered] + ./async1.js 61 bytes [built] [code generated] + ./d.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e3) e3.js (e3) 249 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./e3.js + 2 modules 209 bytes [code generated] + ./h.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e2) 806.js 61 bytes [rendered] + ./async2.js 61 bytes [built] [code generated] +chunk (runtime: e2) e2.js (e2) 249 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./e2.js + 2 modules 209 bytes [code generated] + ./f.js 20 bytes [dependent] [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for module-deduplication-named 1`] = ` +"asset e1.js 9.44 KiB [emitted] (name: e1) +asset e2.js 9.44 KiB [emitted] (name: e2) +asset e3.js 9.43 KiB [emitted] (name: e3) +asset async1.js 892 bytes [emitted] (name: async1) +asset async2.js 891 bytes [emitted] (name: async2) +asset async3.js 891 bytes [emitted] (name: async3) +Entrypoint e1 9.44 KiB = e1.js +Entrypoint e2 9.44 KiB = e2.js +Entrypoint e3 9.43 KiB = e3.js +chunk (runtime: e1, e2, e3) async3.js (async3) 135 bytes [rendered] + ./async3.js 115 bytes [built] [code generated] + ./h.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e1) e1.js (e1) 242 bytes (javascript) 6.99 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./d.js 20 bytes [dependent] [built] [code generated] + ./e1.js + 2 modules 202 bytes [code generated] +chunk (runtime: e1, e2, e3) async2.js (async2) 135 bytes [rendered] + ./async2.js 115 bytes [built] [code generated] + ./f.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e1, e2, e3) async1.js (async1) 135 bytes [rendered] + ./async1.js 115 bytes [built] [code generated] + ./d.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e3) e3.js (e3) 242 bytes (javascript) 6.99 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./e3.js + 2 modules 202 bytes [code generated] + ./h.js 20 bytes [dependent] [built] [code generated] +chunk (runtime: e2) e2.js (e2) 242 bytes (javascript) 6.99 KiB (runtime) [entry] [rendered] + ./b.js 20 bytes [dependent] [built] [code generated] + ./e2.js + 2 modules 202 bytes [code generated] + ./f.js 20 bytes [dependent] [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = ` +"ERROR in ./index.js + × Module not found: Can't resolve 'os' in 'Xdir/module-not-found-error' + ╭─[1:1] + 1 │ require('buffer') + 2 │ require('os') + · ───────────── + ╰──── + +Rspack compiled with 1 error" +`; + +exports[`StatsTestCases should print correct stats for module-reasons 1`] = ` +"asset main.js 1.12 KiB [emitted] (name: main) +Entrypoint main 1.12 KiB = main.js +orphan modules 102 bytes [orphan] 3 modules +cacheable modules 110 bytes + ./index.js + 2 modules 102 bytes [code generated] + entry ./index + ./c.js 8 bytes [built] [code generated] + cjs require ./c + cjs require ./c + cjs require ./c + cjs require ./c +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for named-chunk-groups 1`] = ` +"Chunk Group async-a 1 KiB = a-727.js 250 bytes a-async-a.js 778 bytes +Chunk Group async-b 1 KiB = a-727.js 250 bytes a-async-b.js 778 bytes +Chunk Group async-c 1.27 KiB = a-vendors.js 624 bytes a-async-c.js 681 bytes +Chunk Group main 9.27 KiB = a-main.js +chunk (runtime: main) a-async-c.js (async-c) 67 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 67 bytes [built] [code generated] +chunk (runtime: main) a-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) + > ./c [10] ./index.js 3:0-47 + ./node_modules/x.js 20 bytes [built] [code generated] + ./node_modules/y.js 20 bytes [built] [code generated] +chunk (runtime: main) a-async-a.js (async-a) 175 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 175 bytes [built] [code generated] +chunk (runtime: main) a-async-b.js (async-b) 175 bytes [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 175 bytes [built] [code generated] +chunk (runtime: main) a-727.js (id hint: ) 149 bytes [rendered] split chunk (cache group: default) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./shared.js 149 bytes [built] [code generated] +chunk (runtime: main) a-main.js (main) 146 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 146 bytes [built] [code generated] +Rspack x.x.x compiled successfully + +Entrypoint main 9.27 KiB = b-main.js +Chunk Group async-a 1 KiB = b-727.js 250 bytes b-async-a.js 778 bytes +Chunk Group async-b 1 KiB = b-727.js 250 bytes b-async-b.js 778 bytes +Chunk Group async-c 1.27 KiB = b-vendors.js 624 bytes b-async-c.js 681 bytes +chunk (runtime: main) b-async-c.js (async-c) 67 bytes [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 67 bytes [built] [code generated] +chunk (runtime: main) b-vendors.js (vendors) (id hint: vendors) 40 bytes [rendered] split chunk (cache group: vendors) + > ./c [10] ./index.js 3:0-47 + ./node_modules/x.js 20 bytes [built] [code generated] + ./node_modules/y.js 20 bytes [built] [code generated] +chunk (runtime: main) b-async-a.js (async-a) 175 bytes [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 175 bytes [built] [code generated] +chunk (runtime: main) b-async-b.js (async-b) 175 bytes [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 175 bytes [built] [code generated] +chunk (runtime: main) b-727.js (id hint: ) 149 bytes [rendered] split chunk (cache group: default) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./shared.js 149 bytes [built] [code generated] +chunk (runtime: main) b-main.js (main) 146 bytes (javascript) 7.32 KiB (runtime) [entry] [rendered] + > ./ main + ./index.js 146 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for named-chunks-plugin 1`] = ` +"asset entry.js 4.27 KiB [emitted] (name: entry) +asset vendor.js 211 bytes [emitted] (name: vendor) +Entrypoint entry 4.48 KiB = vendor.js 211 bytes entry.js 4.27 KiB +runtime modules 2.58 KiB 3 modules +cacheable modules 138 bytes + ./entry.js 72 bytes [built] [code generated] + ./modules/a.js 22 bytes [built] [code generated] + ./modules/b.js 22 bytes [built] [code generated] + ./modules/c.js 22 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for output-module 1`] = ` +"asset main.mjs 8.24 KiB [emitted] [javascript module] (name: main) +asset 8.mjs 329 bytes [emitted] [javascript module] +Entrypoint main 8.24 KiB = main.mjs +runtime modules 6.48 KiB 9 modules +orphan modules 225 bytes [orphan] 2 modules +cacheable modules 263 bytes + ./index.js + 1 modules 225 bytes [code generated] + ./chunk.js 38 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for parse-error 1`] = ` +"asset main.js 1.44 KiB [emitted] (name: main) +Entrypoint main 1.44 KiB = main.js +orphan modules 30 bytes [orphan] 2 modules +cacheable modules 85 bytes + ./index.js + 1 modules 30 bytes [code generated] + ./b.js 55 bytes [built] [code generated] [1 error] + +ERROR in ./b.js + × Module parse failed: + ╰─▶ × JavaScript parsing error: Expected ';', '}' or + ╭─[4:1] + 4 │ includes + 5 │ a + 6 │ parser ) + · ─ + 7 │ error + 8 │ in + ╰──── + + help: + You may need an appropriate loader to handle this file type. + +Rspack x.x.x compiled with 1 error" +`; + exports[`StatsTestCases should print correct stats for performance-different-mode-and-target 1`] = ` "asset warning.pro-web.js 294 KiB [emitted] (name: main) Entrypoint main 294 KiB = warning.pro-web.js @@ -148,6 +1013,906 @@ Entrypoint sec 294 KiB = sec.js Rspack x.x.x compiled with 3 errors in X s" `; +exports[`StatsTestCases should print correct stats for prefetch 1`] = ` +"asset main.js 13.6 KiB {909} [emitted] (name: main) +asset prefetched.js 554 bytes {674} [emitted] (name: prefetched) +asset inner2.js 130 bytes {857} [emitted] (name: inner2) +asset inner.js 102 bytes {481} [emitted] (name: inner) +asset normal.js 102 bytes {615} [emitted] (name: normal) +asset prefetched2.js 102 bytes {424} [emitted] (name: prefetched2) +asset prefetched3.js 102 bytes {182} [emitted] (name: prefetched3) +Entrypoint main 13.6 KiB = main.js + prefetch: prefetched.js {674} (name: prefetched) +chunk {182} (runtime: main) prefetched3.js (prefetched3) 1 bytes <{909}> [rendered] +chunk {424} (runtime: main) prefetched2.js (prefetched2) 1 bytes <{909}> [rendered] +chunk {481} (runtime: main) inner.js (inner) 1 bytes <{674}> [rendered] +chunk {615} (runtime: main) normal.js (normal) 1 bytes <{909}> [rendered] +chunk {674} (runtime: main) prefetched.js (prefetched) 228 bytes <{909}> >{481}< >{857}< (prefetch: {857} {481}) [rendered] +chunk {857} (runtime: main) inner2.js (inner2) 2 bytes <{674}> [rendered] +chunk {909} (runtime: main) main.js (main) 436 bytes (javascript) 10.7 KiB (runtime) >{182}< >{424}< >{615}< >{674}< (prefetch: {674}) [entry] [rendered]" +`; + +exports[`StatsTestCases should print correct stats for prefetch-preload-mixed 1`] = ` +"chunk (runtime: main) a1.js (a1) 1 bytes <{74}> [rendered] +chunk (runtime: main) c2.js (c2) 1 bytes <{76}> [rendered] +chunk (runtime: main) c1.js (c1) 1 bytes <{76}> [rendered] +chunk (runtime: main) b3.js (b3) 1 bytes <{751}> [rendered] +chunk (runtime: main) b2.js (b2) 1 bytes <{751}> [rendered] +chunk (runtime: main) a.js (a) 136 bytes <{909}> >{330}< >{740}< (prefetch: {330} {740}) [rendered] +chunk (runtime: main) a2.js (a2) 1 bytes <{74}> [rendered] +chunk (runtime: main) b.js (b) 203 bytes <{909}> >{438}< >{439}< >{826}< (prefetch: {826} {438}) (preload: {439}) [rendered] +chunk (runtime: main) c.js (c) 134 bytes <{909}> >{380}< >{433}< (preload: {433} {380}) [rendered] +chunk (runtime: main) b1.js (b1) 1 bytes <{751}> [rendered] +chunk (runtime: main) main.js (main) 195 bytes (javascript) 11.4 KiB (runtime) >{74}< >{751}< >{76}< (prefetch: {74} {751} {76}) [entry] [rendered]" +`; + +exports[`StatsTestCases should print correct stats for preload 1`] = ` +"asset main.js 12.2 KiB [emitted] (name: main) +asset preloaded.js 554 bytes [emitted] (name: preloaded) +asset inner2.js 130 bytes [emitted] (name: inner2) +asset inner.js 102 bytes [emitted] (name: inner) +asset normal.js 102 bytes [emitted] (name: normal) +asset preloaded2.js 101 bytes [emitted] (name: preloaded2) +asset preloaded3.js 100 bytes [emitted] (name: preloaded3) +Entrypoint main 12.2 KiB = main.js + preload: preloaded.js {154} (name: preloaded) +chunk (runtime: main) preloaded.js (preloaded) 226 bytes (preload: {857} {481}) [rendered] +chunk (runtime: main) inner.js (inner) 1 bytes [rendered] +chunk (runtime: main) preloaded3.js (preloaded3) 1 bytes [rendered] +chunk (runtime: main) preloaded2.js (preloaded2) 1 bytes [rendered] +chunk (runtime: main) normal.js (normal) 1 bytes [rendered] +chunk (runtime: main) inner2.js (inner2) 2 bytes [rendered] +chunk (runtime: main) main.js (main) 424 bytes (javascript) 9.46 KiB (runtime) (preload: {154}) [entry] [rendered]" +`; + +exports[`StatsTestCases should print correct stats for preset-errors-only 1`] = `""`; + +exports[`StatsTestCases should print correct stats for preset-errors-only-error 1`] = ` +" [LogTestPlugin] Error +LOG from LogTestPlugin + Error ++ 14 hidden lines + +ERROR in ./index.js + × Module not found: Can't resolve 'does-not-exist' in 'Xdir/preset-errors-only-error' + ╭──── + 1 │ require('does-not-exist') + · ───────────────────────── + ╰──── + +Rspack compiled with 1 error" +`; + +exports[`StatsTestCases should print correct stats for preset-errors-warnings 1`] = ` +" [LogTestPlugin] Error + [LogTestPlugin] Warning +LOG from LogTestPlugin + Error + Warning ++ 13 hidden lines + +Rspack compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for preset-minimal-simple 1`] = ` +"asset main.js 66 bytes [emitted] (name: main) +1 module +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for preset-mixed-array 1`] = ` +"minimal: + asset minimal.js 74 bytes [emitted] (name: main) + 1 module + minimal (Rspack x.x.x) compiled successfully in X s + +verbose: + Entrypoint main 74 bytes = verbose.js + ./index.js 8 bytes [built] [code generated] + verbose (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for preset-none 1`] = ` +" [LogTestPlugin] Error + [LogTestPlugin] Warning + [LogTestPlugin] Info +" +`; + +exports[`StatsTestCases should print correct stats for preset-none-array 1`] = `""`; + +exports[`StatsTestCases should print correct stats for preset-none-error 1`] = `""`; + +exports[`StatsTestCases should print correct stats for preset-summary 1`] = ` +" [LogTestPlugin] Error + [LogTestPlugin] Warning + [LogTestPlugin] Info +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for real-content-hash 1`] = ` +"a-normal: + assets by path *.js 3.3 KiB + asset e1f824d630efaf7212ae-e1f824.js 2.83 KiB [emitted] [immutable] (name: runtime) + asset a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes [emitted] [immutable] (name: index) + asset fcbeb835bbe3c6462b2c-fcbeb8.js 228 bytes [emitted] [immutable] (name: lazy) + asset 666f2b8847021ccc7608-666f2b.js 21 bytes [emitted] [immutable] (name: a, b) + assets by path *.jpg 11.8 KiB + asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) + asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) + asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) + Entrypoint index 3.06 KiB = e1f824d630efaf7212ae-e1f824.js 2.83 KiB a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes + Entrypoint a 21 bytes = 666f2b8847021ccc7608-666f2b.js + Entrypoint b 21 bytes = 666f2b8847021ccc7608-666f2b.js + runtime modules 7.59 KiB 8 modules + orphan modules 150 bytes [orphan] 2 modules + cacheable modules 556 bytes (javascript) 26.3 KiB (asset) + javascript modules 430 bytes + ./index.js 150 bytes [built] [code generated] + ./a.js 22 bytes [built] [code generated] + ./b.js 66 bytes [built] [code generated] + ./lazy.js + 2 modules 192 bytes [code generated] + asset modules 26.3 KiB (asset) 126 bytes (javascript) + ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + a-normal (Rspack x.x.x) compiled successfully in X s + +b-normal: + assets by path *.js 3.3 KiB + asset e1f824d630efaf7212ae-e1f824.js 2.83 KiB [emitted] [immutable] (name: runtime) + asset a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes [emitted] [immutable] (name: index) + asset fcbeb835bbe3c6462b2c-fcbeb8.js 228 bytes [emitted] [immutable] (name: lazy) + asset 666f2b8847021ccc7608-666f2b.js 21 bytes [emitted] [immutable] (name: a, b) + assets by path *.jpg 11.8 KiB + asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) + asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) + asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) + Entrypoint index 3.06 KiB = e1f824d630efaf7212ae-e1f824.js 2.83 KiB a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes + Entrypoint a 21 bytes = 666f2b8847021ccc7608-666f2b.js + Entrypoint b 21 bytes = 666f2b8847021ccc7608-666f2b.js + runtime modules 7.59 KiB 8 modules + orphan modules 146 bytes [orphan] 2 modules + cacheable modules 511 bytes (javascript) 26.3 KiB (asset) + javascript modules 385 bytes + ./index.js 109 bytes [built] [code generated] + ./a.js 22 bytes [built] [code generated] + ./b.js 66 bytes [built] [code generated] + ./lazy.js + 2 modules 188 bytes [code generated] + asset modules 26.3 KiB (asset) 126 bytes (javascript) + ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + b-normal (Rspack x.x.x) compiled successfully in X s + +a-source-map: + assets by path *.js 3.47 KiB + asset 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB [emitted] [immutable] (name: runtime) + asset 841a97b5e1c2aadea897-841a97.js 293 bytes [emitted] [immutable] (name: index) + asset d5618185d52ece86383b-d56181.js 284 bytes [emitted] [immutable] (name: lazy) + asset 222c2acc68675174e6b2-222c2a.js 77 bytes [emitted] [immutable] (name: a, b) + assets by path *.map 940 bytes + asset d5618185d52ece86383b-d56181.js.map 393 bytes [emitted] [dev] (name: lazy) + asset 841a97b5e1c2aadea897-841a97.js.map 354 bytes [emitted] [dev] (name: index) + asset 222c2acc68675174e6b2-222c2a.js.map 193 bytes [emitted] [dev] (name: a, b) + assets by path *.jpg 11.8 KiB + asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) + asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) + asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) + Entrypoint index 3.11 KiB = 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB 841a97b5e1c2aadea897-841a97.js 293 bytes + Entrypoint a 77 bytes = 222c2acc68675174e6b2-222c2a.js + Entrypoint b 77 bytes = 222c2acc68675174e6b2-222c2a.js + runtime modules 7.59 KiB 8 modules + orphan modules 150 bytes [orphan] 2 modules + cacheable modules 556 bytes (javascript) 26.3 KiB (asset) + javascript modules 430 bytes + ./index.js 150 bytes [built] [code generated] + ./a.js 22 bytes [built] [code generated] + ./b.js 66 bytes [built] [code generated] + ./lazy.js + 2 modules 192 bytes [code generated] + asset modules 26.3 KiB (asset) 126 bytes (javascript) + ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + a-source-map (Rspack x.x.x) compiled successfully in X s + +b-source-map: + assets by path *.js 3.47 KiB + asset 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB [emitted] [immutable] (name: runtime) + asset 841a97b5e1c2aadea897-841a97.js 293 bytes [emitted] [immutable] (name: index) + asset d5618185d52ece86383b-d56181.js 284 bytes [emitted] [immutable] (name: lazy) + asset 222c2acc68675174e6b2-222c2a.js 77 bytes [emitted] [immutable] (name: a, b) + assets by path *.map 944 bytes + asset d5618185d52ece86383b-d56181.js.map 389 bytes [emitted] [dev] (name: lazy) + asset 841a97b5e1c2aadea897-841a97.js.map 312 bytes [emitted] [dev] (name: index) + asset 222c2acc68675174e6b2-222c2a.js.map 243 bytes [emitted] [dev] (name: a, b) + assets by path *.jpg 11.8 KiB + asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) + asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) + asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) + Entrypoint index 3.11 KiB = 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB 841a97b5e1c2aadea897-841a97.js 293 bytes + Entrypoint a 77 bytes = 222c2acc68675174e6b2-222c2a.js + Entrypoint b 77 bytes = 222c2acc68675174e6b2-222c2a.js + runtime modules 7.59 KiB 8 modules + orphan modules 146 bytes [orphan] 2 modules + cacheable modules 511 bytes (javascript) 26.3 KiB (asset) + javascript modules 385 bytes + ./index.js 109 bytes [built] [code generated] + ./a.js 22 bytes [built] [code generated] + ./b.js 66 bytes [built] [code generated] + ./lazy.js + 2 modules 188 bytes [code generated] + asset modules 26.3 KiB (asset) 126 bytes (javascript) + ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] + ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] + b-source-map (Rspack x.x.x) compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for related-assets 1`] = ` +"default: + assets by path *.br 13.5 KiB + asset default-main.js.br 11.5 KiB [emitted] + + 7 assets + assets by path *.gz 13.5 KiB + asset default-main.js.gz 11.5 KiB [emitted] + + 7 assets + assets by path *.map 1.25 KiB + asset default-main.js.map 667 bytes [emitted] (name: main) + + 3 assets + assets by path *.js 12.1 KiB + asset default-main.js 11.5 KiB [emitted] (name: main) + asset default-chunk_js.js 625 bytes [emitted] + assets by path *.css 142 bytes + asset default-chunk_js.css 73 bytes [emitted] + asset default-main.css 69 bytes [emitted] (name: main) + +relatedAssets: + assets by path *.br 13.5 KiB + asset relatedAssets-main.js.br 11.5 KiB [emitted] + + 7 assets + assets by path *.gz 13.5 KiB + asset relatedAssets-main.js.gz 11.5 KiB [emitted] + + 7 assets + assets by path *.map 1.28 KiB + asset relatedAssets-main.js.map 673 bytes [emitted] (name: main) + + 3 assets + assets by path *.js 12.1 KiB + asset relatedAssets-main.js 11.5 KiB [emitted] (name: main) + asset relatedAssets-chunk_js.js 631 bytes [emitted] + assets by path *.css 154 bytes + asset relatedAssets-chunk_js.css 79 bytes [emitted] + asset relatedAssets-main.css 75 bytes [emitted] (name: main) + +exclude1: + assets by path *.br 13.5 KiB + asset exclude1-main.js.br 11.5 KiB [emitted] + + 7 assets + assets by path *.gz 13.5 KiB + asset exclude1-main.js.gz 11.5 KiB [emitted] + + 7 assets + assets by path *.map 1.26 KiB + asset exclude1-main.js.map 668 bytes [emitted] (name: main) + + 3 assets + assets by path *.js 12.1 KiB + asset exclude1-main.js 11.5 KiB [emitted] (name: main) + asset exclude1-chunk_js.js 626 bytes [emitted] + assets by path *.css 144 bytes + asset exclude1-chunk_js.css 74 bytes [emitted] + asset exclude1-main.css 70 bytes [emitted] (name: main) + +exclude2: + assets by path *.br 13.5 KiB + asset exclude2-main.js.br 11.5 KiB [emitted] + + 7 assets + assets by path *.gz 13.5 KiB + asset exclude2-main.js.gz 11.5 KiB [emitted] + + 7 assets + assets by path *.map 1.26 KiB + asset exclude2-main.js.map 668 bytes [emitted] (name: main) + + 3 assets + assets by path *.js 12.1 KiB + asset exclude2-main.js 11.5 KiB [emitted] (name: main) + asset exclude2-chunk_js.js 626 bytes [emitted] + assets by path *.css 144 bytes + asset exclude2-chunk_js.css 74 bytes [emitted] + asset exclude2-main.css 70 bytes [emitted] (name: main) + +exclude3: + assets by path *.br 13.5 KiB + asset exclude3-main.js.br 11.5 KiB [emitted] + + 7 assets + assets by path *.gz 13.5 KiB + asset exclude3-main.js.gz 11.5 KiB [emitted] + + 7 assets + assets by path *.map 1.26 KiB + asset exclude3-main.js.map 668 bytes [emitted] (name: main) + + 3 assets + assets by path *.js 12.1 KiB + asset exclude3-main.js 11.5 KiB [emitted] (name: main) + asset exclude3-chunk_js.js 626 bytes [emitted] + assets by path *.css 144 bytes + asset exclude3-chunk_js.css 74 bytes [emitted] + asset exclude3-main.css 70 bytes [emitted] (name: main)" +`; + +exports[`StatsTestCases should print correct stats for reverse-sort-modules 1`] = ` +"asset main.js 4.66 KiB [emitted] (name: main) +Entrypoint main 4.66 KiB = main.js +./index.js 181 bytes [built] [code generated] +./c.js?9 33 bytes [built] [code generated] +./c.js?8 33 bytes [built] [code generated] +./c.js?7 33 bytes [built] [code generated] +./c.js?6 33 bytes [built] [code generated] +./c.js?5 33 bytes [built] [code generated] +./c.js?4 33 bytes [built] [code generated] +./c.js?3 33 bytes [built] [code generated] +./c.js?2 33 bytes [built] [code generated] +./c.js?10 33 bytes [built] [code generated] +./c.js?1 33 bytes [built] [code generated] +./b.js?9 34 bytes [built] [code generated] +./b.js?8 34 bytes [built] [code generated] +./b.js?7 34 bytes [built] [code generated] +./b.js?6 34 bytes [built] [code generated] +./b.js?5 34 bytes [built] [code generated] +./b.js?4 34 bytes [built] [code generated] +./b.js?3 34 bytes [built] [code generated] +./b.js?2 34 bytes [built] [code generated] +./b.js?10 34 bytes [built] [code generated] +./b.js?1 34 bytes [built] [code generated] +./a.js?9 33 bytes [built] [code generated] +./a.js?8 33 bytes [built] [code generated] +./a.js?7 33 bytes [built] [code generated] +./a.js?6 33 bytes [built] [code generated] +./a.js?5 33 bytes [built] [code generated] +./a.js?4 33 bytes [built] [code generated] +./a.js?3 33 bytes [built] [code generated] +./a.js?2 33 bytes [built] [code generated] +./a.js?10 33 bytes [built] [code generated] +./a.js?1 33 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for runtime-chunk 1`] = ` +"Entrypoint e1 4.07 KiB = runtime~e1.js 3.68 KiB e1.js 391 bytes +Entrypoint e2 4.07 KiB = runtime~e2.js 3.68 KiB e2.js 391 bytes +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for runtime-chunk-issue-7382 1`] = ` +"Entrypoint e1 4.36 KiB = runtime.js 3.68 KiB all.js 310 bytes e1.js 381 bytes +Entrypoint e2 4.36 KiB = runtime.js 3.68 KiB all.js 310 bytes e2.js 381 bytes +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for runtime-chunk-single 1`] = ` +"Entrypoint e1 4.06 KiB = runtime.js 3.68 KiB e1.js 391 bytes +Entrypoint e2 4.06 KiB = runtime.js 3.68 KiB e2.js 391 bytes +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for runtime-specific-used-exports 1`] = ` +"production: + asset production-a.js 10.3 KiB [emitted] (name: a) + asset production-b.js 10.3 KiB [emitted] (name: b) + asset production-dx_js.js 956 bytes [emitted] + asset production-dw_js-_5cba0.js 932 bytes [emitted] + asset production-dw_js-_5cba1.js 932 bytes [emitted] + asset production-dy_js.js 925 bytes [emitted] + asset production-dz_js.js 925 bytes [emitted] + asset production-c.js 75 bytes [emitted] (name: c) + Entrypoint a 10.3 KiB = production-a.js + Entrypoint b 10.3 KiB = production-b.js + Entrypoint c 75 bytes = production-c.js + chunk (runtime: a) production-a.js (a) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./a.js 261 bytes [built] [code generated] + [no exports used] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [only some exports used: default] + ./module.js 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + chunk (runtime: b) production-b.js (b) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./b.js 261 bytes [built] [code generated] + [no exports used] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [only some exports used: default] + ./module.js 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + chunk (runtime: c) production-c.js (c) 9 bytes [entry] [rendered] + ./c.js 9 bytes [built] [code generated] + [no exports used] + chunk (runtime: a) production-dw_js-_5cba0.js 168 bytes [rendered] + ./dw.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: b) production-dw_js-_5cba1.js 168 bytes [rendered] + ./dw.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: a, b) production-dx_js.js 168 bytes [rendered] + ./dx.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: a) production-dy_js.js 168 bytes [rendered] + ./dy.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: b) production-dz_js.js 168 bytes [rendered] + ./dz.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + runtime modules 13.9 KiB 18 modules + cacheable modules 1.15 KiB + ./a.js 261 bytes [built] [code generated] + [no exports used] + ./b.js 261 bytes [built] [code generated] + [no exports used] + ./c.js 9 bytes [built] [code generated] + [no exports used] + ./module.js 122 bytes [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [built] [code generated] + [only some exports used: x, y] + ./dx-importer.js 63 bytes [built] [code generated] + [only some exports used: default] + ./dy.js 46 bytes [built] [code generated] + ./dw.js 46 bytes [built] [code generated] + ./dz.js 46 bytes [built] [code generated] + ./module.js?reexported 122 bytes [built] [code generated] + [only some exports used: x, y] + ./module.js?chunk 122 bytes [built] [code generated] + [only some exports used: identity, w, x, y, z] + ./dx.js 46 bytes [built] [code generated] + production (Rspack x.x.x) compiled successfully in X s + +development: + asset development-a.js 12 KiB [emitted] (name: a) + asset development-b.js 12 KiB [emitted] (name: b) + asset development-dw_js.js 1.18 KiB [emitted] + asset development-dx_js.js 1.18 KiB [emitted] + asset development-dy_js.js 1.18 KiB [emitted] + asset development-dz_js.js 1.18 KiB [emitted] + asset development-c.js 419 bytes [emitted] (name: c) + Entrypoint a 12 KiB = development-a.js + Entrypoint b 12 KiB = development-b.js + Entrypoint c 419 bytes = development-c.js + chunk (runtime: a) development-a.js (a) 605 bytes (javascript) 6.95 KiB (runtime) [entry] [rendered] + ./a.js 261 bytes [built] [code generated] + [used exports unknown] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [used exports unknown] + ./module.js 122 bytes [dependent] [built] [code generated] + [used exports unknown] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [used exports unknown] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [used exports unknown] + chunk (runtime: b) development-b.js (b) 605 bytes (javascript) 6.95 KiB (runtime) [entry] [rendered] + ./b.js 261 bytes [built] [code generated] + [used exports unknown] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [used exports unknown] + ./module.js 122 bytes [dependent] [built] [code generated] + [used exports unknown] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [used exports unknown] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [used exports unknown] + chunk (runtime: c) development-c.js (c) 9 bytes [entry] [rendered] + ./c.js 9 bytes [built] [code generated] + [used exports unknown] + chunk (runtime: a, b) development-dw_js.js 168 bytes [rendered] + ./dw.js 46 bytes [built] [code generated] + [used exports unknown] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [used exports unknown] + chunk (runtime: a, b) development-dx_js.js 168 bytes [rendered] + ./dx.js 46 bytes [built] [code generated] + [used exports unknown] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [used exports unknown] + chunk (runtime: a) development-dy_js.js 168 bytes [rendered] + ./dy.js 46 bytes [built] [code generated] + [used exports unknown] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [used exports unknown] + chunk (runtime: b) development-dz_js.js 168 bytes [rendered] + ./dz.js 46 bytes [built] [code generated] + [used exports unknown] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [used exports unknown] + runtime modules 13.9 KiB 18 modules + cacheable modules 1.15 KiB + ./a.js 261 bytes [built] [code generated] + [used exports unknown] + ./b.js 261 bytes [built] [code generated] + [used exports unknown] + ./c.js 9 bytes [built] [code generated] + [used exports unknown] + ./module.js 122 bytes [built] [code generated] + [used exports unknown] + ./reexport.js 37 bytes [built] [code generated] + [used exports unknown] + ./dx-importer.js 63 bytes [built] [code generated] + [used exports unknown] + ./dy.js 46 bytes [built] [code generated] + [used exports unknown] + ./dw.js 46 bytes [built] [code generated] + [used exports unknown] + ./dz.js 46 bytes [built] [code generated] + [used exports unknown] + ./module.js?reexported 122 bytes [built] [code generated] + [used exports unknown] + ./module.js?chunk 122 bytes [built] [code generated] + [used exports unknown] + ./dx.js 46 bytes [built] [code generated] + [used exports unknown] + development (Rspack x.x.x) compiled successfully in X s + +global: + asset global-a.js 10.4 KiB [emitted] (name: a) + asset global-b.js 10.4 KiB [emitted] (name: b) + asset global-dw_js.js 956 bytes [emitted] + asset global-dx_js.js 956 bytes [emitted] + asset global-dy_js.js 956 bytes [emitted] + asset global-dz_js.js 956 bytes [emitted] + asset global-c.js 75 bytes [emitted] (name: c) + Entrypoint a 10.4 KiB = global-a.js + Entrypoint b 10.4 KiB = global-b.js + Entrypoint c 75 bytes = global-c.js + chunk (runtime: a) global-a.js (a) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./a.js 261 bytes [built] [code generated] + [no exports used] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [only some exports used: default] + ./module.js 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + chunk (runtime: b) global-b.js (b) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] + ./b.js 261 bytes [built] [code generated] + [no exports used] + ./dx-importer.js 63 bytes [dependent] [built] [code generated] + [only some exports used: default] + ./module.js 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./module.js?reexported 122 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [dependent] [built] [code generated] + [only some exports used: x, y] + chunk (runtime: c) global-c.js (c) 9 bytes [entry] [rendered] + ./c.js 9 bytes [built] [code generated] + [no exports used] + chunk (runtime: a, b) global-dw_js.js 168 bytes [rendered] + ./dw.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: a, b) global-dx_js.js 168 bytes [rendered] + ./dx.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: a) global-dy_js.js 168 bytes [rendered] + ./dy.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + chunk (runtime: b) global-dz_js.js 168 bytes [rendered] + ./dz.js 46 bytes [built] [code generated] + ./module.js?chunk 122 bytes [dependent] [built] [code generated] + [only some exports used: identity, w, x, y, z] + runtime modules 13.9 KiB 18 modules + cacheable modules 1.15 KiB + ./a.js 261 bytes [built] [code generated] + [no exports used] + ./b.js 261 bytes [built] [code generated] + [no exports used] + ./c.js 9 bytes [built] [code generated] + [no exports used] + ./module.js 122 bytes [built] [code generated] + [only some exports used: x, y] + ./reexport.js 37 bytes [built] [code generated] + [only some exports used: x, y] + ./dx-importer.js 63 bytes [built] [code generated] + [only some exports used: default] + ./dy.js 46 bytes [built] [code generated] + ./dw.js 46 bytes [built] [code generated] + ./dz.js 46 bytes [built] [code generated] + ./module.js?reexported 122 bytes [built] [code generated] + [only some exports used: x, y] + ./module.js?chunk 122 bytes [built] [code generated] + [only some exports used: identity, w, x, y, z] + ./dx.js 46 bytes [built] [code generated] + global (Rspack x.x.x) compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` +"Entrypoint index 10.5 KiB = index.js +Entrypoint entry 168 bytes = entry.js +runtime modules 7.24 KiB 10 modules +cacheable modules 641 bytes + code generated modules 530 bytes [code generated] + ./index.js 150 bytes [built] [code generated] + Statement with side_effects in source code at ./index.js:7:0-25 + ModuleConcatenation bailout: Module is an entry point + ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/module-id.js: Module uses module.id + ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/module-loaded.js: Module uses module.loaded + ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/eval.js: Module uses eval() + ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/cjs.js: Module is not an ECMAScript module + ./cjs.js 59 bytes [built] [code generated] + Statement with side_effects in source code at ./cjs.js:1:0-26 + ModuleConcatenation bailout: Module is not an ECMAScript module + ./ref-from-cjs.js 45 bytes [built] [code generated] + ./eval.js 35 bytes [built] [code generated] + ExportDefaultExpr with side_effects in source code at ./eval.js:1:0-34 + ModuleConcatenation bailout: Module uses eval() + ./module-id.js 26 bytes [built] [code generated] + ExportDefaultExpr with side_effects in source code at ./module-id.js:1:0-25 + ModuleConcatenation bailout: Module uses module.id + ./module-loaded.js 30 bytes [built] [code generated] + ExportDefaultExpr with side_effects in source code at ./module-loaded.js:1:0-29 + ModuleConcatenation bailout: Module uses module.loaded + ./entry.js 32 bytes [built] [code generated] + ModuleConcatenation bailout: Module is an entry point + + 2 modules + orphan modules 111 bytes [orphan] + ./concatenated.js 26 bytes [orphan] [built] + ./concatenated1.js 37 bytes [orphan] [built] + ./concatenated2.js 48 bytes [orphan] [built] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for scope-hoisting-multi 1`] = ` +"Entrypoint first 8.78 KiB = a-first.js +Entrypoint second 8.78 KiB = a-second.js +runtime modules 14 KiB 18 modules +orphan modules 118 bytes [orphan] 4 modules +cacheable modules 726 bytes + ./first.js 236 bytes [built] [code generated] + ./second.js 202 bytes [built] [code generated] + ./lazy_first.js 91 bytes [built] [code generated] + ./lazy_shared.js 56 bytes [built] [code generated] + ./lazy_second.js 91 bytes [built] [code generated] + ./common_lazy.js 25 bytes [built] [code generated] + ./common_lazy_shared.js 25 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s + +Entrypoint first 8.78 KiB = b-first.js +Entrypoint second 8.78 KiB = b-second.js +runtime modules 14 KiB 18 modules +cacheable modules 1.05 KiB + built modules 844 bytes [built] + orphan modules 325 bytes [orphan] + ./common.js 37 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk + ./vendor.js 25 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk + ./common2.js 25 bytes [orphan] [built] + ModuleConcatenation bailout: Module is not in any chunk + + 4 modules + code generated modules 519 bytes [code generated] + ./first.js 236 bytes [built] [code generated] + Statement with side_effects in source code at ./first.js:5:0-60 + ModuleConcatenation bailout: Module is an entry point + ./second.js 202 bytes [built] [code generated] + Statement with side_effects in source code at ./second.js:4:0-62 + ModuleConcatenation bailout: Module is an entry point + ./lazy_shared.js 56 bytes [built] [code generated] + ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-multi/common_lazy_shared.js: Module ./common_lazy_shared.js is referenced from different chunks by these modules: ./lazy_first.js, ./lazy_second.js + ./common_lazy_shared.js 25 bytes [built] [code generated] + ./lazy_first.js + 1 modules 116 bytes [code generated] + ./lazy_second.js + 1 modules 116 bytes [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for side-effects-issue-7428 1`] = ` +"asset main.js 9.67 KiB [emitted] (name: main) +asset 0.js 586 bytes [emitted] +Entrypoint main 9.67 KiB = main.js +runtime modules 6.94 KiB 9 modules +cacheable modules 967 bytes + orphan modules 459 bytes [orphan] + ./main.js 144 bytes [orphan] [built] + [no exports used] + ./components/src/index.js 84 bytes [orphan] [built] + [module unused] + esm import ./components + esm import specifier ./components + esm import specifier ./components + esm import specifier ./components + esm import ./components + ./components/src/CompAB/CompB.js 77 bytes [orphan] [built] + [only some exports used: default] + esm export ./CompB + esm export import specifier ./CompB + esm export import specifier ./CompAB + esm import specifier ./components + ./components/src/CompC/index.js 34 bytes [orphan] [built] + [module unused] + esm export ./CompC + esm export import specifier ./CompC + ./components/src/CompAB/index.js 87 bytes [orphan] [built] + [module unused] + esm export ./CompAB + esm export import specifier ./CompAB + esm export import specifier ./CompAB + ./components/src/CompC/CompC.js 33 bytes [orphan] [built] + [module unused] + esm export ./CompC + esm export import specifier ./CompC + code generated modules 508 bytes [code generated] + ./main.js + 1 modules 221 bytes [code generated] + [no exports used] + entry ./main.js + | ./main.js 144 bytes [orphan] [built] + | [no exports used] + | ./components/src/CompAB/CompB.js 77 bytes [orphan] [built] + | [only some exports used: default] + | esm export ./CompB + | esm export import specifier ./CompB + | esm export import specifier ./CompAB + | esm import specifier ./components + ./components/src/CompAB/CompA.js 89 bytes [built] [code generated] + [only some exports used: default] + esm export ./CompA + esm export import specifier ./CompA + esm export import specifier ./CompAB + esm import specifier ./components + esm import specifier ./components + ./foo.js 101 bytes [built] [code generated] + import() ./foo + ./components/src/CompAB/utils.js 97 bytes [built] [code generated] + esm import ./utils + esm import specifier ./utils + esm import ./utils + esm import specifier ./utils + esm import ./utils + esm import specifier ./utils +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for side-effects-optimization 1`] = ` +"asset main.js 1.38 KiB [emitted] (name: main) +Entrypoint main 1.38 KiB = main.js +runtime modules 1.08 KiB 4 modules +cacheable modules 1.35 KiB + ./index.js 116 bytes [built] [code generated] + [no exports] + [no exports used] + Statement with side_effects in source code at ./index.js:4:0-30 + ModuleConcatenation bailout: Module is an entry point + ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) + ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/a.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) + ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/module-with-export/index.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) + ./node_modules/big-module/index.js 44 bytes [built] [code generated] + [exports: a, huh] + [only some exports used: huh] + ModuleConcatenation bailout: Reexports in this module do not have a static target (huh : used in main) + ./node_modules/big-module/a.js 58 bytes [built] [code generated] + [exports: a, huh] + [all exports used] + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) + ./node_modules/module-with-export/index.js 1.01 KiB [built] [code generated] + [exports: huh, justToBeABigFile, smallVar] + [only some exports used: huh, smallVar] + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) + ./node_modules/module-with-export/emptyModule.js 43 bytes [built] [code generated] + [exports: huh] + [used exports unknown] + ModuleConcatenation bailout: Module is not an ECMAScript module + ./node_modules/big-module/log.js 92 bytes [built] [code generated] + [exports: huh] + [all exports used] + Statement with side_effects in source code at ./node_modules/big-module/log.js:3:0-5:2 + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) +Rspack x.x.x compiled successfully in X s + +asset main.no-side.js 1.41 KiB [emitted] (name: main) +Entrypoint main 1.41 KiB = main.no-side.js +runtime modules 1.08 KiB 4 modules +cacheable modules 1.35 KiB + ./index.js 116 bytes [built] [code generated] + [no exports] + [no exports used] + ModuleConcatenation bailout: Module is an entry point + ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) + ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/module-with-export/index.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) + ./node_modules/big-module/index.js 44 bytes [built] [code generated] + [exports: a, huh] + [all exports used] + ModuleConcatenation bailout: Reexports in this module do not have a static target (huh : used in main) + ./node_modules/module-with-export/index.js 1.01 KiB [built] [code generated] + [exports: huh, justToBeABigFile, smallVar] + [only some exports used: huh, smallVar] + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) + ./node_modules/big-module/a.js 58 bytes [built] [code generated] + [exports: a, huh] + [all exports used] + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) + ./node_modules/module-with-export/emptyModule.js 43 bytes [built] [code generated] + [no exports] + [used exports unknown] + ModuleConcatenation bailout: Module is not an ECMAScript module + ./node_modules/big-module/log.js 92 bytes [built] [code generated] + [exports: huh] + [all exports used] + ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for side-effects-simple-unused 1`] = ` +"asset main.js 329 bytes [emitted] (name: main) +Entrypoint main 329 bytes = main.js +./index.js 55 bytes [orphan] [built] + [no exports used] +./index.js + 2 modules 158 bytes [code generated] + [no exports used] + entry ./index + | ./index.js 55 bytes [orphan] [built] + | [no exports used] + | ./node_modules/pmodule/index.js 75 bytes [orphan] [built] + | [only some exports used: default] + | esm import pmodule + | esm import specifier pmodule + | esm import specifier pmodule + | ./node_modules/pmodule/c.js 28 bytes [orphan] [built] + | [only some exports used: z] + | esm import specifier pmodule + | esm export ./c + | esm export import specifier ./c +./node_modules/pmodule/index.js 75 bytes [orphan] [built] + [only some exports used: default] + esm import pmodule + esm import specifier pmodule + esm import specifier pmodule +./node_modules/pmodule/c.js 28 bytes [orphan] [built] + [only some exports used: z] + esm import specifier pmodule + esm export ./c + esm export import specifier ./c +./node_modules/pmodule/a.js 60 bytes [orphan] [built] + [module unused] + esm export ./a + esm export import specifier ./a + esm export ./a + esm export import specifier ./a +./node_modules/pmodule/b.js 69 bytes [orphan] [built] + [module unused] + esm export ./b + esm export import specifier ./b + esm export import specifier ./b + esm export import specifier ./b + esm export ./b + esm export import specifier ./b + esm export import specifier ./b + esm export import specifier ./b +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for simple 1`] = ` +"asset bundle.js 421 bytes [emitted] (name: main) +Entrypoint main 421 bytes = bundle.js +./index.js 1 bytes [built] [code generated] +Rspack x.x.x compiled successfully in X s" +`; + +exports[`StatsTestCases should print correct stats for simple-more-info 1`] = ` +"PublicPath: auto +asset bundle.js 66 bytes [emitted] (name: main) +Entrypoint main 66 bytes = bundle.js +./index.js 1 bytes [built] [code generated] + entry ./index + 0 ms (resolving: 0 ms, building: 0 ms) +Rspack x.x.x compiled successfully in X s" +`; + exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` "default: Entrypoint main 9.16 KiB = default/main.js @@ -494,3 +2259,307 @@ custom-chunks-filter-in-cache-groups: ./g.js 45 bytes [built] [code generated] custom-chunks-filter-in-cache-groups (Rspack x.x.x) compiled successfully" `; + +exports[`StatsTestCases should print correct stats for split-chunks-automatic-name 1`] = ` +"Entrypoint main 9.23 KiB = main.js +chunk (runtime: main) async-a.js (async-a) (id hint: common) 136 bytes <{main}> ={common-d_js}= ={common-node_modules_x_js}= ={common-node_modules_y_js}= [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js + 1 modules 136 bytes [code generated] +chunk (runtime: main) async-b.js (async-b) (id hint: common) 116 bytes <{main}> ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= ={common-node_modules_y_js}= [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 116 bytes [built] [code generated] +chunk (runtime: main) async-c.js (async-c) (id hint: common) 116 bytes <{main}> ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= ={common-node_modules_z_js}= [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 116 bytes [built] [code generated] +chunk (runtime: main) common-d_js.js (id hint: common) 20 bytes <{main}> ={async-a}= ={async-b}= ={async-c}= ={common-f_js}= ={common-node_modules_x_js}= ={common-node_modules_y_js}= ={common-node_modules_z_js}= [rendered] split chunk (cache group: a) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./d.js 20 bytes [built] [code generated] +chunk (runtime: main) common-f_js.js (id hint: common) 20 bytes <{main}> ={async-b}= ={async-c}= ={common-d_js}= ={common-node_modules_x_js}= ={common-node_modules_y_js}= ={common-node_modules_z_js}= [rendered] split chunk (cache group: a) + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./f.js 20 bytes [built] [code generated] +chunk (runtime: main) common-node_modules_x_js.js (id hint: common) 20 bytes <{main}> ={async-a}= ={async-b}= ={async-c}= ={common-d_js}= ={common-f_js}= ={common-node_modules_y_js}= ={common-node_modules_z_js}= [rendered] split chunk (cache group: b) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./node_modules/x.js 20 bytes [built] [code generated] +chunk (runtime: main) common-node_modules_y_js.js (id hint: common) 20 bytes <{main}> ={async-a}= ={async-b}= ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= [rendered] split chunk (cache group: b) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./node_modules/y.js 20 bytes [built] [code generated] +chunk (runtime: main) common-node_modules_z_js.js (id hint: common) 20 bytes <{main}> ={async-c}= ={common-d_js}= ={common-f_js}= ={common-node_modules_x_js}= [rendered] split chunk (cache group: b) + > ./c [10] ./index.js 3:0-47 + ./node_modules/z.js 20 bytes [built] [code generated] +chunk (runtime: main) main.js (main) (id hint: common) 147 bytes (javascript) 6.94 KiB (runtime) >{async-a}< >{async-b}< >{async-c}< >{common-d_js}< >{common-f_js}< >{common-node_modules_x_js}< >{common-node_modules_y_js}< >{common-node_modules_z_js}< [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] +production (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-chunk-name 1`] = ` +"Entrypoint main 8.88 KiB = default/main.js +chunk (runtime: main) default/async-a.js (async-a) 20 bytes <{909}> [rendered] + > a [10] ./index.js 1:0-45 + ./node_modules/a.js 20 bytes [built] [code generated] +chunk (runtime: main) default/async-b.js (async-b) (id hint: vendors) 122 bytes <{909}> [rendered] + > b [10] ./index.js 2:0-45 + ./node_modules/b.js 122 bytes [built] [code generated] +chunk (runtime: main) default/async-c-1.js (async-c-1) (id hint: vendors) 122 bytes <{909}> [rendered] + > c [10] ./index.js 3:0-47 + > c [10] ./index.js 4:0-47 + ./node_modules/c.js 122 bytes [built] [code generated] +chunk (runtime: main) default/main.js (main) 192 bytes (javascript) 7.01 KiB (runtime) >{250}< >{262}< >{589}< [entry] [rendered] + > ./ main + ./index.js 192 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-combinations 1`] = ` +"Entrypoint main 9.35 KiB = main.js +chunk (runtime: main) async-c.js (async-c) 132 bytes <{909}> [rendered] + > ./c [10] ./index.js 3:0-47 + dependent modules 87 bytes [dependent] 1 module + ./c.js 45 bytes [built] [code generated] +chunk (runtime: main) async-f.js (async-f) 132 bytes <{909}> [rendered] + > ./f [10] ./index.js 6:0-47 + dependent modules 87 bytes [dependent] 1 module + ./f.js 45 bytes [built] [code generated] +chunk (runtime: main) async-a.js (async-a) 70 bytes <{909}> ={36}= [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 70 bytes [built] [code generated] +chunk (runtime: main) async-b.js (async-b) 70 bytes <{909}> ={36}= [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 70 bytes [built] [code generated] +chunk (runtime: main) 36.js (id hint: ) 174 bytes <{909}> ={250}= ={262}= [rendered] split chunk (cache group: default) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./x.js 87 bytes [built] [code generated] + ./y.js 87 bytes [built] [code generated] +chunk (runtime: main) async-e.js (async-e) 132 bytes <{909}> [rendered] + > ./e [10] ./index.js 5:0-47 + dependent modules 87 bytes [dependent] 1 module + ./e.js 45 bytes [built] [code generated] +chunk (runtime: main) async-d.js (async-d) 132 bytes <{909}> [rendered] + > ./d [10] ./index.js 4:0-47 + dependent modules 87 bytes [dependent] 1 module + ./d.js 45 bytes [built] [code generated] +chunk (runtime: main) main.js (main) 343 bytes (javascript) 7.07 KiB (runtime) >{172}< >{198}< >{250}< >{262}< >{36}< >{407}< >{602}< >{912}< [entry] [rendered] + > ./ main + ./index.js 343 bytes [built] [code generated] +chunk (runtime: main) async-g.js (async-g) 132 bytes <{909}> [rendered] + > ./g [10] ./index.js 7:0-47 + dependent modules 87 bytes [dependent] 1 module + ./g.js 45 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-issue-6413 1`] = ` +"Entrypoint main 8.98 KiB = main.js +chunk (runtime: main) async-c.js (async-c) 36 bytes <{909}> ={306}= ={418}= [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 36 bytes [built] [code generated] +chunk (runtime: main) async-a.js (async-a) 36 bytes <{909}> ={306}= ={418}= [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 36 bytes [built] [code generated] +chunk (runtime: main) async-b.js (async-b) 36 bytes <{909}> ={306}= ={418}= [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 36 bytes [built] [code generated] +chunk (runtime: main) 306.js (id hint: ) 45 bytes <{909}> ={172}= ={250}= ={262}= ={418}= [rendered] split chunk (cache group: default) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./common.js 45 bytes [built] [code generated] +chunk (runtime: main) 418.js (id hint: vendors) 20 bytes <{909}> ={172}= ={250}= ={262}= ={306}= [rendered] split chunk (cache group: defaultVendors) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./node_modules/x.js 20 bytes [built] [code generated] +chunk (runtime: main) main.js (main) 147 bytes (javascript) 7 KiB (runtime) >{172}< >{250}< >{262}< >{306}< >{418}< [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] +default (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-issue-6696 1`] = ` +"Entrypoint main 10.6 KiB = vendors.js 356 bytes main.js 10.3 KiB +chunk (runtime: main) vendors.js (vendors) (id hint: vendors) 20 bytes ={909}= >{250}< >{262}< [initial] [rendered] split chunk (cache group: vendors) + > ./ main + ./node_modules/y.js 20 bytes [built] [code generated] +chunk (runtime: main) async-a.js (async-a) 49 bytes <{192}> <{909}> [rendered] + > ./a [10] ./index.js 2:0-47 + dependent modules 20 bytes [dependent] 1 module + ./a.js 29 bytes [built] [code generated] +chunk (runtime: main) async-b.js (async-b) 49 bytes <{192}> <{909}> [rendered] + > ./b [10] ./index.js 3:0-47 + dependent modules 20 bytes [dependent] 1 module + ./b.js 29 bytes [built] [code generated] +chunk (runtime: main) main.js (main) 134 bytes (javascript) 8.06 KiB (runtime) ={192}= >{250}< >{262}< [entry] [rendered] + > ./ main + ./index.js 134 bytes [built] [code generated] +default (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-issue-7401 1`] = ` +"Entrypoint a 4.93 KiB = 418.js 356 bytes a.js 4.58 KiB +Entrypoint b 8.54 KiB = b.js +Chunk Group c 728 bytes = 418.js 356 bytes c.js 372 bytes +chunk (runtime: a, b) 418.js (id hint: vendors) 20 bytes <{751}> ={74}= ={76}= [initial] [rendered] split chunk (cache group: defaultVendors) + > ./a a + > ./c [996] ./b.js 1:0-41 + ./node_modules/x.js 20 bytes [built] [code generated] +chunk (runtime: a) a.js (a) 35 bytes (javascript) 2.86 KiB (runtime) ={418}= [entry] [rendered] + > ./a a + ./a.js 35 bytes [built] [code generated] +chunk (runtime: b) b.js (b) 43 bytes (javascript) 6.96 KiB (runtime) >{418}< >{76}< [entry] [rendered] + > ./b b + ./b.js 43 bytes [built] [code generated] +chunk (runtime: b) c.js (c) 35 bytes <{751}> ={418}= [rendered] + > ./c [996] ./b.js 1:0-41 + ./c.js 35 bytes [built] [code generated] +default (Rspack x.x.x) compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-keep-remaining-size 1`] = ` +"Entrypoint main 9.07 KiB = default/main.js +chunk (runtime: main) default/async-c.js (async-c) 50 bytes <{909}> ={44}= [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 50 bytes [built] [code generated] +chunk (runtime: main) default/async-a.js (async-a) 50 bytes <{909}> ={728}= [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 50 bytes [built] [code generated] +chunk (runtime: main) default/async-b.js (async-b) 50 bytes <{909}> ={44}= [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 50 bytes [built] [code generated] +chunk (runtime: main) default/403.js (id hint: vendors) 252 bytes <{909}> ={602}= [rendered] split chunk (cache group: defaultVendors) + > ./d [10] ./index.js 4:0-47 + ./node_modules/shared.js?3 126 bytes [built] [code generated] + ./node_modules/shared.js?4 126 bytes [built] [code generated] +chunk (runtime: main) default/44.js (id hint: vendors) 126 bytes <{909}> ={172}= ={262}= [rendered] split chunk (cache group: defaultVendors) + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./node_modules/shared.js?2 126 bytes [built] [code generated] +chunk (runtime: main) default/async-d.js (async-d) 84 bytes <{909}> ={403}= [rendered] + > ./d [10] ./index.js 4:0-47 + ./d.js 84 bytes [built] [code generated] +chunk (runtime: main) default/728.js (id hint: vendors) 126 bytes <{909}> ={250}= [rendered] split chunk (cache group: defaultVendors) + > ./a [10] ./index.js 1:0-47 + ./node_modules/shared.js?1 126 bytes [built] [code generated] +chunk (runtime: main) default/main.js (main) 196 bytes (javascript) 7.03 KiB (runtime) >{172}< >{250}< >{262}< >{403}< >{44}< >{602}< >{728}< [entry] [rendered] + > ./ main + ./index.js 196 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-min-size-reduction 1`] = ` +"Entrypoint main 9.24 KiB = default/main.js +chunk (runtime: main) default/async-c.js (async-c) 50 bytes <{909}> ={44}= [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 50 bytes [built] [code generated] +chunk (runtime: main) default/async-a.js (async-a) 50 bytes <{909}> ={728}= [rendered] + > ./a [10] ./index.js 1:0-47 + ./a.js 50 bytes [built] [code generated] +chunk (runtime: main) default/async-b.js (async-b) 50 bytes <{909}> ={728}= [rendered] + > ./b [10] ./index.js 2:0-47 + ./b.js 50 bytes [built] [code generated] +chunk (runtime: main) default/async-e.js (async-e) 50 bytes <{909}> ={44}= [rendered] + > ./e [10] ./index.js 5:0-47 + ./e.js 50 bytes [built] [code generated] +chunk (runtime: main) default/44.js (id hint: vendors) 126 bytes <{909}> ={172}= ={407}= ={602}= [rendered] split chunk (cache group: defaultVendors) + > ./c [10] ./index.js 3:0-47 + > ./d [10] ./index.js 4:0-47 + > ./e [10] ./index.js 5:0-47 + ./node_modules/shared.js?2 126 bytes [built] [code generated] +chunk (runtime: main) default/async-d.js (async-d) 50 bytes <{909}> ={44}= [rendered] + > ./d [10] ./index.js 4:0-47 + ./d.js 50 bytes [built] [code generated] +chunk (runtime: main) default/728.js (id hint: vendors) 126 bytes <{909}> ={250}= ={262}= [rendered] split chunk (cache group: defaultVendors) + > ./a [10] ./index.js 1:0-47 + > ./b [10] ./index.js 2:0-47 + ./node_modules/shared.js?1 126 bytes [built] [code generated] +chunk (runtime: main) default/main.js (main) 245 bytes (javascript) 7.05 KiB (runtime) >{172}< >{250}< >{262}< >{407}< >{44}< >{602}< >{728}< [entry] [rendered] + > ./ main + ./index.js 245 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-prefer-bigger-splits 1`] = ` +"Entrypoint main 8.86 KiB = default/main.js +chunk (runtime: main) default/async-c.js (async-c) 70 bytes <{909}> ={457}= [rendered] + > ./c [10] ./index.js 3:0-47 + ./c.js 70 bytes [built] [code generated] +chunk (runtime: main) default/async-a.js (async-a) 196 bytes <{909}> [rendered] + > ./a [10] ./index.js 1:0-47 + dependent modules 126 bytes [dependent] 2 modules + ./a.js 70 bytes [built] [code generated] +chunk (runtime: main) default/async-b.js (async-b) 158 bytes <{909}> ={457}= [rendered] + > ./b [10] ./index.js 2:0-47 + dependent modules 63 bytes [dependent] 1 module + ./b.js 95 bytes [built] [code generated] +chunk (runtime: main) default/457.js (id hint: ) 150 bytes <{909}> ={172}= ={262}= [rendered] split chunk (cache group: default) + > ./b [10] ./index.js 2:0-47 + > ./c [10] ./index.js 3:0-47 + ./d.js 63 bytes [built] [code generated] + ./f.js 87 bytes [built] [code generated] +chunk (runtime: main) default/main.js (main) 147 bytes (javascript) 7.02 KiB (runtime) >{172}< >{250}< >{262}< >{457}< [entry] [rendered] + > ./ main + ./index.js 147 bytes [built] [code generated] +Rspack x.x.x compiled successfully" +`; + +exports[`StatsTestCases should print correct stats for split-chunks-runtime-specific 1`] = ` +"used-exports: + asset used-exports-c.js 4.67 KiB [emitted] (name: c) + asset used-exports-b.js 4.67 KiB [emitted] (name: b) + asset used-exports-a.js 4.67 KiB [emitted] (name: a) + asset used-exports-572.js 533 bytes [emitted] + Entrypoint a 5.19 KiB = used-exports-572.js 533 bytes used-exports-a.js 4.67 KiB + Entrypoint b 5.19 KiB = used-exports-572.js 533 bytes used-exports-b.js 4.67 KiB + Entrypoint c 5.2 KiB = used-exports-572.js 533 bytes used-exports-c.js 4.67 KiB + chunk (runtime: a, b, c) used-exports-572.js (id hint: ) 72 bytes [initial] [rendered] split chunk (cache group: default) + ./objects.js 72 bytes [built] [code generated] + chunk (runtime: a) used-exports-a.js (a) 54 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./a.js 54 bytes [built] [code generated] + chunk (runtime: b) used-exports-b.js (b) 54 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./b.js 54 bytes [built] [code generated] + chunk (runtime: c) used-exports-c.js (c) 59 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./c.js 59 bytes [built] [code generated] + used-exports (Rspack x.x.x) compiled successfully in X s + +no-used-exports: + asset no-used-exports-c.js 4.67 KiB [emitted] (name: c) + asset no-used-exports-b.js 4.67 KiB [emitted] (name: b) + asset no-used-exports-a.js 4.67 KiB [emitted] (name: a) + asset no-used-exports-572.js 533 bytes [emitted] + Entrypoint a 5.19 KiB = no-used-exports-572.js 533 bytes no-used-exports-a.js 4.67 KiB + Entrypoint b 5.19 KiB = no-used-exports-572.js 533 bytes no-used-exports-b.js 4.67 KiB + Entrypoint c 5.2 KiB = no-used-exports-572.js 533 bytes no-used-exports-c.js 4.67 KiB + chunk (runtime: a, b, c) no-used-exports-572.js (id hint: ) 72 bytes [initial] [rendered] split chunk (cache group: default) + ./objects.js 72 bytes [built] [code generated] + chunk (runtime: a) no-used-exports-a.js (a) 54 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./a.js 54 bytes [built] [code generated] + chunk (runtime: b) no-used-exports-b.js (b) 54 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./b.js 54 bytes [built] [code generated] + chunk (runtime: c) no-used-exports-c.js (c) 59 bytes (javascript) 2.89 KiB (runtime) [entry] [rendered] + ./c.js 59 bytes [built] [code generated] + no-used-exports (Rspack x.x.x) compiled successfully in X s + +global: + asset global-c.js 4.6 KiB [emitted] (name: c) + asset global-b.js 4.6 KiB [emitted] (name: b) + asset global-a.js 4.6 KiB [emitted] (name: a) + asset global-572.js 353 bytes [emitted] + Entrypoint a 4.94 KiB = global-572.js 353 bytes global-a.js 4.6 KiB + Entrypoint b 4.94 KiB = global-572.js 353 bytes global-b.js 4.6 KiB + Entrypoint c 4.95 KiB = global-572.js 353 bytes global-c.js 4.6 KiB + chunk (runtime: a, b, c) global-572.js (id hint: ) 72 bytes [initial] [rendered] split chunk (cache group: default) + ./objects.js 72 bytes [built] [code generated] + chunk (runtime: a) global-a.js (a) 54 bytes (javascript) 2.86 KiB (runtime) [entry] [rendered] + ./a.js 54 bytes [built] [code generated] + chunk (runtime: b) global-b.js (b) 54 bytes (javascript) 2.86 KiB (runtime) [entry] [rendered] + ./b.js 54 bytes [built] [code generated] + chunk (runtime: c) global-c.js (c) 59 bytes (javascript) 2.86 KiB (runtime) [entry] [rendered] + ./c.js 59 bytes [built] [code generated] + global (Rspack x.x.x) compiled successfully in X s" +`; diff --git a/tests/webpack-test/statsCases/aggressive-splitting-on-demand/test.filter.js b/tests/webpack-test/statsCases/aggressive-splitting-on-demand/test.filter.js index 7ba279ea1ea..4d577bfd5b7 100644 --- a/tests/webpack-test/statsCases/aggressive-splitting-on-demand/test.filter.js +++ b/tests/webpack-test/statsCases/aggressive-splitting-on-demand/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support webpack.optimize.AggressiveSplittingPlugin"; +}; diff --git a/tests/webpack-test/statsCases/all-stats/test.filter.js b/tests/webpack-test/statsCases/all-stats/test.filter.js index 7ba279ea1ea..4d577bfd5b7 100644 --- a/tests/webpack-test/statsCases/all-stats/test.filter.js +++ b/tests/webpack-test/statsCases/all-stats/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support webpack.optimize.AggressiveSplittingPlugin"; +}; diff --git a/tests/webpack-test/statsCases/asset-concat/test.filter.js b/tests/webpack-test/statsCases/asset-concat/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/asset-concat/test.filter.js +++ b/tests/webpack-test/statsCases/asset-concat/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/asset/test.filter.js b/tests/webpack-test/statsCases/asset/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/asset/test.filter.js +++ b/tests/webpack-test/statsCases/asset/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/x.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xy.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xy.js new file mode 100644 index 00000000000..a94db8699c7 --- /dev/null +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xy.js @@ -0,0 +1 @@ +export default "xy"; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xyz.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xyz.js new file mode 100644 index 00000000000..61774b9190b --- /dev/null +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/xyz.js @@ -0,0 +1 @@ +export default "xyz"; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/y.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/y.js new file mode 100644 index 00000000000..413e7c09da6 --- /dev/null +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/y.js @@ -0,0 +1 @@ +export default "y"; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/z.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/z.js new file mode 100644 index 00000000000..0b388750767 --- /dev/null +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/node_modules/z.js @@ -0,0 +1 @@ +export default "z"; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/async-commons-chunk/test.filter.js b/tests/webpack-test/statsCases/async-commons-chunk/test.filter.js index 7ba279ea1ea..2d4933010b6 100644 --- a/tests/webpack-test/statsCases/async-commons-chunk/test.filter.js +++ b/tests/webpack-test/statsCases/async-commons-chunk/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support require.ensure()"; +}; diff --git a/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js b/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js +++ b/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/chunk-module-id-range/test.filter.js b/tests/webpack-test/statsCases/chunk-module-id-range/test.filter.js index 7ba279ea1ea..8ec26da0ec9 100644 --- a/tests/webpack-test/statsCases/chunk-module-id-range/test.filter.js +++ b/tests/webpack-test/statsCases/chunk-module-id-range/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support ChunkModuleIdRangePlugin"; +}; diff --git a/tests/webpack-test/statsCases/chunks-development/test.filter.js b/tests/webpack-test/statsCases/chunks-development/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/chunks-development/test.filter.js +++ b/tests/webpack-test/statsCases/chunks-development/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/chunks/test.filter.js b/tests/webpack-test/statsCases/chunks/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/chunks/test.filter.js +++ b/tests/webpack-test/statsCases/chunks/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/circular-correctness/test.filter.js b/tests/webpack-test/statsCases/circular-correctness/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/circular-correctness/test.filter.js +++ b/tests/webpack-test/statsCases/circular-correctness/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/color-disabled/test.filter.js b/tests/webpack-test/statsCases/color-disabled/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/color-disabled/test.filter.js +++ b/tests/webpack-test/statsCases/color-disabled/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/color-enabled-custom/test.filter.js b/tests/webpack-test/statsCases/color-enabled-custom/test.filter.js index 7ba279ea1ea..fb863b590ff 100644 --- a/tests/webpack-test/statsCases/color-enabled-custom/test.filter.js +++ b/tests/webpack-test/statsCases/color-enabled-custom/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support color object"; +}; diff --git a/tests/webpack-test/statsCases/color-enabled/test.filter.js b/tests/webpack-test/statsCases/color-enabled/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/color-enabled/test.filter.js +++ b/tests/webpack-test/statsCases/color-enabled/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/common-libs/test.filter.js b/tests/webpack-test/statsCases/common-libs/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/common-libs/test.filter.js +++ b/tests/webpack-test/statsCases/common-libs/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/commons-chunk-min-size-0/test.filter.js b/tests/webpack-test/statsCases/commons-chunk-min-size-0/test.filter.js index 7ba279ea1ea..9b2d05cef7b 100644 --- a/tests/webpack-test/statsCases/commons-chunk-min-size-0/test.filter.js +++ b/tests/webpack-test/statsCases/commons-chunk-min-size-0/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "Method RegExp.prototype.test called on incompatible receiver undefined"; +}; diff --git a/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js b/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js +++ b/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js b/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js +++ b/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/a.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/a.js new file mode 100644 index 00000000000..57937e270b2 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/a.js @@ -0,0 +1,3 @@ +import { aa } from "./aa"; + +export const a = aa; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/aa.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/aa.js new file mode 100644 index 00000000000..5769cfcb25e --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/aa.js @@ -0,0 +1 @@ +export const aa = "aa"; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/b.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/b.js new file mode 100644 index 00000000000..c2a09d2fe74 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/b.js @@ -0,0 +1,3 @@ +import { bb } from "./bb"; + +export const b = bb; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/bb.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/bb.js new file mode 100644 index 00000000000..88953e4bbfa --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/bb.js @@ -0,0 +1 @@ +export const bb = "bb"; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/c.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/c.js new file mode 100644 index 00000000000..bc9aa52c1a0 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/c.js @@ -0,0 +1,3 @@ +import { cc } from "./cc"; + +export const c = cc; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/cc.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/cc.js new file mode 100644 index 00000000000..8901fdcc152 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/cc.js @@ -0,0 +1 @@ +export const cc = "cc"; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/index.js b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/index.js new file mode 100644 index 00000000000..c58283975f2 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/index.js @@ -0,0 +1,3 @@ +export * from "./a"; +export * from "./b"; +export * from "./c"; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/package.json b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/package.json new file mode 100644 index 00000000000..a43829151e1 --- /dev/null +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/node_modules/pmodule/package.json @@ -0,0 +1,3 @@ +{ + "sideEffects": false +} diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js b/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/context-independence/test.filter.js b/tests/webpack-test/statsCases/context-independence/test.filter.js index 7ba279ea1ea..956e5c9b280 100644 --- a/tests/webpack-test/statsCases/context-independence/test.filter.js +++ b/tests/webpack-test/statsCases/context-independence/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "hash changed"; +}; diff --git a/tests/webpack-test/statsCases/custom-terser/test.filter.js b/tests/webpack-test/statsCases/custom-terser/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/custom-terser/test.filter.js +++ b/tests/webpack-test/statsCases/custom-terser/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/define-plugin/test.filter.js b/tests/webpack-test/statsCases/define-plugin/test.filter.js index 7ba279ea1ea..71a9b164c2f 100644 --- a/tests/webpack-test/statsCases/define-plugin/test.filter.js +++ b/tests/webpack-test/statsCases/define-plugin/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "webpack.DefinePlugin.runtimeValue is not a function"; +}; diff --git a/tests/webpack-test/statsCases/details-error/test.filter.js b/tests/webpack-test/statsCases/details-error/test.filter.js index 7ba279ea1ea..f6c7feec488 100644 --- a/tests/webpack-test/statsCases/details-error/test.filter.js +++ b/tests/webpack-test/statsCases/details-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "custom error details"; +}; diff --git a/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624-error/test.filter.js b/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624-error/test.filter.js index 7ba279ea1ea..e406d12b94e 100644 --- a/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624-error/test.filter.js +++ b/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "webpack.DllReferencePlugin is not a constructor"; +}; diff --git a/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624/test.filter.js b/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624/test.filter.js index 7ba279ea1ea..e406d12b94e 100644 --- a/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624/test.filter.js +++ b/tests/webpack-test/statsCases/dll-reference-plugin-issue-7624/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "webpack.DllReferencePlugin is not a constructor"; +}; diff --git a/tests/webpack-test/statsCases/entry-filename/test.filter.js b/tests/webpack-test/statsCases/entry-filename/test.filter.js index 7ba279ea1ea..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/entry-filename/test.filter.js +++ b/tests/webpack-test/statsCases/entry-filename/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "unstable"; +}; diff --git a/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js b/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js +++ b/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/external/test.filter.js b/tests/webpack-test/statsCases/external/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/external/test.filter.js +++ b/tests/webpack-test/statsCases/external/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js b/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js +++ b/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js b/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js +++ b/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/graph-roots/test.filter.js b/tests/webpack-test/statsCases/graph-roots/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/graph-roots/test.filter.js +++ b/tests/webpack-test/statsCases/graph-roots/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/ignore-warnings/test.filter.js b/tests/webpack-test/statsCases/ignore-warnings/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/ignore-warnings/test.filter.js +++ b/tests/webpack-test/statsCases/ignore-warnings/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/immutable/test.filter.js b/tests/webpack-test/statsCases/immutable/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/immutable/test.filter.js +++ b/tests/webpack-test/statsCases/immutable/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js b/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js +++ b/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/import-weak/test.filter.js b/tests/webpack-test/statsCases/import-weak/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/import-weak/test.filter.js +++ b/tests/webpack-test/statsCases/import-weak/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js b/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js +++ b/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/issue-7577/node_modules/vendor.js b/tests/webpack-test/statsCases/issue-7577/node_modules/vendor.js new file mode 100644 index 00000000000..d9e298f6dc9 --- /dev/null +++ b/tests/webpack-test/statsCases/issue-7577/node_modules/vendor.js @@ -0,0 +1 @@ +console.log("vendor"); diff --git a/tests/webpack-test/statsCases/issue-7577/test.filter.js b/tests/webpack-test/statsCases/issue-7577/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/issue-7577/test.filter.js +++ b/tests/webpack-test/statsCases/issue-7577/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/logging-debug/test.filter.js b/tests/webpack-test/statsCases/logging-debug/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/logging-debug/test.filter.js +++ b/tests/webpack-test/statsCases/logging-debug/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/logging/node_modules/custom-loader/index.js b/tests/webpack-test/statsCases/logging/node_modules/custom-loader/index.js new file mode 100644 index 00000000000..f59e88aae18 --- /dev/null +++ b/tests/webpack-test/statsCases/logging/node_modules/custom-loader/index.js @@ -0,0 +1,21 @@ +/* eslint-disable node/no-unsupported-features/node-builtins */ +module.exports = function(source) { + const logger = this.getLogger ? this.getLogger() : console; + logger.time("Measure"); + logger.error("An error"); + logger.warn("A %s", "warning"); + logger.group("Unimportant"); + logger.info("Info message"); + logger.log("Just log"); + logger.debug("Just debug"); + logger.timeLog("Measure"); + logger.groupCollapsed("Nested"); + logger.log("Log inside collapsed group"); + logger.groupEnd("Nested"); + logger.trace(); + logger.timeEnd("Measure"); + logger.clear(); + logger.log("After clear"); + this.getLogger("Named Logger").debug("Message with named logger"); + return source; +}; diff --git a/tests/webpack-test/statsCases/logging/test.filter.js b/tests/webpack-test/statsCases/logging/test.filter.js index ebef3d82732..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/logging/test.filter.js +++ b/tests/webpack-test/statsCases/logging/test.filter.js @@ -1,2 +1,3 @@ - -module.exports = () => {return false} +module.exports = () => { + return "unstable"; +}; diff --git a/tests/webpack-test/statsCases/max-modules-default/test.filter.js b/tests/webpack-test/statsCases/max-modules-default/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/max-modules-default/test.filter.js +++ b/tests/webpack-test/statsCases/max-modules-default/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/max-modules/test.filter.js b/tests/webpack-test/statsCases/max-modules/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/max-modules/test.filter.js +++ b/tests/webpack-test/statsCases/max-modules/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-assets/node_modules/a/1.png b/tests/webpack-test/statsCases/module-assets/node_modules/a/1.png new file mode 100644 index 0000000000000000000000000000000000000000..48924276b77832ff5d27ee87f16a98ec8174a746 GIT binary patch literal 21499 zcmeFYRZv__7cM+FK>`G~;I6?fxCMe+aCZo9K?Zl%;2zw9JA}aC5ZnpwZiCI7$@^9P zcmL(NI~P;6d)MyOtCw^yc_vC#Sq>A81PuTHV1AO9RtEs!0$@K^RAktjYodk-004vD zR!U0slav&ts;iTgt%D^1ARm>cgQA%-LXg)>OGQGjG@CZCHt%7>=OO3uU@TYoA>hHv zY7zr*+(6bKKsXPeR7vHCLPt0IQS#%%CoDKLoBV6qiQ7xe8a$-G}i@%gA0TTvnR6m9AR)x;)%Ky{y-zo?OzlzjMm zvT|>aU%A2x9U@K7{veu)3QGtQ?tS|48}msH{c$D{Of{awXg1=gU?~_C6e7xx20o?A zSCR=1wV+dJsuBN=huJ{#+pARY3MYhbDh9Fokcu>lRe6#aazHek8al+}$ay1jq-ylN zReU)9{qLm5;85p11BZ7R#eaXGyYLxjy%YSM0>XN$wjYLnBNG+!(%|Y6pt@G@%IEU+ zwBX~y_!MT!i4xV`yak#NMj{)E6Wi3i*fwBqrI%0>E)EhJBi` zZ(;=zo9g&5oC@V60uCi1B%R4BD!iC32&78$!X!lKIuWKMdY=+sAzDHcjvW%U^;@+F zvo_&*OVpe81-WlO)_2=Ts;g%iHxGN|4c41Q)Z9@0l(4~MitpSKc!!~6QYejMU{T?< zci%h)LY$2cDV~Oi+eGU@hNdOrYZODCAuAW{qv6~T?J)^s3pp-@_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ksrIsP~|5k?@kW6fg72B_u97d6prFt znor1}497y;NSnDX9;xt?iX%m*%9}gbaZUfC9pJEJz>0jSpM$LCKGrhp8sw{P4+|o|{xT9>t zEQKSHWqUL?Xv+7&7`R9wNDe@?y@dJ?9h!*D)49* zfm01RiyO(;m{DyHT@*x=q3-j2#4{rm;wjIy>=P2ew@c}u)oi5)GTJtgx1n~z9)^Ef zS^{y!I|1n!4T`RQ7}1Z#!`vZnrw-omv(E|NL@<;X@t4|Z^n;US>cZHo2Y}l7&if{v zGZkv`dQEkP*qzN~zqt<7q)W%9c!2;c2*6#6_f$ZEH0(27!5T<)1sEP(#;+crr(*=3 zj#7xbf0-mgqepu74#L7Nv##9oyNl!wDEw0_^Bre1O_iMm#t%nYFds!+2}4}P5MlOe z4!gjUas(vERCg7*OhROshFdk*Dlrs(A?CTTl%D5a6))DXLuQu18h)ACdnHq=7&)ZtV^!mgq}M1M@a_ynFvY zF&E1URGnW<|1XCY$PqLG{gGt_5?RKW|9dbXo)qLpXZ|ipW^MBcoiec^)*F#x{|Bs5 Bt3?0+ literal 0 HcmV?d00001 diff --git a/tests/webpack-test/statsCases/module-assets/node_modules/a/2.png b/tests/webpack-test/statsCases/module-assets/node_modules/a/2.png new file mode 100644 index 0000000000000000000000000000000000000000..48924276b77832ff5d27ee87f16a98ec8174a746 GIT binary patch literal 21499 zcmeFYRZv__7cM+FK>`G~;I6?fxCMe+aCZo9K?Zl%;2zw9JA}aC5ZnpwZiCI7$@^9P zcmL(NI~P;6d)MyOtCw^yc_vC#Sq>A81PuTHV1AO9RtEs!0$@K^RAktjYodk-004vD zR!U0slav&ts;iTgt%D^1ARm>cgQA%-LXg)>OGQGjG@CZCHt%7>=OO3uU@TYoA>hHv zY7zr*+(6bKKsXPeR7vHCLPt0IQS#%%CoDKLoBV6qiQ7xe8a$-G}i@%gA0TTvnR6m9AR)x;)%Ky{y-zo?OzlzjMm zvT|>aU%A2x9U@K7{veu)3QGtQ?tS|48}msH{c$D{Of{awXg1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k!g6GIGVxF)`%X=|2;wZgDmrF(e7yJJy#e zpY-Wd-4r!B{o`ReZ5yz}^1tJo^6f~(9s7dJNAYKoE= z1eH8&vAJPZ6726b-4izwW&0OP4WT7T0ZKKLI@D};yjA$gcU~c5L;h{qqh-MEWQGWF z>G(>%5G4I6TWJmafgqhRjQM>O6XL9{nhK~ExpZ=IcRVupqbonILTa!z*%FY9V^1zSUYlP zC140zhJdbh{HdH<*-^U~9nA(9@I4hNH%;^VYU2J@hFQBopJdxvu0vf1y-^6Jt)9_s z2zht%b_X%HoiZenV)>mvF9NO73FJ$RKQhaiN>PT66UE@cAzNKhT6Cs)a$gbH7J^^% zV3g-NEdoqu15Wq`MgwkcrdMuu|K7MEohc+hksrIsP~|5k?@kW6fg72B_u97d6prFt znor1}497y;NSnDX9;xt?iX%m*%9}gbaZUfC9pJEJz>0jSpM$LCKGrhp8sw{P4+|o|{xT9>t zEQKSHWqUL?Xv+7&7`R9wNDe@?y@dJ?9h!*D)49* zfm01RiyO(;m{DyHT@*x=q3-j2#4{rm;wjIy>=P2ew@c}u)oi5)GTJtgx1n~z9)^Ef zS^{y!I|1n!4T`RQ7}1Z#!`vZnrw-omv(E|NL@<;X@t4|Z^n;US>cZHo2Y}l7&if{v zGZkv`dQEkP*qzN~zqt<7q)W%9c!2;c2*6#6_f$ZEH0(27!5T<)1sEP(#;+crr(*=3 zj#7xbf0-mgqepu74#L7Nv##9oyNl!wDEw0_^Bre1O_iMm#t%nYFds!+2}4}P5MlOe z4!gjUas(vERCg7*OhROshFdk*Dlrs(A?CTTl%D5a6))DXLuQu18h)ACdnHq=7&)ZtV^!mgq}M1M@a_ynFvY zF&E1URGnW<|1XCY$PqLG{gGt_5?RKW|9dbXo)qLpXZ|ipW^MBcoiec^)*F#x{|Bs5 Bt3?0+ literal 0 HcmV?d00001 diff --git a/tests/webpack-test/statsCases/module-assets/node_modules/a/index.js b/tests/webpack-test/statsCases/module-assets/node_modules/a/index.js new file mode 100644 index 00000000000..4c93d2b6544 --- /dev/null +++ b/tests/webpack-test/statsCases/module-assets/node_modules/a/index.js @@ -0,0 +1,2 @@ +import "./1.png"; +import "./2.png"; diff --git a/tests/webpack-test/statsCases/module-assets/node_modules/b/index.js b/tests/webpack-test/statsCases/module-assets/node_modules/b/index.js new file mode 100644 index 00000000000..c4e271add3c --- /dev/null +++ b/tests/webpack-test/statsCases/module-assets/node_modules/b/index.js @@ -0,0 +1 @@ +import "a/2.png"; diff --git a/tests/webpack-test/statsCases/module-assets/test.filter.js b/tests/webpack-test/statsCases/module-assets/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/module-assets/test.filter.js +++ b/tests/webpack-test/statsCases/module-assets/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js b/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js +++ b/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-deduplication/test.filter.js b/tests/webpack-test/statsCases/module-deduplication/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/module-deduplication/test.filter.js +++ b/tests/webpack-test/statsCases/module-deduplication/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-federation-custom-exposed-module-name/test.filter.js b/tests/webpack-test/statsCases/module-federation-custom-exposed-module-name/test.filter.js index 7ba279ea1ea..2b70eca20f3 100644 --- a/tests/webpack-test/statsCases/module-federation-custom-exposed-module-name/test.filter.js +++ b/tests/webpack-test/statsCases/module-federation-custom-exposed-module-name/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "build failed"; +}; diff --git a/tests/webpack-test/statsCases/module-not-found-error/test.filter.js b/tests/webpack-test/statsCases/module-not-found-error/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/module-not-found-error/test.filter.js +++ b/tests/webpack-test/statsCases/module-not-found-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-reasons/test.filter.js b/tests/webpack-test/statsCases/module-reasons/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/module-reasons/test.filter.js +++ b/tests/webpack-test/statsCases/module-reasons/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/module-trace-disabled-in-error/test.filter.js b/tests/webpack-test/statsCases/module-trace-disabled-in-error/test.filter.js index 7ba279ea1ea..3422920b1fa 100644 --- a/tests/webpack-test/statsCases/module-trace-disabled-in-error/test.filter.js +++ b/tests/webpack-test/statsCases/module-trace-disabled-in-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support moduleTrace"; +}; diff --git a/tests/webpack-test/statsCases/module-trace-enabled-in-error/test.filter.js b/tests/webpack-test/statsCases/module-trace-enabled-in-error/test.filter.js index 7ba279ea1ea..3422920b1fa 100644 --- a/tests/webpack-test/statsCases/module-trace-enabled-in-error/test.filter.js +++ b/tests/webpack-test/statsCases/module-trace-enabled-in-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support moduleTrace"; +}; diff --git a/tests/webpack-test/statsCases/named-chunk-groups/node_modules/x.js b/tests/webpack-test/statsCases/named-chunk-groups/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/named-chunk-groups/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/named-chunk-groups/node_modules/y.js b/tests/webpack-test/statsCases/named-chunk-groups/node_modules/y.js new file mode 100644 index 00000000000..413e7c09da6 --- /dev/null +++ b/tests/webpack-test/statsCases/named-chunk-groups/node_modules/y.js @@ -0,0 +1 @@ +export default "y"; diff --git a/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js b/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js +++ b/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js b/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js +++ b/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/no-emit-on-errors-plugin-with-child-error/test.filter.js b/tests/webpack-test/statsCases/no-emit-on-errors-plugin-with-child-error/test.filter.js index 7ba279ea1ea..b78907b5a39 100644 --- a/tests/webpack-test/statsCases/no-emit-on-errors-plugin-with-child-error/test.filter.js +++ b/tests/webpack-test/statsCases/no-emit-on-errors-plugin-with-child-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support NoEmitOnErrorsPlugin"; +}; diff --git a/tests/webpack-test/statsCases/optimize-chunks/test.filter.js b/tests/webpack-test/statsCases/optimize-chunks/test.filter.js index 7ba279ea1ea..2d4933010b6 100644 --- a/tests/webpack-test/statsCases/optimize-chunks/test.filter.js +++ b/tests/webpack-test/statsCases/optimize-chunks/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support require.ensure()"; +}; diff --git a/tests/webpack-test/statsCases/output-module/test.filter.js b/tests/webpack-test/statsCases/output-module/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/output-module/test.filter.js +++ b/tests/webpack-test/statsCases/output-module/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/parse-error/test.filter.js b/tests/webpack-test/statsCases/parse-error/test.filter.js index ebef3d82732..a4e03003601 100644 --- a/tests/webpack-test/statsCases/parse-error/test.filter.js +++ b/tests/webpack-test/statsCases/parse-error/test.filter.js @@ -1,2 +1,3 @@ - -module.exports = () => {return false} +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/performance-disabled/test.filter.js b/tests/webpack-test/statsCases/performance-disabled/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/performance-disabled/test.filter.js +++ b/tests/webpack-test/statsCases/performance-disabled/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/performance-error/test.filter.js b/tests/webpack-test/statsCases/performance-error/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/performance-error/test.filter.js +++ b/tests/webpack-test/statsCases/performance-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/performance-no-hints/test.filter.js b/tests/webpack-test/statsCases/performance-no-hints/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/performance-no-hints/test.filter.js +++ b/tests/webpack-test/statsCases/performance-no-hints/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js b/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js +++ b/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/prefetch/test.filter.js b/tests/webpack-test/statsCases/prefetch/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/prefetch/test.filter.js +++ b/tests/webpack-test/statsCases/prefetch/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preload/test.filter.js b/tests/webpack-test/statsCases/preload/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preload/test.filter.js +++ b/tests/webpack-test/statsCases/preload/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-detailed/test.filter.js b/tests/webpack-test/statsCases/preset-detailed/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/preset-detailed/test.filter.js +++ b/tests/webpack-test/statsCases/preset-detailed/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js b/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-errors-only/test.filter.js b/tests/webpack-test/statsCases/preset-errors-only/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-errors-only/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-only/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js b/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js b/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js +++ b/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-minimal/test.filter.js b/tests/webpack-test/statsCases/preset-minimal/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/preset-minimal/test.filter.js +++ b/tests/webpack-test/statsCases/preset-minimal/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js b/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js +++ b/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-none-array/test.filter.js b/tests/webpack-test/statsCases/preset-none-array/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-none-array/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none-array/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-none-error/test.filter.js b/tests/webpack-test/statsCases/preset-none-error/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-none-error/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none-error/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-none/test.filter.js b/tests/webpack-test/statsCases/preset-none/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-none/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/test.filter.js b/tests/webpack-test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/test.filter.js +++ b/tests/webpack-test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/preset-normal-performance/test.filter.js b/tests/webpack-test/statsCases/preset-normal-performance/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/preset-normal-performance/test.filter.js +++ b/tests/webpack-test/statsCases/preset-normal-performance/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/preset-normal/test.filter.js b/tests/webpack-test/statsCases/preset-normal/test.filter.js index 7ba279ea1ea..11e010a4272 100644 --- a/tests/webpack-test/statsCases/preset-normal/test.filter.js +++ b/tests/webpack-test/statsCases/preset-normal/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support AMD require"; +}; diff --git a/tests/webpack-test/statsCases/preset-summary/test.filter.js b/tests/webpack-test/statsCases/preset-summary/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/preset-summary/test.filter.js +++ b/tests/webpack-test/statsCases/preset-summary/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/preset-verbose/test.filter.js b/tests/webpack-test/statsCases/preset-verbose/test.filter.js index 7ba279ea1ea..b416ee5a319 100644 --- a/tests/webpack-test/statsCases/preset-verbose/test.filter.js +++ b/tests/webpack-test/statsCases/preset-verbose/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "suport AMD require"; +}; diff --git a/tests/webpack-test/statsCases/real-content-hash/test.filter.js b/tests/webpack-test/statsCases/real-content-hash/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/real-content-hash/test.filter.js +++ b/tests/webpack-test/statsCases/real-content-hash/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/related-assets/test.filter.js b/tests/webpack-test/statsCases/related-assets/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/related-assets/test.filter.js +++ b/tests/webpack-test/statsCases/related-assets/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/related-assets/webpack.config.js b/tests/webpack-test/statsCases/related-assets/webpack.config.js index beb11c7d520..6c0ed3a733d 100644 --- a/tests/webpack-test/statsCases/related-assets/webpack.config.js +++ b/tests/webpack-test/statsCases/related-assets/webpack.config.js @@ -1,5 +1,4 @@ -const MCEP = require("mini-css-extract-plugin"); -const { Compilation } = require("@rspack/core"); +const { Compilation, CssExtractRspackPlugin } = require("@rspack/core"); const compression = exts => compiler => { compiler.hooks.thisCompilation.tap("Test", compilation => { @@ -38,7 +37,7 @@ const base = name => ({ { test: /\.css$/, use: [ - MCEP.loader, + CssExtractRspackPlugin.loader, { loader: "css-loader", options: { @@ -50,7 +49,7 @@ const base = name => ({ ] }, plugins: [ - new MCEP({ + new CssExtractRspackPlugin({ filename: `${name}-[name].css` }), compression([".br", ".gz"]) diff --git a/tests/webpack-test/statsCases/resolve-plugin-context/test.filter.js b/tests/webpack-test/statsCases/resolve-plugin-context/test.filter.js index 7ba279ea1ea..b22f99b1b8e 100644 --- a/tests/webpack-test/statsCases/resolve-plugin-context/test.filter.js +++ b/tests/webpack-test/statsCases/resolve-plugin-context/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support resolve plugins"; +}; diff --git a/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js b/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js +++ b/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/runtime-chunk-integration/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk-integration/test.filter.js index 7ba279ea1ea..830c4ffabe2 100644 --- a/tests/webpack-test/statsCases/runtime-chunk-integration/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk-integration/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support MinChunkSizePlugin"; +}; diff --git a/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/runtime-chunk/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/runtime-chunk/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js b/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js +++ b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js b/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js +++ b/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js b/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/a.js b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/a.js new file mode 100644 index 00000000000..cd1e633707d --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/a.js @@ -0,0 +1,2 @@ +export * from "module-with-export"; +export const a = "a"; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/index.js b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/index.js new file mode 100644 index 00000000000..a9fd631b707 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/index.js @@ -0,0 +1,2 @@ +export * from "./a"; +export * from './log'; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/log.js b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/log.js new file mode 100644 index 00000000000..6892ec433af --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/log.js @@ -0,0 +1,5 @@ +export * from "module-with-export"; + +module.exports = function(msg) { + console.log(msg); +}; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/package.json b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/package.json new file mode 100644 index 00000000000..fd91f7cf240 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/big-module/package.json @@ -0,0 +1,4 @@ +{ + "name": "big-module", + "sideEffects": "false" +} diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/emptyModule.js b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/emptyModule.js new file mode 100644 index 00000000000..e7d3ef1ace7 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/emptyModule.js @@ -0,0 +1 @@ +//# sourceMappingURL=DockPanel.Props.js.map \ No newline at end of file diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/index.js b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/index.js new file mode 100644 index 00000000000..760efec3235 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/index.js @@ -0,0 +1,8 @@ +// Uncommenting this empty module with or without sideEffects: false in this package +// causes justToBeABigFile to appear in example2 bundle output. +export * from './emptyModule'; + +export const smallVar = "smallVar"; +export const justToBeABigFile = [ + "1337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331337331" +]; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/package.json b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/package.json new file mode 100644 index 00000000000..576a4f06793 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-optimization/node_modules/module-with-export/package.json @@ -0,0 +1,4 @@ +{ + "name": "module-with-export", + "sideEffects": "false" +} diff --git a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js new file mode 100644 index 00000000000..af715307e06 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/a.js @@ -0,0 +1,5 @@ +var a = "a"; +var b = "b"; +var c = "c"; + +export { a, b, c }; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js new file mode 100644 index 00000000000..1b982e25d2b --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/b.js @@ -0,0 +1,5 @@ +var x = "x"; +var y = "y"; + +export { x, y }; +export { z } from "./c"; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js new file mode 100644 index 00000000000..dab1b4426c4 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/c.js @@ -0,0 +1,3 @@ +var z = "z"; + +export { z }; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js new file mode 100644 index 00000000000..8048908d587 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/index.js @@ -0,0 +1,4 @@ +export * from "./a"; +export { x, y, z } from "./b"; + +export default "def"; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/package.json b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/package.json new file mode 100644 index 00000000000..43c38c1bb03 --- /dev/null +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/node_modules/pmodule/package.json @@ -0,0 +1,3 @@ +{ + "sideEffects": false +} diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js b/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/simple-more-info/test.filter.js b/tests/webpack-test/statsCases/simple-more-info/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/simple-more-info/test.filter.js +++ b/tests/webpack-test/statsCases/simple-more-info/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/simple/test.filter.js b/tests/webpack-test/statsCases/simple/test.filter.js index ebef3d82732..a4e03003601 100644 --- a/tests/webpack-test/statsCases/simple/test.filter.js +++ b/tests/webpack-test/statsCases/simple/test.filter.js @@ -1,2 +1,3 @@ - -module.exports = () => {return false} +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/x.js b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/y.js b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/y.js new file mode 100644 index 00000000000..413e7c09da6 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/y.js @@ -0,0 +1 @@ +export default "y"; diff --git a/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/z.js b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/z.js new file mode 100644 index 00000000000..0b388750767 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-automatic-name/node_modules/z.js @@ -0,0 +1 @@ +export default "z"; diff --git a/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js b/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/a.js b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/a.js new file mode 100644 index 00000000000..e94fef18587 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/a.js @@ -0,0 +1 @@ +export default "a"; diff --git a/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/b.js b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/b.js new file mode 100644 index 00000000000..3aa68afa75e --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/b.js @@ -0,0 +1,3 @@ +export default "b"; +// content content content content content content +// content content content content content content diff --git a/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/c.js b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/c.js new file mode 100644 index 00000000000..65c735f2de8 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-chunk-name/node_modules/c.js @@ -0,0 +1,3 @@ +export default "c"; +// content content content content content content +// content content content content content content diff --git a/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js b/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js b/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6413/node_modules/x.js b/tests/webpack-test/statsCases/split-chunks-issue-6413/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-issue-6413/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/x.js b/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/y.js b/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/y.js new file mode 100644 index 00000000000..413e7c09da6 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-issue-6696/node_modules/y.js @@ -0,0 +1 @@ +export default "y"; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-7401/node_modules/x.js b/tests/webpack-test/statsCases/split-chunks-issue-7401/node_modules/x.js new file mode 100644 index 00000000000..3fd5ecc7a40 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-issue-7401/node_modules/x.js @@ -0,0 +1 @@ +export default "x"; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/node_modules/shared.js b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/node_modules/shared.js new file mode 100644 index 00000000000..a62960ca268 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/node_modules/shared.js @@ -0,0 +1,3 @@ +// content content content content content content +// content content content content content content +export default "shared" diff --git a/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-max-size/test.filter.js b/tests/webpack-test/statsCases/split-chunks-max-size/test.filter.js index 687e4d88602..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/split-chunks-max-size/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-max-size/test.filter.js @@ -1 +1,3 @@ -module.exports = () => { return false } +module.exports = () => { + return "unstable"; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-min-size-reduction/node_modules/shared.js b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/node_modules/shared.js new file mode 100644 index 00000000000..a62960ca268 --- /dev/null +++ b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/node_modules/shared.js @@ -0,0 +1,3 @@ +// content content content content content content +// content content content content content content +export default "shared" diff --git a/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js b/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js b/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js index 7ba279ea1ea..a4e03003601 100644 --- a/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return true; +}; diff --git a/tests/webpack-test/statsCases/tree-shaking/test.filter.js b/tests/webpack-test/statsCases/tree-shaking/test.filter.js index 7ba279ea1ea..24a5707a9a5 100644 --- a/tests/webpack-test/statsCases/tree-shaking/test.filter.js +++ b/tests/webpack-test/statsCases/tree-shaking/test.filter.js @@ -1,3 +1,3 @@ - -module.exports = () => {return false} - \ No newline at end of file +module.exports = () => { + return "support require.include"; +}; From 836659194e60584416a3fe975690fae6b019edfc Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Thu, 11 Jul 2024 14:22:12 +0800 Subject: [PATCH 2/4] test: enable stats test --- .../webpack-test/StatsTestCases.basictest.js | 5 +++-- .../StatsTestCases.basictest.js.snap | 21 ++----------------- .../loader-import-module/css/test.filter.js | 9 ++------ .../relative-source-map-path/test.filter.js | 6 ++---- .../split-chunks/runtime-chunk/test.filter.js | 5 ++--- .../statsCases/asset-concat/test.filter.js | 4 +++- .../statsCases/asset/test.filter.js | 4 +++- .../async-commons-chunk-auto/test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../circular-correctness/test.filter.js | 4 +++- .../statsCases/color-disabled/test.filter.js | 4 +++- .../statsCases/color-enabled/test.filter.js | 4 +++- .../statsCases/common-libs/test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../commons-plugin-issue-4980/test.filter.js | 4 +++- .../concat-and-sideeffects/test.filter.js | 4 +++- .../statsCases/custom-terser/test.filter.js | 4 +++- .../exclude-with-loader/test.filter.js | 4 +++- .../statsCases/external/test.filter.js | 4 +++- .../graph-correctness-entries/test.filter.js | 4 +++- .../graph-correctness-modules/test.filter.js | 4 +++- .../statsCases/graph-roots/test.filter.js | 4 +++- .../statsCases/ignore-warnings/test.filter.js | 4 +++- .../statsCases/immutable/test.filter.js | 4 +++- .../import-weak-parser-option/test.filter.js | 4 +++- .../statsCases/import-weak/test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../statsCases/issue-7577/test.filter.js | 4 +++- .../statsCases/logging-debug/test.filter.js | 4 +++- .../max-modules-default/test.filter.js | 4 +++- .../statsCases/max-modules/test.filter.js | 4 +++- .../statsCases/module-assets/test.filter.js | 4 +++- .../module-deduplication-named/test.filter.js | 4 +++- .../module-deduplication/test.filter.js | 4 +++- .../module-not-found-error/test.filter.js | 4 +++- .../statsCases/module-reasons/test.filter.js | 4 +++- .../named-chunk-groups/test.filter.js | 4 +++- .../named-chunks-plugin/test.filter.js | 4 +++- .../statsCases/output-module/test.filter.js | 4 +++- .../statsCases/parse-error/test.filter.js | 4 +++- .../prefetch-preload-mixed/test.filter.js | 4 +++- .../statsCases/prefetch/test.filter.js | 4 +++- .../statsCases/preload/test.filter.js | 4 +++- .../preset-errors-only-error/test.filter.js | 4 +++- .../preset-errors-only/test.filter.js | 4 +++- .../preset-errors-warnings/test.filter.js | 4 +++- .../preset-minimal-simple/test.filter.js | 4 +++- .../preset-mixed-array/test.filter.js | 4 +++- .../preset-none-array/test.filter.js | 4 +++- .../preset-none-error/test.filter.js | 4 +++- .../statsCases/preset-none/test.filter.js | 4 +++- .../statsCases/preset-summary/test.filter.js | 4 +++- .../real-content-hash/test.filter.js | 4 +++- .../statsCases/related-assets/test.filter.js | 4 +++- .../reverse-sort-modules/test.filter.js | 4 +++- .../runtime-chunk-issue-7382/test.filter.js | 4 +++- .../runtime-chunk-single/test.filter.js | 4 +++- .../statsCases/runtime-chunk/test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../scope-hoisting-bailouts/test.filter.js | 4 +++- .../scope-hoisting-multi/test.filter.js | 4 +++- .../side-effects-issue-7428/test.filter.js | 4 +++- .../side-effects-optimization/test.filter.js | 4 +++- .../side-effects-simple-unused/test.filter.js | 4 +++- .../simple-more-info/test.filter.js | 2 +- .../statsCases/simple/test.filter.js | 2 +- .../test.filter.js | 4 +++- .../split-chunks-chunk-name/test.filter.js | 4 +++- .../split-chunks-combinations/test.filter.js | 4 +++- .../split-chunks-issue-6413/test.filter.js | 4 +++- .../split-chunks-issue-6696/test.filter.js | 4 +++- .../split-chunks-issue-7401/test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../test.filter.js | 4 +++- .../test.filter.js | 4 +++- 76 files changed, 220 insertions(+), 106 deletions(-) diff --git a/tests/webpack-test/StatsTestCases.basictest.js b/tests/webpack-test/StatsTestCases.basictest.js index 72933f5198a..3ce3990d811 100644 --- a/tests/webpack-test/StatsTestCases.basictest.js +++ b/tests/webpack-test/StatsTestCases.basictest.js @@ -6,7 +6,7 @@ const fs = require("graceful-fs"); const rimraf = require("rimraf"); const captureStdio = require("./helpers/captureStdio"); const webpack = require("@rspack/core"); -const { normalizeFilteredTestName } = require('./lib/util/filterUtil') +const { normalizeFilteredTestName, FilteredStatus } = require('./lib/util/filterUtil') /** * Escapes regular expression metacharacters @@ -32,7 +32,8 @@ const tests = fs if (fs.existsSync(filterPath)) { // CHANGE: added custom filter for tracking alignment status let flag = require(filterPath)() - if (flag !== true) { + let shouldRun = flag === true || (Array.isArray(flag) && flag.includes(FilteredStatus.PARTIAL_PASS)) + if (!shouldRun) { let filteredName = normalizeFilteredTestName(flag, testName); describe.skip(testName, () => it(filteredName, () => { })); return false; diff --git a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap index 19616ccccf4..305c06f05e7 100644 --- a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap @@ -751,7 +751,7 @@ Rspack x.x.x compiled successfully" exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = ` "ERROR in ./index.js - × Module not found: Can't resolve 'os' in 'Xdir/module-not-found-error' + × Resolve error: Can't resolve 'os' in 'Xdir/module-not-found-error' ╭─[1:1] 1 │ require('buffer') 2 │ require('os') @@ -1074,7 +1074,7 @@ LOG from LogTestPlugin + 14 hidden lines ERROR in ./index.js - × Module not found: Can't resolve 'does-not-exist' in 'Xdir/preset-errors-only-error' + × Resolve error: Can't resolve 'does-not-exist' in 'Xdir/preset-errors-only-error' ╭──── 1 │ require('does-not-exist') · ───────────────────────── @@ -1896,23 +1896,6 @@ Entrypoint main 329 bytes = main.js Rspack x.x.x compiled successfully in X s" `; -exports[`StatsTestCases should print correct stats for simple 1`] = ` -"asset bundle.js 421 bytes [emitted] (name: main) -Entrypoint main 421 bytes = bundle.js -./index.js 1 bytes [built] [code generated] -Rspack x.x.x compiled successfully in X s" -`; - -exports[`StatsTestCases should print correct stats for simple-more-info 1`] = ` -"PublicPath: auto -asset bundle.js 66 bytes [emitted] (name: main) -Entrypoint main 66 bytes = bundle.js -./index.js 1 bytes [built] [code generated] - entry ./index - 0 ms (resolving: 0 ms, building: 0 ms) -Rspack x.x.x compiled successfully in X s" -`; - exports[`StatsTestCases should print correct stats for split-chunks 1`] = ` "default: Entrypoint main 9.16 KiB = default/main.js diff --git a/tests/webpack-test/configCases/loader-import-module/css/test.filter.js b/tests/webpack-test/configCases/loader-import-module/css/test.filter.js index 02971e02798..242ebe0adf4 100644 --- a/tests/webpack-test/configCases/loader-import-module/css/test.filter.js +++ b/tests/webpack-test/configCases/loader-import-module/css/test.filter.js @@ -1,8 +1,3 @@ -const { FilteredStatus } = require("../../../lib/util/filterUtil") - module.exports = () => { - return [ - FilteredStatus.PARTIAL_PASS, - "https://github.com/web-infra-dev/rspack/issues/4923" - ] -} + return "https://github.com/web-infra-dev/rspack/issues/4923"; +}; diff --git a/tests/webpack-test/configCases/source-map/relative-source-map-path/test.filter.js b/tests/webpack-test/configCases/source-map/relative-source-map-path/test.filter.js index 4134ad6c778..92bf0a5f5ef 100644 --- a/tests/webpack-test/configCases/source-map/relative-source-map-path/test.filter.js +++ b/tests/webpack-test/configCases/source-map/relative-source-map-path/test.filter.js @@ -1,5 +1,3 @@ -const { FilteredStatus } = require("../../../lib/util/filterUtil") - -module.exports = () => {return [FilteredStatus.PARTIAL_PASS, "https://github.com/web-infra-dev/rspack/issues/4304"]} - +const { FilteredStatus } = require("../../../lib/util/filterUtil"); +module.exports = () => "https://github.com/web-infra-dev/rspack/issues/4304"; diff --git a/tests/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js b/tests/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js index 68626d2d37d..663173c5e1c 100644 --- a/tests/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js +++ b/tests/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js @@ -1,3 +1,2 @@ -const { FilteredStatus } = require("../../../lib/util/filterUtil") - -module.exports = () => [FilteredStatus.PARTIAL_PASS, 'not have the same name for splitted chunk with webpack https://github.com/web-infra-dev/rspack/issues/4334'] +module.exports = () => + "not have the same name for splitted chunk with webpack https://github.com/web-infra-dev/rspack/issues/4334"; diff --git a/tests/webpack-test/statsCases/asset-concat/test.filter.js b/tests/webpack-test/statsCases/asset-concat/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/asset-concat/test.filter.js +++ b/tests/webpack-test/statsCases/asset-concat/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/asset/test.filter.js b/tests/webpack-test/statsCases/asset/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/asset/test.filter.js +++ b/tests/webpack-test/statsCases/asset/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js b/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js +++ b/tests/webpack-test/statsCases/async-commons-chunk-auto/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js b/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js +++ b/tests/webpack-test/statsCases/child-compiler-apply-entry-option/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/circular-correctness/test.filter.js b/tests/webpack-test/statsCases/circular-correctness/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/circular-correctness/test.filter.js +++ b/tests/webpack-test/statsCases/circular-correctness/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/color-disabled/test.filter.js b/tests/webpack-test/statsCases/color-disabled/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/color-disabled/test.filter.js +++ b/tests/webpack-test/statsCases/color-disabled/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/color-enabled/test.filter.js b/tests/webpack-test/statsCases/color-enabled/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/color-enabled/test.filter.js +++ b/tests/webpack-test/statsCases/color-enabled/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/common-libs/test.filter.js b/tests/webpack-test/statsCases/common-libs/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/common-libs/test.filter.js +++ b/tests/webpack-test/statsCases/common-libs/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js b/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js +++ b/tests/webpack-test/statsCases/commons-chunk-min-size-Infinity/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js b/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js +++ b/tests/webpack-test/statsCases/commons-plugin-issue-4980/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js b/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js +++ b/tests/webpack-test/statsCases/concat-and-sideeffects/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/custom-terser/test.filter.js b/tests/webpack-test/statsCases/custom-terser/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/custom-terser/test.filter.js +++ b/tests/webpack-test/statsCases/custom-terser/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js b/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js +++ b/tests/webpack-test/statsCases/exclude-with-loader/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/external/test.filter.js b/tests/webpack-test/statsCases/external/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/external/test.filter.js +++ b/tests/webpack-test/statsCases/external/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js b/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js +++ b/tests/webpack-test/statsCases/graph-correctness-entries/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js b/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js +++ b/tests/webpack-test/statsCases/graph-correctness-modules/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/graph-roots/test.filter.js b/tests/webpack-test/statsCases/graph-roots/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/graph-roots/test.filter.js +++ b/tests/webpack-test/statsCases/graph-roots/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/ignore-warnings/test.filter.js b/tests/webpack-test/statsCases/ignore-warnings/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/ignore-warnings/test.filter.js +++ b/tests/webpack-test/statsCases/ignore-warnings/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/immutable/test.filter.js b/tests/webpack-test/statsCases/immutable/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/immutable/test.filter.js +++ b/tests/webpack-test/statsCases/immutable/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js b/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js +++ b/tests/webpack-test/statsCases/import-weak-parser-option/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/import-weak/test.filter.js b/tests/webpack-test/statsCases/import-weak/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/import-weak/test.filter.js +++ b/tests/webpack-test/statsCases/import-weak/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js b/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js +++ b/tests/webpack-test/statsCases/import-with-invalid-options-comments/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/issue-7577/test.filter.js b/tests/webpack-test/statsCases/issue-7577/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/issue-7577/test.filter.js +++ b/tests/webpack-test/statsCases/issue-7577/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/logging-debug/test.filter.js b/tests/webpack-test/statsCases/logging-debug/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/logging-debug/test.filter.js +++ b/tests/webpack-test/statsCases/logging-debug/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/max-modules-default/test.filter.js b/tests/webpack-test/statsCases/max-modules-default/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/max-modules-default/test.filter.js +++ b/tests/webpack-test/statsCases/max-modules-default/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/max-modules/test.filter.js b/tests/webpack-test/statsCases/max-modules/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/max-modules/test.filter.js +++ b/tests/webpack-test/statsCases/max-modules/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/module-assets/test.filter.js b/tests/webpack-test/statsCases/module-assets/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/module-assets/test.filter.js +++ b/tests/webpack-test/statsCases/module-assets/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js b/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js +++ b/tests/webpack-test/statsCases/module-deduplication-named/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/module-deduplication/test.filter.js b/tests/webpack-test/statsCases/module-deduplication/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/module-deduplication/test.filter.js +++ b/tests/webpack-test/statsCases/module-deduplication/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/module-not-found-error/test.filter.js b/tests/webpack-test/statsCases/module-not-found-error/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/module-not-found-error/test.filter.js +++ b/tests/webpack-test/statsCases/module-not-found-error/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/module-reasons/test.filter.js b/tests/webpack-test/statsCases/module-reasons/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/module-reasons/test.filter.js +++ b/tests/webpack-test/statsCases/module-reasons/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js b/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js +++ b/tests/webpack-test/statsCases/named-chunk-groups/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js b/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js +++ b/tests/webpack-test/statsCases/named-chunks-plugin/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/output-module/test.filter.js b/tests/webpack-test/statsCases/output-module/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/output-module/test.filter.js +++ b/tests/webpack-test/statsCases/output-module/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/parse-error/test.filter.js b/tests/webpack-test/statsCases/parse-error/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/parse-error/test.filter.js +++ b/tests/webpack-test/statsCases/parse-error/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js b/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js +++ b/tests/webpack-test/statsCases/prefetch-preload-mixed/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/prefetch/test.filter.js b/tests/webpack-test/statsCases/prefetch/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/prefetch/test.filter.js +++ b/tests/webpack-test/statsCases/prefetch/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preload/test.filter.js b/tests/webpack-test/statsCases/preload/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preload/test.filter.js +++ b/tests/webpack-test/statsCases/preload/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js b/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-only-error/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-errors-only/test.filter.js b/tests/webpack-test/statsCases/preset-errors-only/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-errors-only/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-only/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js b/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js +++ b/tests/webpack-test/statsCases/preset-errors-warnings/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js b/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js +++ b/tests/webpack-test/statsCases/preset-minimal-simple/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js b/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js +++ b/tests/webpack-test/statsCases/preset-mixed-array/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-none-array/test.filter.js b/tests/webpack-test/statsCases/preset-none-array/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-none-array/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none-array/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-none-error/test.filter.js b/tests/webpack-test/statsCases/preset-none-error/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-none-error/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none-error/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-none/test.filter.js b/tests/webpack-test/statsCases/preset-none/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-none/test.filter.js +++ b/tests/webpack-test/statsCases/preset-none/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/preset-summary/test.filter.js b/tests/webpack-test/statsCases/preset-summary/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/preset-summary/test.filter.js +++ b/tests/webpack-test/statsCases/preset-summary/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/real-content-hash/test.filter.js b/tests/webpack-test/statsCases/real-content-hash/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/real-content-hash/test.filter.js +++ b/tests/webpack-test/statsCases/real-content-hash/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/related-assets/test.filter.js b/tests/webpack-test/statsCases/related-assets/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/related-assets/test.filter.js +++ b/tests/webpack-test/statsCases/related-assets/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js b/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js +++ b/tests/webpack-test/statsCases/reverse-sort-modules/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk-issue-7382/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk-single/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/runtime-chunk/test.filter.js b/tests/webpack-test/statsCases/runtime-chunk/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/runtime-chunk/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-chunk/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js b/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js +++ b/tests/webpack-test/statsCases/runtime-specific-used-exports/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js +++ b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js b/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js +++ b/tests/webpack-test/statsCases/scope-hoisting-multi/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js b/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-issue-7428/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js b/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-simple-unused/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/simple-more-info/test.filter.js b/tests/webpack-test/statsCases/simple-more-info/test.filter.js index a4e03003601..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/simple-more-info/test.filter.js +++ b/tests/webpack-test/statsCases/simple-more-info/test.filter.js @@ -1,3 +1,3 @@ module.exports = () => { - return true; + return "unstable"; }; diff --git a/tests/webpack-test/statsCases/simple/test.filter.js b/tests/webpack-test/statsCases/simple/test.filter.js index a4e03003601..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/simple/test.filter.js +++ b/tests/webpack-test/statsCases/simple/test.filter.js @@ -1,3 +1,3 @@ module.exports = () => { - return true; + return "unstable"; }; diff --git a/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js b/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-automatic-name/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js b/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-chunk-name/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js b/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-combinations/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-6413/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-6696/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js b/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-issue-7401/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-keep-remaining-size/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-min-size-reduction/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js b/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-prefer-bigger-splits/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; diff --git a/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js b/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js index a4e03003601..55c41185022 100644 --- a/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js +++ b/tests/webpack-test/statsCases/split-chunks-runtime-specific/test.filter.js @@ -1,3 +1,5 @@ +const { FilteredStatus } = require("../../lib/util/filterUtil"); + module.exports = () => { - return true; + return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; }; From c6ea15c426f181a7de1a3b267eb23bc3baa94ae9 Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Thu, 11 Jul 2024 14:25:34 +0800 Subject: [PATCH 3/4] test: enable stats test --- .../StatsTestCases.basictest.js.snap | 152 +++++++++--------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap index 305c06f05e7..3a0bbeb3186 100644 --- a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap @@ -38,8 +38,8 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto "disabled: Entrypoint main 8.78 KiB = disabled/main.js Entrypoint a 8.65 KiB = disabled/a.js - Entrypoint b 226 bytes = disabled/b.js - Entrypoint c 226 bytes = disabled/c.js + Entrypoint b 196 bytes = disabled/b.js + Entrypoint c 196 bytes = disabled/c.js chunk (runtime: main) disabled/async-c.js (async-c) 196 bytes [rendered] > ./c [10] ./index.js 3:0-47 dependent modules 80 bytes [dependent] 4 modules @@ -73,8 +73,8 @@ exports[`StatsTestCases should print correct stats for async-commons-chunk-auto default: Entrypoint main 9.16 KiB = default/main.js Entrypoint a 8.72 KiB = default/a.js - Entrypoint b 226 bytes = default/b.js - Entrypoint c 226 bytes = default/c.js + Entrypoint b 196 bytes = default/b.js + Entrypoint c 196 bytes = default/c.js chunk (runtime: main) default/async-c.js (async-c) 116 bytes [rendered] > ./c [10] ./index.js 3:0-47 ./c.js 116 bytes [built] [code generated] @@ -127,8 +127,8 @@ default: vendors: Entrypoint main 8.78 KiB = vendors/main.js Entrypoint a 8.64 KiB = vendors/a.js - Entrypoint b 226 bytes = vendors/b.js - Entrypoint c 226 bytes = vendors/c.js + Entrypoint b 196 bytes = vendors/b.js + Entrypoint c 196 bytes = vendors/c.js chunk (runtime: main) vendors/async-c.js (async-c) 196 bytes [rendered] > ./c [10] ./index.js 3:0-47 dependent modules 80 bytes [dependent] 4 modules @@ -239,12 +239,12 @@ all: `; exports[`StatsTestCases should print correct stats for child-compiler-apply-entry-option 1`] = ` -"asset child.js 66 bytes [emitted] -asset parent.js 66 bytes [emitted] (name: parent) -Entrypoint parent 66 bytes = parent.js +"asset child.js 36 bytes [emitted] +asset parent.js 36 bytes [emitted] (name: parent) +Entrypoint parent 36 bytes = parent.js ./parent.js 1 bytes [built] [code generated] - asset child.js 66 bytes [emitted] (name: child) - Entrypoint child 66 bytes = child.js + asset child.js 36 bytes [emitted] (name: child) + Entrypoint child 36 bytes = child.js ./child.js 1 bytes [built] [code generated] Child TestApplyEntryOptionPlugin compiled successfully @@ -252,7 +252,7 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for circular-correctness 1`] = ` -"Entrypoint main 9.83 KiB = bundle.js +"Entrypoint main 9.8 KiB = bundle.js chunk (runtime: main) 74.bundle.js (a) 49 bytes <{76}> <{909}> >{76}< [rendered] ./module-a.js 49 bytes [built] [code generated] chunk (runtime: main) 751.bundle.js (b) 49 bytes <{76}> <{909}> >{76}< [rendered] @@ -265,15 +265,15 @@ Rspack x.x.x compiled successfully" `; exports[`StatsTestCases should print correct stats for color-disabled 1`] = ` -"asset main.js 66 bytes [emitted] (name: main) -Entrypoint main 66 bytes = main.js +"asset main.js 36 bytes [emitted] (name: main) +Entrypoint main 36 bytes = main.js ./index.js 1 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for color-enabled 1`] = ` -"asset main.js 66 bytes [emitted] (name: main) -Entrypoint main 66 bytes = main.js +"asset main.js 36 bytes [emitted] (name: main) +Entrypoint main 36 bytes = main.js ./index.js 1 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s" `; @@ -305,14 +305,14 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for commons-plugin-issue-4980 1`] = ` -"asset app.a0eb2e6ed70cc52bcbd6-1.js 82 bytes [emitted] [immutable] (name: app) -Entrypoint app 82 bytes = app.a0eb2e6ed70cc52bcbd6-1.js +"asset app.a0eb2e6ed70cc52bcbd6-1.js 52 bytes [emitted] [immutable] (name: app) +Entrypoint app 52 bytes = app.a0eb2e6ed70cc52bcbd6-1.js orphan modules 205 bytes [orphan] 3 modules ./entry-1.js 67 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s -asset app.3c507db620931e296fff-2.js 82 bytes [emitted] [immutable] (name: app) -Entrypoint app 82 bytes = app.3c507db620931e296fff-2.js +asset app.3c507db620931e296fff-2.js 52 bytes [emitted] [immutable] (name: app) +Entrypoint app 52 bytes = app.3c507db620931e296fff-2.js orphan modules 212 bytes [orphan] 3 modules ./entry-2.js 67 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s" @@ -368,16 +368,16 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for external 1`] = ` -"asset main.js 921 bytes [emitted] (name: main) -Entrypoint main 921 bytes = main.js +"asset main.js 891 bytes [emitted] (name: main) +Entrypoint main 891 bytes = main.js ./index.js 17 bytes [built] [code generated] external \\"test\\" 42 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for graph-correctness-entries 1`] = ` -"Entrypoint e1 9.75 KiB = e1.js -Entrypoint e2 9.75 KiB = e2.js +"Entrypoint e1 9.72 KiB = e1.js +Entrypoint e2 9.72 KiB = e2.js chunk (runtime: e1) e1.js (e1) 49 bytes (javascript) 8.15 KiB (runtime) >{74}< [entry] [rendered] ./e1.js 49 bytes [built] [code generated] entry ./e1 @@ -399,8 +399,8 @@ Rspack x.x.x compiled successfully" `; exports[`StatsTestCases should print correct stats for graph-correctness-modules 1`] = ` -"Entrypoint e1 10.7 KiB = e1.js -Entrypoint e2 10.7 KiB = e2.js +"Entrypoint e1 10.6 KiB = e1.js +Entrypoint e2 10.6 KiB = e2.js chunk (runtime: e1) e1.js (e1) 119 bytes (javascript) 8.46 KiB (runtime) >{74}< >{984}< [entry] [rendered] ./e1.js 70 bytes [built] [code generated] entry ./e1 @@ -500,10 +500,10 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for import-weak 1`] = ` -"asset entry.js 9.92 KiB [emitted] (name: entry) +"asset entry.js 9.89 KiB [emitted] (name: entry) asset 332.js 285 bytes [emitted] asset 313.js 130 bytes [emitted] -Entrypoint entry 9.92 KiB = entry.js +Entrypoint entry 9.89 KiB = entry.js runtime modules 8.11 KiB 10 modules cacheable modules 179 bytes ./entry.js 120 bytes [built] [code generated] @@ -513,10 +513,10 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for import-weak-parser-option 1`] = ` -"asset entry.js 9.92 KiB [emitted] (name: entry) +"asset entry.js 9.89 KiB [emitted] (name: entry) asset 332.js 285 bytes [emitted] asset 313.js 130 bytes [emitted] -Entrypoint entry 9.92 KiB = entry.js +Entrypoint entry 9.89 KiB = entry.js runtime modules 8.11 KiB 10 modules cacheable modules 153 bytes ./entry.js 94 bytes [built] [code generated] @@ -593,15 +593,15 @@ Rspack x.x.x compiled successfully in X s" exports[`StatsTestCases should print correct stats for logging-debug 1`] = ` " [LogTestPlugin] Info -asset main.js 66 bytes [emitted] (name: main) -Entrypoint main 66 bytes = main.js +asset main.js 36 bytes [emitted] (name: main) +Entrypoint main 36 bytes = main.js ./index.js 1 bytes [built] [code generated] Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for max-modules 1`] = ` -"asset main.js 4.66 KiB [emitted] (name: main) -Entrypoint main 4.66 KiB = main.js +"asset main.js 4.63 KiB [emitted] (name: main) +Entrypoint main 4.63 KiB = main.js ./index.js 181 bytes [built] [code generated] ./a.js?1 33 bytes [built] [code generated] ./a.js?2 33 bytes [built] [code generated] @@ -626,8 +626,8 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for max-modules-default 1`] = ` -"asset main.js 4.66 KiB [emitted] (name: main) -Entrypoint main 4.66 KiB = main.js +"asset main.js 4.63 KiB [emitted] (name: main) +Entrypoint main 4.63 KiB = main.js ./index.js 181 bytes [built] [code generated] ./a.js?1 33 bytes [built] [code generated] ./a.js?2 33 bytes [built] [code generated] @@ -751,7 +751,7 @@ Rspack x.x.x compiled successfully" exports[`StatsTestCases should print correct stats for module-not-found-error 1`] = ` "ERROR in ./index.js - × Resolve error: Can't resolve 'os' in 'Xdir/module-not-found-error' + × Module not found: Can't resolve 'os' in 'Xdir/module-not-found-error' ╭─[1:1] 1 │ require('buffer') 2 │ require('os') @@ -762,8 +762,8 @@ Rspack compiled with 1 error" `; exports[`StatsTestCases should print correct stats for module-reasons 1`] = ` -"asset main.js 1.12 KiB [emitted] (name: main) -Entrypoint main 1.12 KiB = main.js +"asset main.js 1.09 KiB [emitted] (name: main) +Entrypoint main 1.09 KiB = main.js orphan modules 102 bytes [orphan] 3 modules cacheable modules 110 bytes ./index.js + 2 modules 102 bytes [code generated] @@ -856,8 +856,8 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for parse-error 1`] = ` -"asset main.js 1.44 KiB [emitted] (name: main) -Entrypoint main 1.44 KiB = main.js +"asset main.js 1.41 KiB [emitted] (name: main) +Entrypoint main 1.41 KiB = main.js orphan modules 30 bytes [orphan] 2 modules cacheable modules 85 bytes ./index.js + 1 modules 30 bytes [code generated] @@ -1074,7 +1074,7 @@ LOG from LogTestPlugin + 14 hidden lines ERROR in ./index.js - × Resolve error: Can't resolve 'does-not-exist' in 'Xdir/preset-errors-only-error' + × Module not found: Can't resolve 'does-not-exist' in 'Xdir/preset-errors-only-error' ╭──── 1 │ require('does-not-exist') · ───────────────────────── @@ -1095,19 +1095,19 @@ Rspack compiled successfully" `; exports[`StatsTestCases should print correct stats for preset-minimal-simple 1`] = ` -"asset main.js 66 bytes [emitted] (name: main) +"asset main.js 36 bytes [emitted] (name: main) 1 module Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for preset-mixed-array 1`] = ` "minimal: - asset minimal.js 74 bytes [emitted] (name: main) + asset minimal.js 44 bytes [emitted] (name: main) 1 module minimal (Rspack x.x.x) compiled successfully in X s verbose: - Entrypoint main 74 bytes = verbose.js + Entrypoint main 44 bytes = verbose.js ./index.js 8 bytes [built] [code generated] verbose (Rspack x.x.x) compiled successfully" `; @@ -1256,10 +1256,10 @@ exports[`StatsTestCases should print correct stats for related-assets 1`] = ` assets by path *.gz 13.5 KiB asset default-main.js.gz 11.5 KiB [emitted] + 7 assets - assets by path *.map 1.25 KiB - asset default-main.js.map 667 bytes [emitted] (name: main) + assets by path *.map 1.26 KiB + asset default-main.js.map 670 bytes [emitted] (name: main) + 3 assets - assets by path *.js 12.1 KiB + assets by path *.js 12.2 KiB asset default-main.js 11.5 KiB [emitted] (name: main) asset default-chunk_js.js 625 bytes [emitted] assets by path *.css 142 bytes @@ -1267,33 +1267,33 @@ exports[`StatsTestCases should print correct stats for related-assets 1`] = ` asset default-main.css 69 bytes [emitted] (name: main) relatedAssets: - assets by path *.br 13.5 KiB - asset relatedAssets-main.js.br 11.5 KiB [emitted] + assets by path *.br 13.6 KiB + asset relatedAssets-main.js.br 11.6 KiB [emitted] + 7 assets - assets by path *.gz 13.5 KiB - asset relatedAssets-main.js.gz 11.5 KiB [emitted] + assets by path *.gz 13.6 KiB + asset relatedAssets-main.js.gz 11.6 KiB [emitted] + 7 assets assets by path *.map 1.28 KiB - asset relatedAssets-main.js.map 673 bytes [emitted] (name: main) + asset relatedAssets-main.js.map 676 bytes [emitted] (name: main) + 3 assets - assets by path *.js 12.1 KiB - asset relatedAssets-main.js 11.5 KiB [emitted] (name: main) + assets by path *.js 12.2 KiB + asset relatedAssets-main.js 11.6 KiB [emitted] (name: main) asset relatedAssets-chunk_js.js 631 bytes [emitted] assets by path *.css 154 bytes asset relatedAssets-chunk_js.css 79 bytes [emitted] asset relatedAssets-main.css 75 bytes [emitted] (name: main) exclude1: - assets by path *.br 13.5 KiB + assets by path *.br 13.6 KiB asset exclude1-main.js.br 11.5 KiB [emitted] + 7 assets - assets by path *.gz 13.5 KiB + assets by path *.gz 13.6 KiB asset exclude1-main.js.gz 11.5 KiB [emitted] + 7 assets assets by path *.map 1.26 KiB - asset exclude1-main.js.map 668 bytes [emitted] (name: main) + asset exclude1-main.js.map 671 bytes [emitted] (name: main) + 3 assets - assets by path *.js 12.1 KiB + assets by path *.js 12.2 KiB asset exclude1-main.js 11.5 KiB [emitted] (name: main) asset exclude1-chunk_js.js 626 bytes [emitted] assets by path *.css 144 bytes @@ -1301,16 +1301,16 @@ exclude1: asset exclude1-main.css 70 bytes [emitted] (name: main) exclude2: - assets by path *.br 13.5 KiB + assets by path *.br 13.6 KiB asset exclude2-main.js.br 11.5 KiB [emitted] + 7 assets - assets by path *.gz 13.5 KiB + assets by path *.gz 13.6 KiB asset exclude2-main.js.gz 11.5 KiB [emitted] + 7 assets assets by path *.map 1.26 KiB - asset exclude2-main.js.map 668 bytes [emitted] (name: main) + asset exclude2-main.js.map 671 bytes [emitted] (name: main) + 3 assets - assets by path *.js 12.1 KiB + assets by path *.js 12.2 KiB asset exclude2-main.js 11.5 KiB [emitted] (name: main) asset exclude2-chunk_js.js 626 bytes [emitted] assets by path *.css 144 bytes @@ -1318,16 +1318,16 @@ exclude2: asset exclude2-main.css 70 bytes [emitted] (name: main) exclude3: - assets by path *.br 13.5 KiB + assets by path *.br 13.6 KiB asset exclude3-main.js.br 11.5 KiB [emitted] + 7 assets - assets by path *.gz 13.5 KiB + assets by path *.gz 13.6 KiB asset exclude3-main.js.gz 11.5 KiB [emitted] + 7 assets assets by path *.map 1.26 KiB - asset exclude3-main.js.map 668 bytes [emitted] (name: main) + asset exclude3-main.js.map 671 bytes [emitted] (name: main) + 3 assets - assets by path *.js 12.1 KiB + assets by path *.js 12.2 KiB asset exclude3-main.js 11.5 KiB [emitted] (name: main) asset exclude3-chunk_js.js 626 bytes [emitted] assets by path *.css 144 bytes @@ -1336,8 +1336,8 @@ exclude3: `; exports[`StatsTestCases should print correct stats for reverse-sort-modules 1`] = ` -"asset main.js 4.66 KiB [emitted] (name: main) -Entrypoint main 4.66 KiB = main.js +"asset main.js 4.63 KiB [emitted] (name: main) +Entrypoint main 4.63 KiB = main.js ./index.js 181 bytes [built] [code generated] ./c.js?9 33 bytes [built] [code generated] ./c.js?8 33 bytes [built] [code generated] @@ -1399,10 +1399,10 @@ exports[`StatsTestCases should print correct stats for runtime-specific-used-exp asset production-dw_js-_5cba1.js 932 bytes [emitted] asset production-dy_js.js 925 bytes [emitted] asset production-dz_js.js 925 bytes [emitted] - asset production-c.js 75 bytes [emitted] (name: c) + asset production-c.js 45 bytes [emitted] (name: c) Entrypoint a 10.3 KiB = production-a.js Entrypoint b 10.3 KiB = production-b.js - Entrypoint c 75 bytes = production-c.js + Entrypoint c 45 bytes = production-c.js chunk (runtime: a) production-a.js (a) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] ./a.js 261 bytes [built] [code generated] [no exports used] @@ -1563,10 +1563,10 @@ global: asset global-dx_js.js 956 bytes [emitted] asset global-dy_js.js 956 bytes [emitted] asset global-dz_js.js 956 bytes [emitted] - asset global-c.js 75 bytes [emitted] (name: c) + asset global-c.js 45 bytes [emitted] (name: c) Entrypoint a 10.4 KiB = global-a.js Entrypoint b 10.4 KiB = global-b.js - Entrypoint c 75 bytes = global-c.js + Entrypoint c 45 bytes = global-c.js chunk (runtime: a) global-a.js (a) 605 bytes (javascript) 6.94 KiB (runtime) [entry] [rendered] ./a.js 261 bytes [built] [code generated] [no exports used] @@ -1635,7 +1635,7 @@ global: exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` "Entrypoint index 10.5 KiB = index.js -Entrypoint entry 168 bytes = entry.js +Entrypoint entry 138 bytes = entry.js runtime modules 7.24 KiB 10 modules cacheable modules 641 bytes code generated modules 530 bytes [code generated] @@ -1848,8 +1848,8 @@ Rspack x.x.x compiled successfully in X s" `; exports[`StatsTestCases should print correct stats for side-effects-simple-unused 1`] = ` -"asset main.js 329 bytes [emitted] (name: main) -Entrypoint main 329 bytes = main.js +"asset main.js 299 bytes [emitted] (name: main) +Entrypoint main 299 bytes = main.js ./index.js 55 bytes [orphan] [built] [no exports used] ./index.js + 2 modules 158 bytes [code generated] From 714a4afe39d70e98e2445247acfb9e0caae1e7ae Mon Sep 17 00:00:00 2001 From: LingyuCoder Date: Thu, 11 Jul 2024 14:45:52 +0800 Subject: [PATCH 4/4] test: enable stats test --- .../StatsTestCases.basictest.js.snap | 223 ------------------ .../real-content-hash/test.filter.js | 2 +- .../scope-hoisting-bailouts/test.filter.js | 4 +- .../side-effects-optimization/test.filter.js | 2 +- 4 files changed, 3 insertions(+), 228 deletions(-) diff --git a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap index 3a0bbeb3186..0cb643fa41e 100644 --- a/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap +++ b/tests/webpack-test/__snapshots__/StatsTestCases.basictest.js.snap @@ -1130,124 +1130,6 @@ exports[`StatsTestCases should print correct stats for preset-summary 1`] = ` Rspack x.x.x compiled successfully" `; -exports[`StatsTestCases should print correct stats for real-content-hash 1`] = ` -"a-normal: - assets by path *.js 3.3 KiB - asset e1f824d630efaf7212ae-e1f824.js 2.83 KiB [emitted] [immutable] (name: runtime) - asset a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes [emitted] [immutable] (name: index) - asset fcbeb835bbe3c6462b2c-fcbeb8.js 228 bytes [emitted] [immutable] (name: lazy) - asset 666f2b8847021ccc7608-666f2b.js 21 bytes [emitted] [immutable] (name: a, b) - assets by path *.jpg 11.8 KiB - asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) - asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) - asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) - Entrypoint index 3.06 KiB = e1f824d630efaf7212ae-e1f824.js 2.83 KiB a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes - Entrypoint a 21 bytes = 666f2b8847021ccc7608-666f2b.js - Entrypoint b 21 bytes = 666f2b8847021ccc7608-666f2b.js - runtime modules 7.59 KiB 8 modules - orphan modules 150 bytes [orphan] 2 modules - cacheable modules 556 bytes (javascript) 26.3 KiB (asset) - javascript modules 430 bytes - ./index.js 150 bytes [built] [code generated] - ./a.js 22 bytes [built] [code generated] - ./b.js 66 bytes [built] [code generated] - ./lazy.js + 2 modules 192 bytes [code generated] - asset modules 26.3 KiB (asset) 126 bytes (javascript) - ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - a-normal (Rspack x.x.x) compiled successfully in X s - -b-normal: - assets by path *.js 3.3 KiB - asset e1f824d630efaf7212ae-e1f824.js 2.83 KiB [emitted] [immutable] (name: runtime) - asset a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes [emitted] [immutable] (name: index) - asset fcbeb835bbe3c6462b2c-fcbeb8.js 228 bytes [emitted] [immutable] (name: lazy) - asset 666f2b8847021ccc7608-666f2b.js 21 bytes [emitted] [immutable] (name: a, b) - assets by path *.jpg 11.8 KiB - asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) - asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) - asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) - Entrypoint index 3.06 KiB = e1f824d630efaf7212ae-e1f824.js 2.83 KiB a9ac3a7f0d91bc127b76-a9ac3a.js 237 bytes - Entrypoint a 21 bytes = 666f2b8847021ccc7608-666f2b.js - Entrypoint b 21 bytes = 666f2b8847021ccc7608-666f2b.js - runtime modules 7.59 KiB 8 modules - orphan modules 146 bytes [orphan] 2 modules - cacheable modules 511 bytes (javascript) 26.3 KiB (asset) - javascript modules 385 bytes - ./index.js 109 bytes [built] [code generated] - ./a.js 22 bytes [built] [code generated] - ./b.js 66 bytes [built] [code generated] - ./lazy.js + 2 modules 188 bytes [code generated] - asset modules 26.3 KiB (asset) 126 bytes (javascript) - ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - b-normal (Rspack x.x.x) compiled successfully in X s - -a-source-map: - assets by path *.js 3.47 KiB - asset 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB [emitted] [immutable] (name: runtime) - asset 841a97b5e1c2aadea897-841a97.js 293 bytes [emitted] [immutable] (name: index) - asset d5618185d52ece86383b-d56181.js 284 bytes [emitted] [immutable] (name: lazy) - asset 222c2acc68675174e6b2-222c2a.js 77 bytes [emitted] [immutable] (name: a, b) - assets by path *.map 940 bytes - asset d5618185d52ece86383b-d56181.js.map 393 bytes [emitted] [dev] (name: lazy) - asset 841a97b5e1c2aadea897-841a97.js.map 354 bytes [emitted] [dev] (name: index) - asset 222c2acc68675174e6b2-222c2a.js.map 193 bytes [emitted] [dev] (name: a, b) - assets by path *.jpg 11.8 KiB - asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) - asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) - asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) - Entrypoint index 3.11 KiB = 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB 841a97b5e1c2aadea897-841a97.js 293 bytes - Entrypoint a 77 bytes = 222c2acc68675174e6b2-222c2a.js - Entrypoint b 77 bytes = 222c2acc68675174e6b2-222c2a.js - runtime modules 7.59 KiB 8 modules - orphan modules 150 bytes [orphan] 2 modules - cacheable modules 556 bytes (javascript) 26.3 KiB (asset) - javascript modules 430 bytes - ./index.js 150 bytes [built] [code generated] - ./a.js 22 bytes [built] [code generated] - ./b.js 66 bytes [built] [code generated] - ./lazy.js + 2 modules 192 bytes [code generated] - asset modules 26.3 KiB (asset) 126 bytes (javascript) - ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - a-source-map (Rspack x.x.x) compiled successfully in X s - -b-source-map: - assets by path *.js 3.47 KiB - asset 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB [emitted] [immutable] (name: runtime) - asset 841a97b5e1c2aadea897-841a97.js 293 bytes [emitted] [immutable] (name: index) - asset d5618185d52ece86383b-d56181.js 284 bytes [emitted] [immutable] (name: lazy) - asset 222c2acc68675174e6b2-222c2a.js 77 bytes [emitted] [immutable] (name: a, b) - assets by path *.map 944 bytes - asset d5618185d52ece86383b-d56181.js.map 389 bytes [emitted] [dev] (name: lazy) - asset 841a97b5e1c2aadea897-841a97.js.map 312 bytes [emitted] [dev] (name: index) - asset 222c2acc68675174e6b2-222c2a.js.map 243 bytes [emitted] [dev] (name: a, b) - assets by path *.jpg 11.8 KiB - asset 14267178e7b77cf2c912.jpg 5.89 KiB [emitted] [immutable] [from: file.jpg] (name: index) - asset 14267178e7b77cf2c912.jpg?query 5.89 KiB [immutable] [from: file.jpg?query] (name: lazy) - asset 89a353e9c515885abd8e.png 14.6 KiB [emitted] [immutable] [from: file.png] (name: lazy) - Entrypoint index 3.11 KiB = 7fa7ba676fc2991b0d22-7fa7ba.js 2.83 KiB 841a97b5e1c2aadea897-841a97.js 293 bytes - Entrypoint a 77 bytes = 222c2acc68675174e6b2-222c2a.js - Entrypoint b 77 bytes = 222c2acc68675174e6b2-222c2a.js - runtime modules 7.59 KiB 8 modules - orphan modules 146 bytes [orphan] 2 modules - cacheable modules 511 bytes (javascript) 26.3 KiB (asset) - javascript modules 385 bytes - ./index.js 109 bytes [built] [code generated] - ./a.js 22 bytes [built] [code generated] - ./b.js 66 bytes [built] [code generated] - ./lazy.js + 2 modules 188 bytes [code generated] - asset modules 26.3 KiB (asset) 126 bytes (javascript) - ./file.jpg 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.png 14.6 KiB (asset) 42 bytes (javascript) [built] [code generated] - ./file.jpg?query 5.89 KiB (asset) 42 bytes (javascript) [built] [code generated] - b-source-map (Rspack x.x.x) compiled successfully in X s" -`; - exports[`StatsTestCases should print correct stats for related-assets 1`] = ` "default: assets by path *.br 13.5 KiB @@ -1633,42 +1515,6 @@ global: global (Rspack x.x.x) compiled successfully in X s" `; -exports[`StatsTestCases should print correct stats for scope-hoisting-bailouts 1`] = ` -"Entrypoint index 10.5 KiB = index.js -Entrypoint entry 138 bytes = entry.js -runtime modules 7.24 KiB 10 modules -cacheable modules 641 bytes - code generated modules 530 bytes [code generated] - ./index.js 150 bytes [built] [code generated] - Statement with side_effects in source code at ./index.js:7:0-25 - ModuleConcatenation bailout: Module is an entry point - ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/module-id.js: Module uses module.id - ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/module-loaded.js: Module uses module.loaded - ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/eval.js: Module uses eval() - ModuleConcatenation bailout: Cannot concat with Xdir/scope-hoisting-bailouts/cjs.js: Module is not an ECMAScript module - ./cjs.js 59 bytes [built] [code generated] - Statement with side_effects in source code at ./cjs.js:1:0-26 - ModuleConcatenation bailout: Module is not an ECMAScript module - ./ref-from-cjs.js 45 bytes [built] [code generated] - ./eval.js 35 bytes [built] [code generated] - ExportDefaultExpr with side_effects in source code at ./eval.js:1:0-34 - ModuleConcatenation bailout: Module uses eval() - ./module-id.js 26 bytes [built] [code generated] - ExportDefaultExpr with side_effects in source code at ./module-id.js:1:0-25 - ModuleConcatenation bailout: Module uses module.id - ./module-loaded.js 30 bytes [built] [code generated] - ExportDefaultExpr with side_effects in source code at ./module-loaded.js:1:0-29 - ModuleConcatenation bailout: Module uses module.loaded - ./entry.js 32 bytes [built] [code generated] - ModuleConcatenation bailout: Module is an entry point - + 2 modules - orphan modules 111 bytes [orphan] - ./concatenated.js 26 bytes [orphan] [built] - ./concatenated1.js 37 bytes [orphan] [built] - ./concatenated2.js 48 bytes [orphan] [built] -Rspack x.x.x compiled successfully in X s" -`; - exports[`StatsTestCases should print correct stats for scope-hoisting-multi 1`] = ` "Entrypoint first 8.78 KiB = a-first.js Entrypoint second 8.78 KiB = a-second.js @@ -1778,75 +1624,6 @@ cacheable modules 967 bytes Rspack x.x.x compiled successfully in X s" `; -exports[`StatsTestCases should print correct stats for side-effects-optimization 1`] = ` -"asset main.js 1.38 KiB [emitted] (name: main) -Entrypoint main 1.38 KiB = main.js -runtime modules 1.08 KiB 4 modules -cacheable modules 1.35 KiB - ./index.js 116 bytes [built] [code generated] - [no exports] - [no exports used] - Statement with side_effects in source code at ./index.js:4:0-30 - ModuleConcatenation bailout: Module is an entry point - ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) - ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/a.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) - ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/module-with-export/index.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) - ./node_modules/big-module/index.js 44 bytes [built] [code generated] - [exports: a, huh] - [only some exports used: huh] - ModuleConcatenation bailout: Reexports in this module do not have a static target (huh : used in main) - ./node_modules/big-module/a.js 58 bytes [built] [code generated] - [exports: a, huh] - [all exports used] - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) - ./node_modules/module-with-export/index.js 1.01 KiB [built] [code generated] - [exports: huh, justToBeABigFile, smallVar] - [only some exports used: huh, smallVar] - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) - ./node_modules/module-with-export/emptyModule.js 43 bytes [built] [code generated] - [exports: huh] - [used exports unknown] - ModuleConcatenation bailout: Module is not an ECMAScript module - ./node_modules/big-module/log.js 92 bytes [built] [code generated] - [exports: huh] - [all exports used] - Statement with side_effects in source code at ./node_modules/big-module/log.js:3:0-5:2 - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) -Rspack x.x.x compiled successfully in X s - -asset main.no-side.js 1.41 KiB [emitted] (name: main) -Entrypoint main 1.41 KiB = main.no-side.js -runtime modules 1.08 KiB 4 modules -cacheable modules 1.35 KiB - ./index.js 116 bytes [built] [code generated] - [no exports] - [no exports used] - ModuleConcatenation bailout: Module is an entry point - ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) - ModuleConcatenation bailout: Cannot concat with Xdir/side-effects-optimization/node_modules/module-with-export/index.js because of Xdir/side-effects-optimization/node_modules/big-module/index.js: Reexports in this module do not have a static target (huh : used in main) - ./node_modules/big-module/index.js 44 bytes [built] [code generated] - [exports: a, huh] - [all exports used] - ModuleConcatenation bailout: Reexports in this module do not have a static target (huh : used in main) - ./node_modules/module-with-export/index.js 1.01 KiB [built] [code generated] - [exports: huh, justToBeABigFile, smallVar] - [only some exports used: huh, smallVar] - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) - ./node_modules/big-module/a.js 58 bytes [built] [code generated] - [exports: a, huh] - [all exports used] - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) - ./node_modules/module-with-export/emptyModule.js 43 bytes [built] [code generated] - [no exports] - [used exports unknown] - ModuleConcatenation bailout: Module is not an ECMAScript module - ./node_modules/big-module/log.js 92 bytes [built] [code generated] - [exports: huh] - [all exports used] - ModuleConcatenation bailout: List of module exports is dynamic (huh : maybe provided (runtime-defined) and used in main) -Rspack x.x.x compiled successfully in X s" -`; - exports[`StatsTestCases should print correct stats for side-effects-simple-unused 1`] = ` "asset main.js 299 bytes [emitted] (name: main) Entrypoint main 299 bytes = main.js diff --git a/tests/webpack-test/statsCases/real-content-hash/test.filter.js b/tests/webpack-test/statsCases/real-content-hash/test.filter.js index 55c41185022..1cfca030846 100644 --- a/tests/webpack-test/statsCases/real-content-hash/test.filter.js +++ b/tests/webpack-test/statsCases/real-content-hash/test.filter.js @@ -1,5 +1,5 @@ const { FilteredStatus } = require("../../lib/util/filterUtil"); module.exports = () => { - return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; + return "unstable"; }; diff --git a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js index 55c41185022..8f00f3e0163 100644 --- a/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js +++ b/tests/webpack-test/statsCases/scope-hoisting-bailouts/test.filter.js @@ -1,5 +1,3 @@ -const { FilteredStatus } = require("../../lib/util/filterUtil"); - module.exports = () => { - return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; + return "unstable"; }; diff --git a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js index 55c41185022..1cfca030846 100644 --- a/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js +++ b/tests/webpack-test/statsCases/side-effects-optimization/test.filter.js @@ -1,5 +1,5 @@ const { FilteredStatus } = require("../../lib/util/filterUtil"); module.exports = () => { - return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "]; + return "unstable"; };