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 82b867d5a8f..0cb643fa41e 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 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
+ ./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 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]
+ 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 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
+ ./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 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 36 bytes [emitted] (name: child)
+ Entrypoint child 36 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.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]
+ ./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 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 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 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 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 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"
+`;
+
+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 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.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
+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.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
+ ./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.89 KiB [emitted] (name: entry)
+asset 332.js 285 bytes [emitted]
+asset 313.js 130 bytes [emitted]
+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]
+ ./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.89 KiB [emitted] (name: entry)
+asset 332.js 285 bytes [emitted]
+asset 313.js 130 bytes [emitted]
+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]
+ ./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 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.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]
+./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.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]
+./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.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]
+ 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.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]
+ ./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,666 @@ 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 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 44 bytes [emitted] (name: main)
+ 1 module
+ minimal (Rspack x.x.x) compiled successfully in X s
+
+verbose:
+ Entrypoint main 44 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 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.26 KiB
+ asset default-main.js.map 670 bytes [emitted] (name: main)
+ + 3 assets
+ 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
+ asset default-chunk_js.css 73 bytes [emitted]
+ asset default-main.css 69 bytes [emitted] (name: main)
+
+relatedAssets:
+ assets by path *.br 13.6 KiB
+ asset relatedAssets-main.js.br 11.6 KiB [emitted]
+ + 7 assets
+ 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 676 bytes [emitted] (name: main)
+ + 3 assets
+ 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.6 KiB
+ asset exclude1-main.js.br 11.5 KiB [emitted]
+ + 7 assets
+ 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 671 bytes [emitted] (name: main)
+ + 3 assets
+ 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
+ asset exclude1-chunk_js.css 74 bytes [emitted]
+ asset exclude1-main.css 70 bytes [emitted] (name: main)
+
+exclude2:
+ assets by path *.br 13.6 KiB
+ asset exclude2-main.js.br 11.5 KiB [emitted]
+ + 7 assets
+ 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 671 bytes [emitted] (name: main)
+ + 3 assets
+ 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
+ asset exclude2-chunk_js.css 74 bytes [emitted]
+ asset exclude2-main.css 70 bytes [emitted] (name: main)
+
+exclude3:
+ assets by path *.br 13.6 KiB
+ asset exclude3-main.js.br 11.5 KiB [emitted]
+ + 7 assets
+ 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 671 bytes [emitted] (name: main)
+ + 3 assets
+ 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
+ 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.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]
+./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 45 bytes [emitted] (name: c)
+ Entrypoint a 10.3 KiB = production-a.js
+ Entrypoint b 10.3 KiB = production-b.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]
+ ./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 45 bytes [emitted] (name: c)
+ Entrypoint a 10.4 KiB = global-a.js
+ Entrypoint b 10.4 KiB = global-b.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]
+ ./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-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-simple-unused 1`] = `
+"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]
+ [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 split-chunks 1`] = `
"default:
Entrypoint main 9.16 KiB = default/main.js
@@ -494,3 +2019,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/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/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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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 00000000000..48924276b77
Binary files /dev/null and b/tests/webpack-test/statsCases/module-assets/node_modules/a/1.png differ
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 00000000000..48924276b77
Binary files /dev/null and b/tests/webpack-test/statsCases/module-assets/node_modules/a/2.png differ
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 ebef3d82732..55c41185022 100644
--- a/tests/webpack-test/statsCases/parse-error/test.filter.js
+++ b/tests/webpack-test/statsCases/parse-error/test.filter.js
@@ -1,2 +1,5 @@
+const { FilteredStatus } = require("../../lib/util/filterUtil");
-module.exports = () => {return false}
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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,3 +1,5 @@
+const { FilteredStatus } = require("../../lib/util/filterUtil");
-module.exports = () => {return false}
-
\ No newline at end of file
+module.exports = () => {
+ return "unstable";
+};
diff --git a/tests/webpack-test/statsCases/related-assets/test.filter.js b/tests/webpack-test/statsCases/related-assets/test.filter.js
index 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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,3 +1,3 @@
-
-module.exports = () => {return false}
-
\ No newline at end of file
+module.exports = () => {
+ return "unstable";
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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,3 +1,5 @@
+const { FilteredStatus } = require("../../lib/util/filterUtil");
-module.exports = () => {return false}
-
\ No newline at end of file
+module.exports = () => {
+ return "unstable";
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return "unstable";
+};
diff --git a/tests/webpack-test/statsCases/simple/test.filter.js b/tests/webpack-test/statsCases/simple/test.filter.js
index ebef3d82732..8f00f3e0163 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 "unstable";
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ 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 7ba279ea1ea..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 false}
-
\ No newline at end of file
+module.exports = () => {
+ return [FilteredStatus.PARTIAL_PASS, "check the consistency with webpack "];
+};
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";
+};