diff --git a/webpack-test/configCases/split-chunks/asnyc-entries/test.filter.js b/webpack-test/configCases/split-chunks/asnyc-entries/test.filter.js index 3f688096732..ea561e9f59e 100644 --- a/webpack-test/configCases/split-chunks/asnyc-entries/test.filter.js +++ b/webpack-test/configCases/split-chunks/asnyc-entries/test.filter.js @@ -1,7 +1 @@ -// var supportsWorker = require("../../../helpers/supportsWorker"); - -// module.exports = function (config) { -// return supportsWorker(); -// }; - -module.exports = () => {return false} +module.exports = () => 'block by treeshaking issue https://github.com/web-infra-dev/rspack/issues/4336' diff --git a/webpack-test/configCases/split-chunks/chunk-filename-delimiter-default/test.filter.js b/webpack-test/configCases/split-chunks/chunk-filename-delimiter-default/test.filter.js index 3be456dcd23..184f97dddb9 100644 --- a/webpack-test/configCases/split-chunks/chunk-filename-delimiter-default/test.filter.js +++ b/webpack-test/configCases/split-chunks/chunk-filename-delimiter-default/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'splitted chunk ids should be the same as webpack https://github.com/web-infra-dev/rspack/issues/4334' diff --git a/webpack-test/configCases/split-chunks/chunk-filename-delimiter/test.filter.js b/webpack-test/configCases/split-chunks/chunk-filename-delimiter/test.filter.js index 3be456dcd23..c8dbc682402 100644 --- a/webpack-test/configCases/split-chunks/chunk-filename-delimiter/test.filter.js +++ b/webpack-test/configCases/split-chunks/chunk-filename-delimiter/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'not support automaticNameDelimiter https://github.com/web-infra-dev/rspack/issues/4335' diff --git a/webpack-test/configCases/split-chunks/custom-filename-function/test.filter.js b/webpack-test/configCases/split-chunks/custom-filename-function/test.filter.js index 3be456dcd23..bf81dbd7289 100644 --- a/webpack-test/configCases/split-chunks/custom-filename-function/test.filter.js +++ b/webpack-test/configCases/split-chunks/custom-filename-function/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'not support function type of splitChunks https://github.com/web-infra-dev/rspack/issues/4333' diff --git a/webpack-test/configCases/split-chunks/custom-filename-many-custom/test.filter.js b/webpack-test/configCases/split-chunks/custom-filename-many-custom/test.filter.js deleted file mode 100644 index 3be456dcd23..00000000000 --- a/webpack-test/configCases/split-chunks/custom-filename-many-custom/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => {return false} \ No newline at end of file diff --git a/webpack-test/configCases/split-chunks/custom-filename/test.filter.js b/webpack-test/configCases/split-chunks/custom-filename/test.filter.js deleted file mode 100644 index 3be456dcd23..00000000000 --- a/webpack-test/configCases/split-chunks/custom-filename/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => {return false} \ No newline at end of file diff --git a/webpack-test/configCases/split-chunks/entry-point-error/test.filter.js b/webpack-test/configCases/split-chunks/entry-point-error/test.filter.js index 3be456dcd23..ff25a1bb127 100644 --- a/webpack-test/configCases/split-chunks/entry-point-error/test.filter.js +++ b/webpack-test/configCases/split-chunks/entry-point-error/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'should emit error if entry point and splitted chunk have the same name https://github.com/web-infra-dev/rspack/issues/4332' diff --git a/webpack-test/configCases/split-chunks/incorrect-chunk-reuse/test.filter.js b/webpack-test/configCases/split-chunks/incorrect-chunk-reuse/test.filter.js deleted file mode 100644 index 3be456dcd23..00000000000 --- a/webpack-test/configCases/split-chunks/incorrect-chunk-reuse/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => {return false} \ No newline at end of file diff --git a/webpack-test/configCases/split-chunks/issue-11337/test.filter.js b/webpack-test/configCases/split-chunks/issue-11337/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/issue-11337/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/issue-11513/test.filter.js b/webpack-test/configCases/split-chunks/issue-11513/test.filter.js index 3be456dcd23..aa31a1f5fcf 100644 --- a/webpack-test/configCases/split-chunks/issue-11513/test.filter.js +++ b/webpack-test/configCases/split-chunks/issue-11513/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'should support object type minSize https://github.com/web-infra-dev/rspack/issues/4331' diff --git a/webpack-test/configCases/split-chunks/issue-12307/test.filter.js b/webpack-test/configCases/split-chunks/issue-12307/test.filter.js deleted file mode 100644 index 3be456dcd23..00000000000 --- a/webpack-test/configCases/split-chunks/issue-12307/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => {return false} \ No newline at end of file diff --git a/webpack-test/configCases/split-chunks/issue-8908/test.filter.js b/webpack-test/configCases/split-chunks/issue-8908/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/issue-8908/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/issue-9491/test.filter.js b/webpack-test/configCases/split-chunks/issue-9491/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/issue-9491/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/max-size-casing/test.filter.js b/webpack-test/configCases/split-chunks/max-size-casing/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/max-size-casing/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/module-type-filter/test.filter.js b/webpack-test/configCases/split-chunks/module-type-filter/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/module-type-filter/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/move-to-entrypoint/test.filter.js b/webpack-test/configCases/split-chunks/move-to-entrypoint/test.filter.js index 98e4afe7608..cefa7983961 100644 --- a/webpack-test/configCases/split-chunks/move-to-entrypoint/test.filter.js +++ b/webpack-test/configCases/split-chunks/move-to-entrypoint/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} +module.exports = () => 'jest node env blocks' diff --git a/webpack-test/configCases/split-chunks/no-options/test.filter.js b/webpack-test/configCases/split-chunks/no-options/test.filter.js index 3be456dcd23..80e1f75f735 100644 --- a/webpack-test/configCases/split-chunks/no-options/test.filter.js +++ b/webpack-test/configCases/split-chunks/no-options/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => 'no js splitChunks plugin' diff --git a/webpack-test/configCases/split-chunks/reuse-chunk-name/test.filter.js b/webpack-test/configCases/split-chunks/reuse-chunk-name/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/reuse-chunk-name/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/runtime-chunk-async-node/test.filter.js b/webpack-test/configCases/split-chunks/runtime-chunk-async-node/test.filter.js index 3be456dcd23..a46ab65a0bf 100644 --- a/webpack-test/configCases/split-chunks/runtime-chunk-async-node/test.filter.js +++ b/webpack-test/configCases/split-chunks/runtime-chunk-async-node/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => "hang by unknown reasons https://github.com/web-infra-dev/rspack/issues/4342" diff --git a/webpack-test/configCases/split-chunks/runtime-chunk-no-async/test.filter.js b/webpack-test/configCases/split-chunks/runtime-chunk-no-async/test.filter.js deleted file mode 100644 index 868b3d66233..00000000000 --- a/webpack-test/configCases/split-chunks/runtime-chunk-no-async/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => true diff --git a/webpack-test/configCases/split-chunks/runtime-chunk-node-13130/test.filter.js b/webpack-test/configCases/split-chunks/runtime-chunk-node-13130/test.filter.js index 3be456dcd23..a46ab65a0bf 100644 --- a/webpack-test/configCases/split-chunks/runtime-chunk-node-13130/test.filter.js +++ b/webpack-test/configCases/split-chunks/runtime-chunk-node-13130/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => "hang by unknown reasons https://github.com/web-infra-dev/rspack/issues/4342" diff --git a/webpack-test/configCases/split-chunks/runtime-chunk-node/test.filter.js b/webpack-test/configCases/split-chunks/runtime-chunk-node/test.filter.js index 3be456dcd23..a46ab65a0bf 100644 --- a/webpack-test/configCases/split-chunks/runtime-chunk-node/test.filter.js +++ b/webpack-test/configCases/split-chunks/runtime-chunk-node/test.filter.js @@ -1 +1 @@ -module.exports = () => {return false} \ No newline at end of file +module.exports = () => "hang by unknown reasons https://github.com/web-infra-dev/rspack/issues/4342" diff --git a/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js b/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js index 3be456dcd23..68626d2d37d 100644 --- a/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js +++ b/webpack-test/configCases/split-chunks/runtime-chunk/test.filter.js @@ -1 +1,3 @@ -module.exports = () => {return false} \ No newline at end of file +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'] diff --git a/webpack-test/configCases/split-chunks/vendor-only-entrypoint/node_modules/vendor.js b/webpack-test/configCases/split-chunks/vendor-only-entrypoint/node_modules/vendor.js new file mode 100644 index 00000000000..2c919ad5ce7 --- /dev/null +++ b/webpack-test/configCases/split-chunks/vendor-only-entrypoint/node_modules/vendor.js @@ -0,0 +1,3 @@ +it("should create only a single chunk", () => { + expect(__STATS__.chunks.length).toBe(2); +}) diff --git a/webpack-test/configCases/split-chunks/vendor-only-entrypoint/test.filter.js b/webpack-test/configCases/split-chunks/vendor-only-entrypoint/test.filter.js deleted file mode 100644 index 3be456dcd23..00000000000 --- a/webpack-test/configCases/split-chunks/vendor-only-entrypoint/test.filter.js +++ /dev/null @@ -1 +0,0 @@ -module.exports = () => {return false} \ No newline at end of file