From d8690f3d4b3a2a1c8cc15dfb49ef21ecbfad3bc6 Mon Sep 17 00:00:00 2001 From: Alexander Akait <4567934+alexander-akait@users.noreply.github.com> Date: Wed, 16 Jul 2025 17:29:28 +0300 Subject: [PATCH] chore: resolve "use strict" TODO (#19705) --- .editorconfig | 12 ++++++------ eslint.config.mjs | 3 --- test/BinaryMiddleware.unittest.js | 2 ++ test/Cli.basictest.js | 2 ++ test/ConfigCacheTestCases.longtest.js | 2 ++ test/ConfigTestCases.basictest.js | 2 ++ test/Defaults.unittest.js | 2 ++ test/HotTestCasesAsyncNode.test.js | 2 ++ test/HotTestCasesNode.test.js | 2 ++ test/HotTestCasesWeb.test.js | 2 ++ test/HotTestCasesWebWorker.test.js | 2 ++ test/LazySet.unittest.js | 2 ++ test/PersistentCaching.test.js | 2 ++ test/Queue.unittest.js | 2 ++ test/TestCasesAllCombined.longtest.js | 2 ++ test/TestCasesCachePack.longtest.js | 2 ++ test/TestCasesDevelopment.test.js | 2 ++ test/TestCasesDevtoolCheapSourceMap.test.js | 2 ++ test/TestCasesDevtoolEval.test.js | 2 ++ .../TestCasesDevtoolEvalCheapModuleSourceMap.test.js | 2 ++ test/TestCasesDevtoolEvalCheapSourceMap.test.js | 2 ++ ...estCasesDevtoolEvalDeterministicModuleIds.test.js | 2 ++ test/TestCasesDevtoolEvalNamedModules.test.js | 2 ++ test/TestCasesDevtoolEvalSourceMap.test.js | 2 ++ test/TestCasesDevtoolInlineCheapSourceMap.test.js | 2 ++ test/TestCasesDevtoolInlineSourceMap.longtest.js | 2 ++ test/TestCasesDevtoolSourceMap.longtest.js | 2 ++ test/TestCasesHot.test.js | 2 ++ test/TestCasesMinimizedSourceMap.longtest.js | 2 ++ test/TestCasesModule.test.js | 2 ++ test/TestCasesNormal.basictest.js | 2 ++ test/TestCasesProdGlobalUsed.test.js | 2 ++ test/TestCasesProduction.longtest.js | 2 ++ test/URLAbsoluteSpecifier.unittest.js | 2 ++ test/WasmHashes.unittest.js | 2 ++ test/WatchCacheUnaffectedTestCases.longtest.js | 2 ++ test/WatchTestCases.longtest.js | 2 ++ .../cache-filesystem/webpack.config.js | 2 ++ .../context-commonjs/webpack.config.js | 2 ++ test/benchmarkCases/context-esm/webpack.config.js | 2 ++ .../devtool-eval-source-map/webpack.config.js | 2 ++ test/benchmarkCases/devtool-eval/webpack.config.js | 2 ++ .../devtool-source-map/webpack.config.js | 2 ++ .../benchmarkCases/future-defaults/webpack.config.js | 2 ++ test/benchmarkCases/lodash/webpack.config.js | 2 ++ .../many-chunks-commonjs/webpack.config.js | 2 ++ .../benchmarkCases/many-chunks-esm/webpack.config.js | 2 ++ .../many-modules-commonjs/webpack.config.js | 2 ++ .../many-modules-esm/webpack.config.js | 2 ++ test/benchmarkCases/minimal/webpack.config.js | 2 ++ test/benchmarkCases/react/webpack.config.js | 2 ++ test/benchmarkCases/three-long/webpack.config.js | 2 ++ .../typescript-long-on-schedule/webpack.config.js | 2 ++ .../async-modules/micro-ticks-parents/test.filter.js | 2 ++ .../chunks/destructuring-assignment/test.filter.js | 2 ++ .../chunks/destructuring-assignment/warnings.js | 2 ++ test/cases/chunks/runtime/test.filter.js | 2 ++ test/cases/chunks/runtime/webpack.config.js | 2 ++ test/cases/chunks/weird-reference-to-entry/errors.js | 2 ++ .../cjs-interop/non-existing-export/warnings.js | 2 ++ test/cases/cjs-tree-shaking/mutate/warnings.js | 2 ++ test/cases/compile/error-hide-stack/errors.js | 2 ++ .../compile/error-hide-stack/infrastructure-log.js | 2 ++ test/cases/context/issue-5750/warnings.js | 2 ++ test/cases/errors/case-sensitive/test.filter.js | 2 ++ test/cases/errors/case-sensitive/warnings.js | 2 ++ test/cases/errors/crash-missing-import/errors.js | 2 ++ test/cases/errors/harmony-import-missing/errors.js | 2 ++ test/cases/errors/harmony-import-missing2/errors.js | 2 ++ test/cases/errors/load-module-error/errors.js | 2 ++ .../errors/load-module-error/infrastructure-log.js | 2 ++ test/cases/errors/loader-error-warning/errors.js | 2 ++ test/cases/errors/loader-error-warning/warnings.js | 2 ++ test/cases/errors/mjs-non-fully-specified/errors.js | 2 ++ test/cases/errors/module-request/errors.js | 2 ++ test/cases/esm/import-meta/test.filter.js | 2 ++ test/cases/esm/import-meta/warnings.js | 2 ++ .../inner-graph/class-dynamic-props/test.filter.js | 2 ++ test/cases/inner-graph/extend-class/test.filter.js | 2 ++ test/cases/inner-graph/extend-class2/test.filter.js | 2 ++ .../cases/json/import-assertions-type-json/errors.js | 2 ++ .../infrastructure-log.js | 2 ++ .../import-by-name-with-concatenation/warnings.js | 2 ++ test/cases/json/import-by-name/warnings.js | 2 ++ test/cases/json/import-with-type-json/errors.js | 2 ++ .../json/import-with-type-json/infrastructure-log.js | 2 ++ test/cases/json/reexport/warnings.js | 2 ++ test/cases/large/big-assets/test.config.js | 2 ++ test/cases/large/big-assets/test.filter.js | 2 ++ test/cases/large/many-replacements/test.config.js | 2 ++ test/cases/large/many-replacements/test.filter.js | 2 ++ test/cases/loaders/_esm-loader-type/test.filter.js | 2 ++ test/cases/loaders/context/test.filter.js | 2 ++ test/cases/loaders/emit-file/test.filter.js | 2 ++ test/cases/loaders/import-module/test.filter.js | 2 ++ test/cases/loaders/no-string/errors.js | 2 ++ test/cases/loaders/no-string/infrastructure-log.js | 2 ++ test/cases/loaders/pug-loader/test.filter.js | 2 ++ test/cases/mjs/non-enumerable/errors.js | 2 ++ test/cases/mjs/non-enumerable/warnings.js | 2 ++ .../side-effects-all-chain-unused/test.filter.js | 2 ++ .../optimize/side-effects-all-used/test.filter.js | 2 ++ .../side-effects-immediate-unused/test.filter.js | 2 ++ .../test.filter.js | 2 ++ .../optimize/side-effects-root-unused/test.filter.js | 2 ++ .../side-effects-simple-unused/test.filter.js | 2 ++ .../side-effects-transitive-unused/test.filter.js | 2 ++ test/cases/parsing/asi/warnings.js | 2 ++ test/cases/parsing/chunks/test.filter.js | 2 ++ test/cases/parsing/class-properties/test.filter.js | 2 ++ test/cases/parsing/class/test.filter.js | 2 ++ test/cases/parsing/complex-require/test.filter.js | 2 ++ test/cases/parsing/context/errors.js | 2 ++ test/cases/parsing/context/infrastructure-log.js | 2 ++ test/cases/parsing/context/warnings.js | 2 ++ test/cases/parsing/es2020/test.filter.js | 2 ++ test/cases/parsing/es2022/test.filter.js | 2 ++ test/cases/parsing/es6.nominimize/test.filter.js | 2 ++ test/cases/parsing/evaluate-nullish/test.filter.js | 2 ++ .../parsing/extract-amd.nominimize/test.filter.js | 2 ++ .../cases/parsing/extract-amd.nominimize/warnings.js | 2 ++ test/cases/parsing/extract-amd/warnings.js | 2 ++ test/cases/parsing/extract-require/errors.js | 2 ++ .../harmony-destructuring-assignment/test.filter.js | 2 ++ .../parsing/harmony-duplicate-export/warnings.js | 2 ++ .../parsing/harmony-export-precedence/warnings.js | 2 ++ test/cases/parsing/harmony-info/warnings.js | 2 ++ test/cases/parsing/harmony-star-conflict/warnings.js | 2 ++ test/cases/parsing/harmony-tdz/test.filter.js | 2 ++ test/cases/parsing/iife/test.filter.js | 2 ++ test/cases/parsing/issue-16763/test.filter.js | 2 ++ test/cases/parsing/issue-2006/errors.js | 2 ++ test/cases/parsing/issue-2522/test.filter.js | 2 ++ test/cases/parsing/issue-2523/test.filter.js | 2 ++ test/cases/parsing/issue-2600/errors.js | 2 ++ test/cases/parsing/issue-2618/test.filter.js | 2 ++ test/cases/parsing/issue-2622/test.filter.js | 2 ++ test/cases/parsing/issue-2641/errors.js | 2 ++ test/cases/parsing/issue-2895/test.filter.js | 2 ++ test/cases/parsing/issue-3238/test.filter.js | 2 ++ test/cases/parsing/issue-3252/test.filter.js | 2 ++ test/cases/parsing/issue-3273/test.filter.js | 2 ++ test/cases/parsing/issue-4357/test.filter.js | 2 ++ .../parsing/issue-4608-1-non-strict/test.filter.js | 2 ++ test/cases/parsing/issue-4608-2/test.filter.js | 2 ++ test/cases/parsing/issue-4870/test.filter.js | 2 ++ test/cases/parsing/issue-627/warnings.js | 2 ++ test/cases/parsing/issue-7519/test.filter.js | 2 ++ test/cases/parsing/issue-758/errors.js | 2 ++ test/cases/parsing/logical-assignment/test.filter.js | 2 ++ .../missing-export-warning-nested/warnings.js | 2 ++ test/cases/parsing/nullish-coalescing/test.filter.js | 2 ++ .../parsing/optional-catch-binding/test.filter.js | 2 ++ test/cases/parsing/optional-chaining/test.filter.js | 2 ++ test/cases/parsing/spread/test.filter.js | 2 ++ test/cases/parsing/typeof-non-module/test.filter.js | 2 ++ test/cases/parsing/typeof/warnings.js | 2 ++ test/cases/parsing/unsupported-amd/errors.js | 2 ++ test/cases/parsing/using/test.filter.js | 2 ++ test/cases/resolving/browser-field/errors.js | 2 ++ test/cases/resolving/issue-2986/errors.js | 2 ++ test/cases/runtime/error-handling/errors.js | 2 ++ test/cases/runtime/error-handling/warnings.js | 2 ++ .../warnings.js | 2 ++ .../missing-module-exception-require/warnings.js | 2 ++ .../runtime/missing-module-syntax-error/errors.js | 2 ++ .../cases/scope-hoisting/inside-class/test.filter.js | 2 ++ .../scope-hoisting/json-reexport-6700/warnings.js | 2 ++ .../renaming-shorthand-5027/test.filter.js | 2 ++ .../cases/side-effects/dynamic-reexports/warnings.js | 2 ++ test/cases/side-effects/issue-11673/test.filter.js | 2 ++ test/cases/wasm/decoding/test.filter.js | 2 ++ .../cases/wasm/export-imported-global/test.filter.js | 2 ++ .../wasm/finalize-exports-issue-8261/test.filter.js | 2 ++ .../wasm/global-refs-imported-global/test.filter.js | 2 ++ test/cases/wasm/import-wasm-wasm/test.filter.js | 2 ++ .../imported-global-preserve-ordering/test.filter.js | 2 ++ .../imported-global-preserve-type/test.filter.js | 2 ++ test/cases/wasm/imports-circular/test.filter.js | 2 ++ test/cases/wasm/imports-complex-types/test.filter.js | 2 ++ test/cases/wasm/imports-many-direct/test.filter.js | 2 ++ test/cases/wasm/imports-multiple/test.filter.js | 2 ++ test/cases/wasm/imports/test.filter.js | 2 ++ test/cases/wasm/memory/test.filter.js | 2 ++ test/cases/wasm/order/test.filter.js | 2 ++ test/cases/wasm/simple/test.filter.js | 2 ++ test/cases/wasm/table/test.filter.js | 2 ++ test/cases/wasm/two-files-loader/test.filter.js | 2 ++ test/cases/wasm/unused-export/test.filter.js | 2 ++ test/cases/wasm/v128/test.filter.js | 2 ++ .../wasm/wasm-explorer-examples-async/test.filter.js | 2 ++ .../wasm/wasm-explorer-examples-sync/test.filter.js | 2 ++ test/compareStringsNumeric.unittest.js | 2 ++ .../additional-pass/simple/webpack.config.js | 2 ++ test/configCases/amd/disabled/webpack.config.js | 2 ++ .../asset-emitted/normal/webpack.config.js | 2 ++ .../assetModuleFilename/webpack.config.js | 2 ++ .../asset-modules/base-uri/webpack.config.js | 2 ++ .../asset-modules/build-http/webpack.config.js | 2 ++ .../asset-modules/custom-condition/webpack.config.js | 2 ++ .../asset-modules/custom-encoder/webpack.config.js | 2 ++ .../asset-modules/data-url-broken/errors.js | 2 ++ .../data-url-broken/infrastructure-log.js | 2 ++ .../asset-modules/data-url-broken/webpack.config.js | 2 ++ .../asset-modules/data-url-extract/webpack.config.js | 2 ++ .../asset-modules/data-url/webpack.config.js | 2 ++ .../asset-modules/different-query/webpack.config.js | 2 ++ .../configCases/asset-modules/emit/webpack.config.js | 2 ++ .../entry-with-runtimeChunk/test.config.js | 2 ++ .../entry-with-runtimeChunk/webpack.config.js | 2 ++ test/configCases/asset-modules/errored/errors.js | 2 ++ .../asset-modules/errored/infrastructure-log.js | 2 ++ .../configCases/asset-modules/errored/test.config.js | 2 ++ .../asset-modules/errored/webpack.config.js | 2 ++ .../asset-modules/file-loader/webpack.config.js | 2 ++ .../asset-modules/file-url/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../generator-asset-publicPath/webpack.config.js | 2 ++ .../asset-modules/global-options/webpack.config.js | 2 ++ test/configCases/asset-modules/http-url/errors.js | 2 ++ .../asset-modules/http-url/test.config.js | 2 ++ .../asset-modules/http-url/webpack.config.js | 2 ++ .../asset-modules/ignore/webpack.config.js | 2 ++ .../input-data-url-encoding/webpack.config.js | 2 ++ .../asset-modules/input-data-url/webpack.config.js | 2 ++ .../asset-modules/keep-source-maps/webpack.config.js | 2 ++ .../asset-modules/only-entry/test.config.js | 2 ++ .../asset-modules/only-entry/webpack.config.js | 2 ++ .../asset-modules/only-hash-url/webpack.config.js | 2 ++ test/configCases/asset-modules/opus/errors.js | 2 ++ .../configCases/asset-modules/opus/webpack.config.js | 2 ++ .../asset-modules/overridePath/webpack.config.js | 2 ++ .../configCases/asset-modules/path/webpack.config.js | 2 ++ .../asset-modules/publicPath/webpack.config.js | 2 ++ .../query-and-custom-condition/webpack.config.js | 2 ++ .../query-and-custom-encoder/webpack.config.js | 2 ++ .../asset-modules/query/webpack.config.js | 2 ++ .../real-content-hash/webpack.config.js | 2 ++ .../resource-from-data-uri/webpack.config.js | 2 ++ .../rule-generator-outputPath/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../rule-generator-publicPath/webpack.config.js | 2 ++ .../asset-modules/source/webpack.config.js | 2 ++ .../asset-modules/types/webpack.config.js | 2 ++ .../unsafe-cache-13827/webpack.config.js | 2 ++ .../configCases/asset-url/relative/webpack.config.js | 2 ++ .../asset-url/target-node1/webpack.config.js | 2 ++ .../asset-url/target-node2/webpack.config.js | 2 ++ .../asset-url/target-node3/webpack.config.js | 2 ++ .../asset-url/target-web1/webpack.config.js | 2 ++ .../asset-url/target-web2/webpack.config.js | 2 ++ .../asset-url/target-webworker1/test.config.js | 2 ++ .../asset-url/target-webworker1/webpack.config.js | 2 ++ .../asset-url/target-webworker2/webpack.config.js | 2 ++ .../assets/delete-asset/infrastructure-log.js | 2 ++ .../assets/delete-asset/webpack.config.js | 2 ++ .../prevent-related-deletion/webpack.config.js | 2 ++ .../all-selected/webpack.config.js | 2 ++ .../async-commons-chunk/duplicate/webpack.config.js | 2 ++ .../existing-name/webpack.config.js | 2 ++ .../async-commons-chunk/nested/webpack.config.js | 2 ++ .../async-commons-chunk/node/webpack.config.js | 2 ++ .../async-commons-chunk/simple/webpack.config.js | 2 ++ .../async-library/0-create-library/test.config.js | 2 ++ .../async-library/0-create-library/webpack.config.js | 2 ++ .../async-library/1-use-library/webpack.config.js | 2 ++ .../test.filter.js | 2 ++ .../warnings.js | 2 ++ .../webpack.config.js | 2 ++ .../managed-items-unsafe-cache/webpack.config.js | 2 ++ .../managed-items/webpack.config.js | 2 ++ .../multicompiler-mode-cache-3/warnings.js | 2 ++ .../multicompiler-mode-cache-4/warnings.js | 2 ++ .../chunk-graph/issue-15173/test.config.js | 2 ++ .../chunk-graph/issue-15173/webpack.config.js | 2 ++ .../chunk-graph/issue-17989/test.config.js | 2 ++ .../chunk-graph/issue-17989/webpack.config.js | 2 ++ .../chunk-graph/issue-9634/test.config.js | 2 ++ .../chunk-graph/issue-9634/webpack.config.js | 2 ++ .../chunk-graph/rewalk-chunk/test.config.js | 2 ++ .../chunk-graph/rewalk-chunk/webpack.config.js | 2 ++ .../chunk-index/issue-18008/test.config.js | 2 ++ .../chunk-index/issue-18008/webpack.config.js | 2 ++ .../order-multiple-entries/test.config.js | 2 ++ .../order-multiple-entries/webpack.config.js | 2 ++ .../chunk-index/recalc-index/webpack.config.js | 2 ++ test/configCases/clean/dry/webpack.config.js | 2 ++ test/configCases/clean/enabled/webpack.config.js | 2 ++ test/configCases/clean/ignore-fn/webpack.config.js | 2 ++ test/configCases/clean/ignore-hook/webpack.config.js | 2 ++ test/configCases/clean/ignore-rx/webpack.config.js | 2 ++ .../clean/lib-manifest-plugin/webpack.config.js | 2 ++ test/configCases/clean/link/test.filter.js | 2 ++ test/configCases/clean/link/webpack.config.js | 2 ++ .../harmony-pure-default/webpack.config.js | 2 ++ .../import-export-format-2/webpack.config.js | 2 ++ .../import-export-format/webpack.config.js | 2 ++ .../re-export-namespace-concat/test.filter.js | 2 ++ .../re-export-namespace-concat/webpack.config.js | 2 ++ .../re-export-namespace/test.filter.js | 2 ++ .../re-export-namespace/webpack.config.js | 2 ++ .../code-generation/require-context-id/warnings.js | 2 ++ .../require-context-id/webpack.config.js | 2 ++ .../code-generation/use-strict/webpack.config.js | 2 ++ .../compiletime/error-not-found/errors.js | 2 ++ .../compiletime/error-not-found/webpack.config.js | 2 ++ .../compiletime/exports-presence/errors.js | 2 ++ .../compiletime/exports-presence/warnings.js | 2 ++ .../compiletime/exports-presence/webpack.config.js | 2 ++ .../compiletime/warn-not-found/warnings.js | 2 ++ .../webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../import-module/webpack.config.js | 2 ++ .../issue-13022/webpack.config.js | 2 ++ .../load-chunk-function/test.config.js | 2 ++ .../load-chunk-function/webpack.config.js | 2 ++ .../rename-10168/webpack.config.js | 2 ++ .../side-effects/webpack.config.js | 2 ++ .../split-chunk-entry-module/test.config.js | 2 ++ .../split-chunk-entry-module/webpack.config.js | 2 ++ .../container/0-container-full/test.config.js | 2 ++ .../container/0-container-full/webpack.config.js | 2 ++ .../container/0-eager-shared/webpack.config.js | 2 ++ .../0-transitive-overriding/webpack.config.js | 2 ++ .../container/1-container-full/test.config.js | 2 ++ .../container/1-container-full/webpack.config.js | 2 ++ .../1-transitive-overriding/webpack.config.js | 2 ++ .../container/2-container-full/webpack.config.js | 2 ++ .../2-transitive-overriding/webpack.config.js | 2 ++ .../container/3-container-full/warnings.js | 2 ++ .../container/3-container-full/webpack.config.js | 2 ++ test/configCases/container/circular/test.config.js | 2 ++ .../configCases/container/circular/webpack.config.js | 2 ++ .../container-entry-overridables/webpack.config.js | 2 ++ .../container/container-entry/webpack.config.js | 2 ++ .../container-reference-override/test.config.js | 2 ++ .../container-reference-override/webpack.config.js | 2 ++ .../container/container-reference/test.config.js | 2 ++ .../container/container-reference/webpack.config.js | 2 ++ .../container/eager-shared/webpack.config.js | 2 ++ .../container/error-handling/webpack.config.js | 2 ++ .../container/exposed-overridables/webpack.config.js | 2 ++ .../module-federation-with-shareScope/test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../container/module-federation/test.config.js | 2 ++ .../container/module-federation/webpack.config.js | 2 ++ .../container/no-shared/webpack.config.js | 2 ++ .../container/reference-hoisting/test.config.js | 2 ++ .../container/reference-hoisting/webpack.config.js | 2 ++ .../container/track-initial-chunks/test.config.js | 2 ++ .../container/track-initial-chunks/webpack.config.js | 2 ++ test/configCases/contenthash/assets/test.config.js | 2 ++ .../configCases/contenthash/assets/webpack.config.js | 2 ++ .../contenthash/css-generator-options/test.config.js | 2 ++ .../css-generator-options/webpack.config.js | 2 ++ .../contenthash/include-chunk-id/test.config.js | 2 ++ .../contenthash/include-chunk-id/webpack.config.js | 2 ++ .../contenthash/module-ids-size/test.config.js | 2 ++ .../contenthash/module-ids-size/webpack.config.js | 2 ++ test/configCases/contenthash/salt/test.config.js | 2 ++ test/configCases/contenthash/salt/webpack.config.js | 2 ++ .../context-options/webpack.config.js | 2 ++ .../context-modules/exclusion/webpack.config.js | 2 ++ .../replacement-System.import/webpack.config.js | 2 ++ .../context-modules/replacement-a/webpack.config.js | 2 ++ .../context-modules/replacement-b/webpack.config.js | 2 ++ .../context-modules/replacement-c/webpack.config.js | 2 ++ .../context-modules/replacement-d/webpack.config.js | 2 ++ .../context-modules/replacement-e/webpack.config.js | 2 ++ .../context-modules/replacement-f/webpack.config.js | 2 ++ .../crossorigin/set-crossorigin/webpack.config.js | 2 ++ .../css/async-chunk-node/webpack.config.js | 2 ++ .../css/basic-dynamic-only/test.config.js | 2 ++ .../css/basic-dynamic-only/webpack.config.js | 2 ++ .../css/basic-esm-target-node/webpack.config.js | 2 ++ .../css/basic-esm-target-web/test.config.js | 2 ++ .../css/basic-esm-target-web/webpack.config.js | 2 ++ .../css/basic-initial-only/test.config.js | 2 ++ .../css/basic-initial-only/webpack.config.js | 2 ++ test/configCases/css/basic-web-async/test.config.js | 2 ++ .../css/basic-web-async/webpack.config.js | 2 ++ test/configCases/css/basic/test.config.js | 2 ++ test/configCases/css/basic/webpack.config.js | 2 ++ test/configCases/css/build-http/test.config.js | 2 ++ test/configCases/css/build-http/webpack.config.js | 2 ++ .../configCases/css/cjs-module-syntax/test.config.js | 2 ++ .../css/cjs-module-syntax/webpack.config.js | 2 ++ .../configCases/css/conflicting-order/test.config.js | 2 ++ test/configCases/css/conflicting-order/warnings.js | 2 ++ .../css/conflicting-order/webpack.config.js | 2 ++ test/configCases/css/contenthash/test.config.js | 2 ++ test/configCases/css/contenthash/webpack.config.js | 2 ++ test/configCases/css/css-auto/test.config.js | 2 ++ test/configCases/css/css-auto/webpack.config.js | 2 ++ .../css-modules-broken-keyframes/webpack.config.js | 2 ++ test/configCases/css/css-modules-in-node/warnings.js | 2 ++ .../css/css-modules-in-node/webpack.config.js | 2 ++ .../configCases/css/css-modules-no-space/warnings.js | 2 ++ .../css/css-modules-no-space/webpack.config.js | 2 ++ test/configCases/css/css-modules/test.config.js | 2 ++ test/configCases/css/css-modules/warnings.js | 2 ++ test/configCases/css/css-modules/webpack.config.js | 2 ++ .../css/css-order-reexport/webpack.config.js | 2 ++ test/configCases/css/css-order/webpack.config.js | 2 ++ test/configCases/css/css-order2/webpack.config.js | 2 ++ test/configCases/css/css-order3/webpack.config.js | 2 ++ test/configCases/css/css-types/test.config.js | 2 ++ test/configCases/css/css-types/webpack.config.js | 2 ++ .../default-exports-parser-options/webpack.config.js | 2 ++ test/configCases/css/escape-unescape/test.config.js | 2 ++ .../css/escape-unescape/webpack.config.js | 2 ++ .../css/exports-convention/test.config.js | 2 ++ .../css/exports-convention/webpack.config.js | 2 ++ .../css/exports-in-node/webpack.config.js | 2 ++ .../exports-only-generator-options/test.config.js | 2 ++ .../exports-only-generator-options/webpack.config.js | 2 ++ .../css/external-in-node/webpack.config.js | 2 ++ test/configCases/css/external/test.config.js | 2 ++ test/configCases/css/external/webpack.config.js | 2 ++ test/configCases/css/import-at-middle/test.config.js | 2 ++ test/configCases/css/import-at-middle/warnings.js | 2 ++ .../css/import-at-middle/webpack.config.js | 2 ++ .../css/import-different-case/test.config.js | 2 ++ .../css/import-different-case/webpack.config.js | 2 ++ test/configCases/css/import-module/webpack.config.js | 2 ++ test/configCases/css/import/errors.js | 2 ++ test/configCases/css/import/test.config.js | 2 ++ test/configCases/css/import/warnings.js | 2 ++ test/configCases/css/import/webpack.config.js | 2 ++ test/configCases/css/large/webpack.config.js | 2 ++ test/configCases/css/local-ident-name/test.config.js | 2 ++ .../css/local-ident-name/webpack.config.js | 2 ++ .../named-exports-parser-options/webpack.config.js | 2 ++ test/configCases/css/namespace/test.config.js | 2 ++ test/configCases/css/namespace/warnings.js | 2 ++ test/configCases/css/namespace/webpack.config.js | 2 ++ .../css/no-extra-js-exports-output/test.config.js | 2 ++ .../css/no-extra-js-exports-output/webpack.config.js | 2 ++ .../css/no-extra-runtime-in-js/test.config.js | 2 ++ .../css/no-extra-runtime-in-js/webpack.config.js | 2 ++ test/configCases/css/parsing/test.config.js | 2 ++ test/configCases/css/parsing/webpack.config.js | 2 ++ test/configCases/css/pathinfo/test.config.js | 2 ++ test/configCases/css/pathinfo/webpack.config.js | 2 ++ .../css/prefer-relative-css-import/test.config.js | 2 ++ .../css/prefer-relative-css-import/webpack.config.js | 2 ++ test/configCases/css/prefer-relative/test.config.js | 2 ++ .../css/prefer-relative/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../css/prefetch-preload-module/webpack.config.js | 2 ++ test/configCases/css/pseudo-export/webpack.config.js | 2 ++ test/configCases/css/pseudo-import/test.config.js | 2 ++ test/configCases/css/pseudo-import/warnings.js | 2 ++ test/configCases/css/pseudo-import/webpack.config.js | 2 ++ test/configCases/css/pure-css/test.config.js | 2 ++ test/configCases/css/pure-css/webpack.config.js | 2 ++ .../css/runtime-data-webpack/test.config.js | 2 ++ .../css/runtime-data-webpack/webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ test/configCases/css/runtime-issue/test.config.js | 2 ++ test/configCases/css/runtime-issue/webpack.config.js | 2 ++ test/configCases/css/universal/test.config.js | 2 ++ test/configCases/css/universal/test.filter.js | 2 ++ test/configCases/css/universal/webpack.config.js | 2 ++ .../css/url-and-asset-module-filename/test.config.js | 2 ++ .../url-and-asset-module-filename/webpack.config.js | 2 ++ test/configCases/css/url/errors.js | 2 ++ test/configCases/css/url/test.config.js | 2 ++ test/configCases/css/url/webpack.config.js | 2 ++ test/configCases/css/webpack-ignore/test.config.js | 2 ++ test/configCases/css/webpack-ignore/warnings.js | 2 ++ .../configCases/css/webpack-ignore/webpack.config.js | 2 ++ .../debug-hash/webpack.config.js | 2 ++ .../custom-hash-function/xxhash/webpack.config.js | 2 ++ .../custom-modules/json-custom/webpack.config.js | 2 ++ .../custom-source-type/localization/deprecations.js | 2 ++ .../localization/webpack.config.js | 2 ++ .../remove-export-scope-hoisting/webpack.config.js | 2 ++ .../remove-export/webpack.config.js | 2 ++ .../defaulter/immutable-config/webpack.config.js | 2 ++ .../defer-import/async-in-graph/webpack.config.js | 2 ++ .../configCases/defer-import/comment-error/errors.js | 2 ++ .../defer-import/comment-error/webpack.config.js | 2 ++ .../defer-but-sync-order/webpack.config.js | 2 ++ .../defer-runtime-concat-strict/webpack.config.js | 2 ++ .../defer-runtime-concat/webpack.config.js | 2 ++ .../defer-runtime-native-syntax/webpack.config.js | 2 ++ .../defer-runtime-strict/webpack.config.js | 2 ++ .../defer-import/defer-runtime/webpack.config.js | 2 ++ .../defer-then-non-defer/webpack.config.js | 2 ++ .../defer-used-in-async/webpack.config.js | 2 ++ .../harmony-import-mixed/webpack.config.js | 2 ++ test/configCases/delegated-hash/simple/warnings.js | 2 ++ .../delegated-hash/simple/webpack.config.js | 2 ++ test/configCases/delegated/simple/webpack.config.js | 2 ++ .../deprecations/chunk-and-module/deprecations.js | 2 ++ .../deprecations/chunk-and-module/webpack.config.js | 2 ++ .../deprecations/chunk-files/deprecations.js | 2 ++ .../deprecations/chunk-files/webpack.config.js | 2 ++ test/configCases/deprecations/config/deprecations.js | 2 ++ .../deprecations/config/webpack.config.js | 2 ++ .../deprecations/invalid-dependencies/warnings.js | 2 ++ .../invalid-dependencies/webpack.config.js | 2 ++ .../deprecations/non-unique-hash/deprecations.js | 2 ++ .../deprecations/non-unique-hash/webpack.config.js | 2 ++ .../dll-plugin-entry/0-create-dll/test.config.js | 2 ++ .../dll-plugin-entry/0-create-dll/webpack.config.js | 2 ++ .../dll-plugin-entry/1-use-dll/webpack.config.js | 2 ++ .../dll-plugin-entry/2-error-non-entry/errors.js | 2 ++ .../2-error-non-entry/webpack.config.js | 2 ++ .../dll-plugin-format/0-create-dll/test.config.js | 2 ++ .../dll-plugin-format/0-create-dll/webpack.config.js | 2 ++ .../0-create-dll/test.config.js | 2 ++ .../0-create-dll/webpack.config.js | 2 ++ .../1-use-dll/webpack.config.js | 2 ++ .../0-create-dll-with-contenthash/test.config.js | 2 ++ .../0-create-dll-with-contenthash/webpack.config.js | 2 ++ .../dll-plugin/0-create-dll/test.config.js | 2 ++ .../dll-plugin/0-create-dll/webpack.config.js | 2 ++ .../dll-plugin/0-issue-10475/test.config.js | 2 ++ .../dll-plugin/0-issue-10475/webpack.config.js | 2 ++ .../dll-plugin/1-issue-10475/webpack.config.js | 2 ++ .../dll-plugin/1-use-dll/webpack.config.js | 2 ++ .../2-use-dll-without-scope/webpack.config.js | 2 ++ .../dll-plugin/3-use-dll-with-hashid/warnings.js | 2 ++ .../3-use-dll-with-hashid/webpack.config.js | 2 ++ .../4-use-dll-with-contenthash/webpack.config.js | 2 ++ test/configCases/dll-plugin/5-issue-18200/errors.js | 2 ++ .../dll-plugin/5-issue-18200/webpack.config.js | 2 ++ test/configCases/ecmaVersion/2015/webpack.config.js | 2 ++ test/configCases/ecmaVersion/2020/webpack.config.js | 2 ++ test/configCases/ecmaVersion/5/webpack.config.js | 2 ++ .../browserslist-config-env/webpack.config.js | 2 ++ .../browserslist-config/webpack.config.js | 2 ++ .../ecmaVersion/browserslist-missing/errors.js | 2 ++ .../ecmaVersion/browserslist-missing/test.filter.js | 2 ++ .../browserslist-missing/webpack.config.js | 2 ++ .../ecmaVersion/browserslist-query/webpack.config.js | 2 ++ .../ecmaVersion/browserslist/webpack.config.js | 2 ++ .../configCases/ecmaVersion/custom/webpack.config.js | 2 ++ .../ecmaVersion/loader-context/webpack.config.js | 2 ++ .../emit-asset/different-source/errors.js | 2 ++ .../emit-asset/different-source/webpack.config.js | 2 ++ .../emit-asset/equal-source/webpack.config.js | 2 ++ .../adding-multiple-entry-points/test.config.js | 2 ++ .../adding-multiple-entry-points/webpack.config.js | 2 ++ .../entry/depend-on-advanced/test.config.js | 2 ++ .../entry/depend-on-advanced/webpack.config.js | 2 ++ test/configCases/entry/depend-on-bug/test.config.js | 2 ++ .../entry/depend-on-bug/webpack.config.js | 2 ++ .../entry/depend-on-non-js/test.config.js | 2 ++ .../entry/depend-on-non-js/webpack.config.js | 2 ++ .../entry/depend-on-simple/test.config.js | 2 ++ .../entry/depend-on-simple/webpack.config.js | 2 ++ test/configCases/entry/descriptor/test.config.js | 2 ++ test/configCases/entry/descriptor/webpack.config.js | 2 ++ .../entry/entry-base-uri/webpack.config.js | 2 ++ .../entry/function-promise/test.config.js | 2 ++ .../entry/function-promise/webpack.config.js | 2 ++ test/configCases/entry/function/test.config.js | 2 ++ test/configCases/entry/function/webpack.config.js | 2 ++ test/configCases/entry/issue-1068/webpack.config.js | 2 ++ test/configCases/entry/issue-12562/test.config.js | 2 ++ test/configCases/entry/issue-12562/webpack.config.js | 2 ++ test/configCases/entry/issue-13637/test.config.js | 2 ++ test/configCases/entry/issue-13637/webpack.config.js | 2 ++ test/configCases/entry/issue-8110/webpack.config.js | 2 ++ test/configCases/entry/no-chunking/test.config.js | 2 ++ test/configCases/entry/no-chunking/webpack.config.js | 2 ++ .../entry/require-entry-point/webpack.config.js | 2 ++ .../entry/single-entry-point/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ test/configCases/entry/weird-names/test.config.js | 2 ++ test/configCases/entry/weird-names/webpack.config.js | 2 ++ test/configCases/entry/weird-names2/test.config.js | 2 ++ .../configCases/entry/weird-names2/webpack.config.js | 2 ++ .../errors/asset-options-validation/errors.js | 2 ++ .../asset-options-validation/webpack.config.js | 2 ++ test/configCases/errors/case-emit/errors.js | 2 ++ test/configCases/errors/case-emit/webpack.config.js | 2 ++ .../errors/depend-on-and-runtime/errors.js | 2 ++ .../errors/depend-on-and-runtime/webpack.config.js | 2 ++ test/configCases/errors/depend-on-error/errors.js | 2 ++ .../errors/depend-on-error/webpack.config.js | 2 ++ test/configCases/errors/entry-not-found/errors.js | 2 ++ .../errors/entry-not-found/webpack.config.js | 2 ++ .../errors/exception-in-chunk-renderer/errors.js | 2 ++ .../exception-in-chunk-renderer/webpack.config.js | 2 ++ .../errors/generator-generate-error/errors.js | 2 ++ .../generator-generate-error/infrastructure-log.js | 2 ++ .../errors/generator-generate-error/test.config.js | 2 ++ .../errors/generator-generate-error/test.filter.js | 2 ++ .../generator-generate-error/webpack.config.js | 2 ++ test/configCases/errors/import-missing/errors.js | 2 ++ .../errors/import-missing/webpack.config.js | 2 ++ .../errors/multi-entry-missing-module/test.config.js | 2 ++ .../multi-entry-missing-module/webpack.config.js | 2 ++ .../errors/self-reexport/webpack.config.js | 2 ++ .../externals/async-externals/webpack.config.js | 2 ++ .../externals/concatenated-module/test.filter.js | 2 ++ .../externals/concatenated-module/webpack.config.js | 2 ++ .../externals/concatenated/webpack.config.js | 2 ++ .../externals/export-fn-cjs/webpack.config.js | 2 ++ .../externals/export-fn-esm/webpack.config.js | 2 ++ .../externals/externals-array/webpack.config.js | 2 ++ .../externals/externals-in-chunk/webpack.config.js | 2 ++ .../externals-in-commons-chunk/test.config.js | 2 ++ .../externals-in-commons-chunk/webpack.config.js | 2 ++ .../externals/externals-system-custom/test.config.js | 2 ++ .../externals-system-custom/webpack.config.js | 2 ++ .../externals/externals-system/test.config.js | 2 ++ .../externals/externals-system/webpack.config.js | 2 ++ test/configCases/externals/global/webpack.config.js | 2 ++ test/configCases/externals/harmony/webpack.config.js | 2 ++ .../externals/import-assertion/test.filter.js | 2 ++ .../externals/import-assertion/webpack.config.js | 2 ++ .../externals/import-attributes/test.filter.js | 2 ++ .../externals/import-attributes/webpack.config.js | 2 ++ .../externals/module-import/test.config.js | 2 ++ .../externals/module-import/webpack.config.js | 2 ++ .../externals/node-require/webpack.config.js | 2 ++ .../externals/non-amd-externals-amd/test.config.js | 2 ++ .../non-amd-externals-amd/webpack.config.js | 2 ++ .../externals/non-umd-externals-umd/test.config.js | 2 ++ .../non-umd-externals-umd/webpack.config.js | 2 ++ .../externals/non-umd-externals-umd2/test.config.js | 2 ++ .../non-umd-externals-umd2/webpack.config.js | 2 ++ .../optional-externals-cjs/webpack.config.js | 2 ++ .../optional-externals-root/webpack.config.js | 2 ++ .../optional-externals-umd/webpack.config.js | 2 ++ .../optional-externals-umd2-mixed/webpack.config.js | 2 ++ .../optional-externals-umd2/webpack.config.js | 2 ++ .../prefer-provided-over-built-in/webpack.config.js | 2 ++ .../externals/resolve-callback/webpack.config.js | 2 ++ test/configCases/externals/resolve/webpack.config.js | 2 ++ test/configCases/externals/this/webpack.config.js | 2 ++ .../filename-function/test.config.js | 2 ++ .../filename-function/webpack.config.js | 2 ++ .../module-filename-template/webpack.config.js | 2 ++ .../script-src-filename/webpack.config.js | 2 ++ .../split-chunks-filename/webpack.config.js | 2 ++ .../finish-modules/simple/webpack.config.js | 2 ++ .../graph/conditional-ensure/webpack.config.js | 2 ++ .../graph/conditional-reexport/test.config.js | 2 ++ .../graph/conditional-reexport/webpack.config.js | 2 ++ test/configCases/graph/issue-11770/test.config.js | 2 ++ test/configCases/graph/issue-11770/webpack.config.js | 2 ++ test/configCases/graph/issue-11856.2/test.config.js | 2 ++ .../graph/issue-11856.2/webpack.config.js | 2 ++ test/configCases/graph/issue-11856/test.config.js | 2 ++ test/configCases/graph/issue-11856/webpack.config.js | 2 ++ test/configCases/graph/issue-11863/test.config.js | 2 ++ test/configCases/graph/issue-11863/webpack.config.js | 2 ++ .../deterministic-module-ids/webpack.config.js | 2 ++ .../hash-length/hashed-module-ids/webpack.config.js | 2 ++ .../hash-length/output-filename/test.config.js | 2 ++ .../hash-length/output-filename/webpack.config.js | 2 ++ .../inner-graph/altaskitButton/webpack.config.js | 2 ++ test/configCases/inner-graph/basic/webpack.config.js | 2 ++ .../inner-graph/blockScopes/webpack.config.js | 2 ++ test/configCases/inner-graph/class/test.filter.js | 2 ++ test/configCases/inner-graph/class/webpack.config.js | 2 ++ test/configCases/inner-graph/const/webpack.config.js | 2 ++ .../inner-graph/defaultArrow/webpack.config.js | 2 ++ .../inner-graph/defaultClass/webpack.config.js | 2 ++ .../inner-graph/defaultExpression/webpack.config.js | 2 ++ .../inner-graph/defaultFunction/webpack.config.js | 2 ++ .../defaultFunctionExpression/webpack.config.js | 2 ++ .../inner-graph/defaultId/webpack.config.js | 2 ++ .../defaultNamedFunction/webpack.config.js | 2 ++ .../defaultNamedFunctionExpression/webpack.config.js | 2 ++ .../inner-graph/eval-bailout/webpack.config.js | 2 ++ .../configCases/inner-graph/export/webpack.config.js | 2 ++ .../inner-graph/importAll/webpack.config.js | 2 ++ .../inner-graph/issue-11678/webpack.config.js | 2 ++ .../inner-graph/issue-12669-mini/webpack.config.js | 2 ++ .../inner-graph/issue-12669/webpack.config.js | 2 ++ .../inner-graph/issue-17565/test.filter.js | 2 ++ .../inner-graph/issue-17565/webpack.config.js | 2 ++ .../inner-graph/localReference/webpack.config.js | 2 ++ .../configCases/inner-graph/nested/webpack.config.js | 2 ++ test/configCases/inner-graph/pr-18342/test.config.js | 2 ++ .../inner-graph/pr-18342/webpack.config.js | 2 ++ test/configCases/inner-graph/pure/webpack.config.js | 2 ++ .../inner-graph/ramdaIdentical/webpack.config.js | 2 ++ .../inner-graph/specifier/webpack.config.js | 2 ++ .../inner-graph/varNotWritten/webpack.config.js | 2 ++ .../inner-graph/varWritten/webpack.config.js | 2 ++ test/configCases/issues/issue-12993/test.config.js | 2 ++ .../configCases/issues/issue-12993/webpack.config.js | 2 ++ test/configCases/issues/issue-14974/test.filter.js | 2 ++ .../configCases/issues/issue-14974/webpack.config.js | 2 ++ .../configCases/issues/issue-17459/webpack.config.js | 2 ++ test/configCases/issues/issue-3596/webpack.config.js | 2 ++ test/configCases/issues/issue-7563/test.config.js | 2 ++ .../bailout-flag-dep-export-perf/webpack.config.js | 2 ++ .../json/flag-dep-export-perf/webpack.config.js | 2 ++ .../generator-json-parse-false/webpack.config.js | 2 ++ .../json/generator-json-parse-true/webpack.config.js | 2 ++ test/configCases/json/only-null/webpack.config.js | 2 ++ test/configCases/json/only-string/webpack.config.js | 2 ++ test/configCases/json/proto/webpack.config.js | 2 ++ .../json/top-level-json-parser/webpack.config.js | 2 ++ .../json/tree-shaking-default/warnings.js | 2 ++ .../json/tree-shaking-default/webpack.config.js | 2 ++ .../configCases/layer/context-and-css/test.config.js | 2 ++ .../layer/context-and-css/webpack.config.js | 2 ++ test/configCases/layer/context/test.config.js | 2 ++ test/configCases/layer/context/webpack.config.js | 2 ++ .../layer/define-multiple-entries/test.config.js | 2 ++ .../layer/define-multiple-entries/webpack.config.js | 2 ++ .../layer/define-single-entry/test.config.js | 2 ++ .../layer/define-single-entry/webpack.config.js | 2 ++ test/configCases/layer/rules/webpack.config.js | 2 ++ .../library/0-create-library/test.config.js | 2 ++ .../library/0-create-library/webpack.config.js | 2 ++ .../configCases/library/1-use-library/test.config.js | 2 ++ .../library/1-use-library/webpack.config.js | 2 ++ test/configCases/library/a/webpack.config.js | 2 ++ .../library/array-global/webpack.config.js | 2 ++ .../library/array-window/webpack.config.js | 2 ++ .../library/assign-properties/webpack.config.js | 2 ++ test/configCases/library/b/webpack.config.js | 2 ++ .../configCases/library/cjs-static/webpack.config.js | 2 ++ .../library/disable-provided-export/test.filter.js | 2 ++ .../disable-provided-export/webpack.config.js | 2 ++ test/configCases/library/invalid-name/errors.js | 2 ++ .../library/invalid-name/webpack.config.js | 2 ++ .../library/issue-18932/webpack.config.js | 2 ++ test/configCases/library/issue-18951/test.config.js | 2 ++ .../library/issue-18951/webpack.config.js | 2 ++ .../library/issue-19664/webpack.config.js | 2 ++ .../module-and-child-compilation/webpack.config.js | 2 ++ .../library/module-reexport-external/test.config.js | 2 ++ .../module-reexport-external/webpack.config.js | 2 ++ .../library/module-reexport-type/test.filter.js | 2 ++ .../library/module-reexport-type/webpack.config.js | 2 ++ .../module-terminal-binding/webpack.config.js | 2 ++ .../library/type-assign-properties/test.config.js | 2 ++ .../library/type-assign-properties/webpack.config.js | 2 ++ .../library/type-assign-runtime-chunk/test.config.js | 2 ++ .../type-assign-runtime-chunk/webpack.config.js | 2 ++ test/configCases/library/type-assign/test.config.js | 2 ++ .../library/type-assign/webpack.config.js | 2 ++ test/configCases/library/umd-array/webpack.config.js | 2 ++ test/configCases/library/umd/webpack.config.js | 2 ++ .../loader-import-module/css/webpack.config.js | 2 ++ .../basic/webpack.config.js | 2 ++ .../loaders/#-issue-14755-#/webpack.config.js | 2 ++ .../loaders/async-loader/webpack.config.js | 2 ++ .../loaders/generate-ident/webpack.config.js | 2 ++ .../loaders/hash-in-context/webpack.config.js | 2 ++ .../loaders/hot-in-context/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../import-attributes-and-reexport/webpack.config.js | 2 ++ test/configCases/loaders/issue-3320/deprecations.js | 2 ++ .../configCases/loaders/issue-3320/webpack.config.js | 2 ++ .../configCases/loaders/issue-9053/webpack.config.js | 2 ++ .../loaders/mode-default/webpack.config.js | 2 ++ .../loaders/mode-development/webpack.config.js | 2 ++ test/configCases/loaders/mode-none/webpack.config.js | 2 ++ .../loaders/mode-production/webpack.config.js | 2 ++ test/configCases/loaders/options/deprecations.js | 2 ++ test/configCases/loaders/options/errors.js | 2 ++ .../loaders/options/infrastructure-log.js | 2 ++ test/configCases/loaders/options/webpack.config.js | 2 ++ test/configCases/loaders/pr-14384/webpack.config.js | 2 ++ .../loaders/pre-post-loader/webpack.config.js | 2 ++ .../loaders/remaining-request/webpack.config.js | 2 ++ .../managedPaths/futureDefaults/webpack.config.js | 2 ++ .../mangle/exports-info-can-mangle/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../mangle/mangle-with-object-prop/test.config.js | 2 ++ .../mangle/mangle-with-object-prop/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ test/configCases/module/check-defaults/errors.js | 2 ++ .../configCases/module/check-defaults/test.filter.js | 2 ++ .../module/check-defaults/webpack.config.js | 2 ++ .../module/chunk-format-fallback/test.config.js | 2 ++ .../module/chunk-format-fallback/webpack.config.js | 2 ++ .../module/circular-externals/test.config.js | 2 ++ .../module/circular-externals/webpack.config.js | 2 ++ .../module/duplicate-export/test.config.js | 2 ++ .../module/duplicate-export/webpack.config.js | 2 ++ test/configCases/module/externals/test.config.js | 2 ++ test/configCases/module/externals/webpack.config.js | 2 ++ .../iife-entry-module-with-others/test.config.js | 2 ++ .../iife-entry-module-with-others/webpack.config.js | 2 ++ .../module/iife-innter-strict/test.config.js | 2 ++ .../module/iife-innter-strict/webpack.config.js | 2 ++ .../iife-multiple-entry-modules/test.config.js | 2 ++ .../iife-multiple-entry-modules/webpack.config.js | 2 ++ test/configCases/module/issue-16040/test.config.js | 2 ++ test/configCases/module/issue-16040/test.filter.js | 2 ++ .../configCases/module/issue-16040/webpack.config.js | 2 ++ .../module/issue-17014-split-chunks/test.config.js | 2 ++ .../issue-17014-split-chunks/webpack.config.js | 2 ++ .../module/issue-17014-webworker/test.config.js | 2 ++ .../module/issue-17014-webworker/test.filter.js | 2 ++ .../module/issue-17014-webworker/webpack.config.js | 2 ++ test/configCases/module/node-globals/test.config.js | 2 ++ .../module/node-globals/webpack.config.js | 2 ++ .../module/non-webpack-require/test.filter.js | 2 ++ .../module/non-webpack-require/webpack.config.js | 2 ++ test/configCases/module/public-path/test.config.js | 2 ++ .../configCases/module/public-path/webpack.config.js | 2 ++ .../reuse-webpack-esm-library/webpack.config.js | 2 ++ test/configCases/module/runtime-chunk/test.config.js | 2 ++ .../module/runtime-chunk/webpack.config.js | 2 ++ test/configCases/module/simple/webpack.config.js | 2 ++ .../module/split-chunks-issue-19657/test.config.js | 2 ++ .../split-chunks-issue-19657/webpack.config.js | 2 ++ .../split-chunks-without-externals/test.config.js | 2 ++ .../split-chunks-without-externals/webpack.config.js | 2 ++ test/configCases/module/split-chunks/test.config.js | 2 ++ .../module/split-chunks/webpack.config.js | 2 ++ .../no-parse/module.exports/webpack.config.js | 2 ++ .../no-parse/no-parse-function/webpack.config.js | 2 ++ test/configCases/node/node-prefix/webpack.config.js | 2 ++ .../node/prefix-in-runtime/test.filter.js | 2 ++ .../node/prefix-in-runtime/webpack.config.js | 2 ++ .../configCases/optimization/chunk/webpack.config.js | 2 ++ .../optimization/depend-on-runtimes/test.config.js | 2 ++ .../depend-on-runtimes/webpack.config.js | 2 ++ .../optimization/hashed-module-ids/warnings.js | 2 ++ .../optimization/hashed-module-ids/webpack.config.js | 2 ++ .../configCases/optimization/issue-19184/warnings.js | 2 ++ .../optimization/issue-19184/webpack.config.js | 2 ++ .../optimization/minimizer/webpack.config.js | 2 ++ .../optimization/named-modules/webpack.config.js | 2 ++ .../runtime-specific-used-exports/test.config.js | 2 ++ .../runtime-specific-used-exports/webpack.config.js | 2 ++ .../runtime-specific-used-exports2/test.config.js | 2 ++ .../runtime-specific-used-exports2/webpack.config.js | 2 ++ test/configCases/output/charset/test.config.js | 2 ++ test/configCases/output/charset/webpack.config.js | 2 ++ .../chunk-format-with-runtimeChunk/test.config.js | 2 ++ .../chunk-format-with-runtimeChunk/webpack.config.js | 2 ++ test/configCases/output/function/test.config.js | 2 ++ test/configCases/output/function/webpack.config.js | 2 ++ .../output/import-meta-name/test.config.js | 2 ++ .../output/import-meta-name/webpack.config.js | 2 ++ .../output/inner-dirs-entries/test.config.js | 2 ++ .../output/inner-dirs-entries/webpack.config.js | 2 ++ .../output/publicPath-node/webpack.config.js | 2 ++ .../publicPath-scriptType-module/test.config.js | 2 ++ .../publicPath-scriptType-module/webpack.config.js | 2 ++ .../configCases/output/publicPath-web/test.config.js | 2 ++ .../output/publicPath-web/webpack.config.js | 2 ++ test/configCases/output/string/test.config.js | 2 ++ test/configCases/output/string/webpack.config.js | 2 ++ .../output/worker-public-path/test.config.js | 2 ++ .../output/worker-public-path/test.filter.js | 2 ++ .../output/worker-public-path/webpack.config.js | 2 ++ test/configCases/parsing/bom/test.config.js | 2 ++ test/configCases/parsing/bom/webpack.config.js | 2 ++ test/configCases/parsing/context/errors.js | 2 ++ .../parsing/context/infrastructure-log.js | 2 ++ test/configCases/parsing/context/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../parsing/dead-code-elimination/test.config.js | 2 ++ .../parsing/dead-code-elimination/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../destructuring-namespace-import/webpack.config.js | 2 ++ .../parsing/destructuring-rest/webpack.config.js | 2 ++ .../parsing/harmony-global/webpack.config.js | 2 ++ .../parsing/harmony-this-concat/webpack.config.js | 2 ++ .../parsing/harmony-this/webpack.config.js | 2 ++ .../parsing/import-ignore/webpack.config.js | 2 ++ .../parsing/issue-11619/webpack.config.js | 2 ++ .../parsing/issue-14545/webpack.config.js | 2 ++ .../parsing/issue-14720/webpack.config.js | 2 ++ .../parsing/issue-19514/webpack.config.js | 2 ++ test/configCases/parsing/issue-2942/warnings.js | 2 ++ .../configCases/parsing/issue-2942/webpack.config.js | 2 ++ test/configCases/parsing/issue-336/webpack.config.js | 2 ++ .../configCases/parsing/issue-4857/webpack.config.js | 2 ++ .../configCases/parsing/issue-5624/webpack.config.js | 2 ++ .../configCases/parsing/issue-8293/webpack.config.js | 2 ++ test/configCases/parsing/issue-9042/test.config.js | 2 ++ .../configCases/parsing/issue-9042/webpack.config.js | 2 ++ .../configCases/parsing/issue-9156/webpack.config.js | 2 ++ .../parsing/node-source-plugin-off/webpack.config.js | 2 ++ .../parsing/node-stuff-plugin-off/test.config.js | 2 ++ .../parsing/node-stuff-plugin-off/webpack.config.js | 2 ++ .../parsing/optional-chaining/test.filter.js | 2 ++ .../parsing/optional-chaining/webpack.config.js | 2 ++ test/configCases/parsing/optional/warnings.js | 2 ++ test/configCases/parsing/optional/webpack.config.js | 2 ++ .../parsing/override-strict/webpack.config.js | 2 ++ .../parsing/relative-filedirname/webpack.config.js | 2 ++ .../parsing/require-ignore/webpack.config.js | 2 ++ .../parsing/require-resolve-ignore/webpack.config.js | 2 ++ .../parsing/require.main/webpack.config.js | 2 ++ test/configCases/parsing/requirejs/webpack.config.js | 2 ++ test/configCases/parsing/system.import/warnings.js | 2 ++ .../parsing/system.import/webpack.config.js | 2 ++ test/configCases/parsing/url-ignore/warnings.js | 2 ++ .../configCases/parsing/url-ignore/webpack.config.js | 2 ++ .../performance/many-async-imports/test.config.js | 2 ++ .../performance/many-async-imports/webpack.config.js | 2 ++ .../performance/many-exports/test.config.js | 2 ++ .../performance/many-exports/webpack.config.js | 2 ++ .../plugins/banner-plugin-hashing/test.config.js | 2 ++ .../plugins/banner-plugin/webpack.config.js | 2 ++ .../plugins/define-plugin-bigint/webpack.config.js | 2 ++ .../define-plugin-process-env/webpack.config.js | 2 ++ .../plugins/define-plugin-sub-key/webpack.config.js | 2 ++ .../plugins/define-plugin/webpack.config.js | 2 ++ .../configCases/plugins/environment-plugin/errors.js | 2 ++ .../plugins/lib-manifest-plugin/webpack.config.js | 2 ++ .../plugins/limit-chunk-count-plugin/test.config.js | 2 ++ .../limit-chunk-count-plugin/webpack.config.js | 2 ++ .../plugins/loader-options-plugin/webpack.config.js | 2 ++ .../plugins/min-chunk-size/webpack.config.js | 2 ++ .../plugins/mini-css-extract-plugin/test.config.js | 2 ++ .../mini-css-extract-plugin/webpack.config.js | 2 ++ .../plugins/profiling-plugin/deprecations.js | 2 ++ .../plugins/profiling-plugin/test.config.js | 2 ++ .../plugins/profiling-plugin/test.filter.js | 2 ++ .../plugins/profiling-plugin/webpack.config.js | 2 ++ .../plugins/progress-plugin/test.config.js | 2 ++ .../plugins/progress-plugin/webpack.config.js | 2 ++ .../plugins/provide-plugin/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../source-map-dev-tool-plugin/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../plugins/terser-plugin/webpack.config.js | 2 ++ .../plugins/virtual-url-plugin/webpack.config.js | 2 ++ .../process-assets/html-plugin/infrastructure-log.js | 2 ++ .../process-assets/html-plugin/test.config.js | 2 ++ .../process-assets/html-plugin/webpack.config.js | 2 ++ .../process-assets/update-info/webpack.config.js | 2 ++ .../race-conditions/import-module/test.filter.js | 2 ++ .../race-conditions/import-module/webpack.config.js | 2 ++ .../race-conditions/load-module/webpack.config.js | 2 ++ .../rebuild/finishModules/webpack.config.js | 2 ++ .../rebuildWithNewDependencies/webpack.config.js | 2 ++ test/configCases/records/issue-295/webpack.config.js | 2 ++ .../configCases/records/issue-2991/webpack.config.js | 2 ++ .../configCases/records/issue-7339/webpack.config.js | 2 ++ .../configCases/records/issue-7492/webpack.config.js | 2 ++ .../records/stable-sort/webpack.config.js | 2 ++ .../records/with-readRecords-hook/webpack.config.js | 2 ++ test/configCases/require/module-require/warnings.js | 2 ++ .../require/module-require/webpack.config.js | 2 ++ .../resolve-merging/imports-fields/webpack.config.js | 2 ++ .../resolve-merging/override/webpack.config.js | 2 ++ .../context-resolve-with-ignore/webpack.config.js | 2 ++ .../resolve/empty-context-module/webpack.config.js | 2 ++ test/configCases/resolve/fallback/webpack.config.js | 2 ++ .../resolve/function-plugins/webpack.config.js | 2 ++ .../issue-11335-context-module/webpack.config.js | 2 ++ .../resolve/issue-15580/webpack.config.js | 2 ++ .../resolve/multi-alias/webpack.config.js | 2 ++ .../resolve/only-module/webpack.config.js | 2 ++ .../resolve/unsafe-cache-proxy/webpack.config.js | 2 ++ .../resolving/extensions-order/webpack.config.js | 2 ++ .../resolving/prefer-absolute/webpack.config.js | 2 ++ .../resolving/prefer-root/webpack.config.js | 2 ++ test/configCases/rule-set/chaining/deprecations.js | 2 ++ test/configCases/rule-set/chaining/webpack.config.js | 2 ++ test/configCases/rule-set/compiler/webpack.config.js | 2 ++ test/configCases/rule-set/custom/webpack.config.js | 2 ++ test/configCases/rule-set/oneOf/webpack.config.js | 2 ++ test/configCases/rule-set/query/webpack.config.js | 2 ++ .../rule-set/resolve-options/webpack.config.js | 2 ++ .../rule-set/simple-use-array-fn/deprecations.js | 2 ++ .../rule-set/simple-use-array-fn/webpack.config.js | 2 ++ .../rule-set/simple-use-fn-array/deprecations.js | 2 ++ .../rule-set/simple-use-fn-array/webpack.config.js | 2 ++ test/configCases/rule-set/simple/deprecations.js | 2 ++ test/configCases/rule-set/simple/webpack.config.js | 2 ++ .../rule-set/undefined-values/webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../dynamic-with-deep-entries-esm/test.config.js | 2 ++ .../dynamic-with-deep-entries-esm/webpack.config.js | 2 ++ .../runtime/entries-in-runtime/test.config.js | 2 ++ .../runtime/entries-in-runtime/webpack.config.js | 2 ++ .../runtime/invalid-esm-export/webpack.config.js | 2 ++ .../runtime/no-runtime-per-entry/test.config.js | 2 ++ .../runtime/no-runtime-per-entry/webpack.config.js | 2 ++ .../runtime/opt-in-finally/webpack.config.js | 2 ++ .../runtime/opt-in-finally2/webpack.config.js | 2 ++ .../single-with-deep-entries-commonjs/test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../single-with-deep-entries-esm/test.config.js | 2 ++ .../single-with-deep-entries-esm/webpack.config.js | 2 ++ .../target-webworker-with-dynamic/test.config.js | 2 ++ .../target-webworker-with-dynamic/webpack.config.js | 2 ++ .../runtime/target-webworker/test.config.js | 2 ++ .../runtime/target-webworker/webpack.config.js | 2 ++ .../scope-hoisting/class-naming/webpack.config.js | 2 ++ .../scope-hoisting/create-dll-plugin/test.config.js | 2 ++ .../create-dll-plugin/webpack.config.js | 2 ++ .../scope-hoisting/dll-plugin/webpack.config.js | 2 ++ .../scope-hoisting/esModule/webpack.config.js | 2 ++ .../scope-hoisting/export-global/webpack.config.js | 2 ++ .../harmony-pure-default/webpack.config.js | 2 ++ .../scope-hoisting/issue-11897/webpack.config.js | 2 ++ .../scope-hoisting/named-modules/webpack.config.js | 2 ++ .../strictThisContextOnImports/webpack.config.js | 2 ++ .../sharing/consume-module-ignore-warnings/errors.js | 2 ++ .../consume-module-ignore-warnings/webpack.config.js | 2 ++ test/configCases/sharing/consume-module/errors.js | 2 ++ .../sharing/consume-module/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../consume-multiple-versions/webpack.config.js | 2 ++ .../sharing/consume-self-reference/webpack.config.js | 2 ++ .../sharing/no-override-loaded/webpack.config.js | 2 ++ .../sharing/provide-eager-module/webpack.config.js | 2 ++ .../sharing/provide-module/webpack.config.js | 2 ++ .../provide-multiple-versions/webpack.config.js | 2 ++ .../provide-shared-with-runtime-chunk/test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../share-multiple-versions/webpack.config.js | 2 ++ .../sharing/share-plugin-dual-mode/webpack.config.js | 2 ++ .../sharing/share-plugin-monorepo/webpack.config.js | 2 ++ .../sharing/share-plugin/webpack.config.js | 2 ++ .../side-effects/issue-13063/test.config.js | 2 ++ .../side-effects/issue-13063/webpack.config.js | 2 ++ .../side-effects-override/webpack.config.js | 2 ++ .../side-effects-unsorted-modules/webpack.config.js | 2 ++ .../side-effects-values/webpack.config.js | 2 ++ .../side-effects/type-reexports/webpack.config.js | 2 ++ test/configCases/side-effects/url/webpack.config.js | 2 ++ .../simple/empty-config/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../multi-compiler-functions/webpack.config.js | 2 ++ .../simple/multi-compiler/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../array-as-output-library/webpack.config.js | 2 ++ .../context-module-source-path/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../default-filename-extensions-js/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../devtool-namespace-with-eval/test.config.js | 2 ++ .../devtool-namespace-with-eval/webpack.config.js | 2 ++ .../devtool-namespace-with-source-map/test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../eval-nosources-source-map/test.filter.js | 2 ++ .../eval-nosources-source-map/webpack.config.js | 2 ++ .../eval-source-map-debugids/webpack.config.js | 2 ++ .../source-map/eval-source-map/test.filter.js | 2 ++ .../source-map/eval-source-map/webpack.config.js | 2 ++ .../exclude-chunks-source-map/webpack.config.js | 2 ++ .../exclude-modules-source-map/webpack.config.js | 2 ++ .../harmony-eval-source-map/webpack.config.js | 2 ++ .../source-map/harmony-eval/webpack.config.js | 2 ++ .../loader-source-map-string/webpack.config.js | 2 ++ .../source-map/loader-source-map/webpack.config.js | 2 ++ .../source-map/module-names/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../namespace-source-path.library/webpack.config.js | 2 ++ .../namespace-source-path/webpack.config.js | 2 ++ .../source-map/no-source-map/webpack.config.js | 2 ++ .../source-map/nosources/webpack.config.js | 2 ++ .../object-as-output-library/webpack.config.js | 2 ++ .../relative-source-map-path/webpack.config.js | 2 ++ .../relative-source-maps-by-loader/webpack.config.js | 2 ++ .../source-map/resource-path/webpack.config.js | 2 ++ .../source-map/source-map-debugids/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../source-map-with-profiling-plugin/deprecations.js | 2 ++ .../source-map-with-profiling-plugin/test.filter.js | 2 ++ .../webpack.config.js | 2 ++ .../sources-array-production/webpack.config.js | 2 ++ .../split-chunks-common/correct-order/test.config.js | 2 ++ .../correct-order/webpack.config.js | 2 ++ .../extract-async-from-entry/test.config.js | 2 ++ .../extract-async-from-entry/webpack.config.js | 2 ++ .../split-chunks-common/hot-multi/test.config.js | 2 ++ .../split-chunks-common/hot-multi/webpack.config.js | 2 ++ .../split-chunks-common/hot/test.config.js | 2 ++ .../split-chunks-common/hot/webpack.config.js | 2 ++ .../inverted-order/test.config.js | 2 ++ .../inverted-order/webpack.config.js | 2 ++ .../split-chunks-common/issue-12128/test.config.js | 2 ++ .../issue-12128/webpack.config.js | 2 ++ .../split-chunks-common/library/test.config.js | 2 ++ .../split-chunks-common/library/webpack.config.js | 2 ++ .../split-chunks-common/move-entry/test.config.js | 2 ++ .../split-chunks-common/move-entry/webpack.config.js | 2 ++ .../move-to-grandparent/test.config.js | 2 ++ .../move-to-grandparent/webpack.config.js | 2 ++ .../split-chunks-common/simple/test.config.js | 2 ++ .../split-chunks-common/simple/webpack.config.js | 2 ++ .../split-chunks-common/target-node/test.config.js | 2 ++ .../target-node/webpack.config.js | 2 ++ .../split-chunks/asnyc-entries/test.config.js | 2 ++ .../split-chunks/asnyc-entries/test.filter.js | 2 ++ .../split-chunks/asnyc-entries/webpack.config.js | 2 ++ .../chunk-filename-delimiter-default/test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../chunk-filename-delimiter/test.config.js | 2 ++ .../chunk-filename-delimiter/webpack.config.js | 2 ++ .../custom-filename-function/test.config.js | 2 ++ .../custom-filename-function/webpack.config.js | 2 ++ .../custom-filename-many-custom/test.config.js | 2 ++ .../custom-filename-many-custom/webpack.config.js | 2 ++ .../split-chunks/custom-filename/test.config.js | 2 ++ .../split-chunks/custom-filename/webpack.config.js | 2 ++ .../split-chunks/entry-point-error/errors.js | 2 ++ .../split-chunks/entry-point-error/test.config.js | 2 ++ .../split-chunks/entry-point-error/webpack.config.js | 2 ++ .../incorrect-chunk-reuse/webpack.config.js | 2 ++ .../split-chunks/issue-11337/webpack.config.js | 2 ++ .../split-chunks/issue-11513/test.config.js | 2 ++ .../split-chunks/issue-11513/webpack.config.js | 2 ++ .../split-chunks/issue-12307/webpack.config.js | 2 ++ .../split-chunks/issue-17332/test.config.js | 2 ++ .../split-chunks/issue-17332/webpack.config.js | 2 ++ .../split-chunks/issue-8908/test.config.js | 2 ++ .../split-chunks/issue-8908/webpack.config.js | 2 ++ .../split-chunks/issue-9491/test.config.js | 2 ++ .../split-chunks/issue-9491/webpack.config.js | 2 ++ .../split-chunks/max-size-casing/test.config.js | 2 ++ .../split-chunks/max-size-casing/webpack.config.js | 2 ++ .../split-chunks/module-type-filter/test.config.js | 2 ++ .../module-type-filter/webpack.config.js | 2 ++ .../split-chunks/move-to-entrypoint/test.config.js | 2 ++ .../move-to-entrypoint/webpack.config.js | 2 ++ test/configCases/split-chunks/no-name/test.config.js | 2 ++ .../split-chunks/no-name/webpack.config.js | 2 ++ .../split-chunks/no-options/test.config.js | 2 ++ .../split-chunks/no-options/webpack.config.js | 2 ++ .../split-chunks/reuse-chunk-name/test.config.js | 2 ++ .../split-chunks/reuse-chunk-name/webpack.config.js | 2 ++ .../runtime-chunk-async-node/test.config.js | 2 ++ .../runtime-chunk-async-node/webpack.config.js | 2 ++ .../runtime-chunk-no-async/test.config.js | 2 ++ .../runtime-chunk-no-async/webpack.config.js | 2 ++ .../runtime-chunk-node-13130/test.config.js | 2 ++ .../runtime-chunk-node-13130/webpack.config.js | 2 ++ .../split-chunks/runtime-chunk-node/test.config.js | 2 ++ .../runtime-chunk-node/webpack.config.js | 2 ++ .../split-chunks/runtime-chunk/test.config.js | 2 ++ .../split-chunks/runtime-chunk/webpack.config.js | 2 ++ .../vendor-only-entrypoint/test.config.js | 2 ++ .../vendor-only-entrypoint/webpack.config.js | 2 ++ .../target/amd-container-named/webpack.config.js | 2 ++ .../target/amd-container-require/webpack.config.js | 2 ++ .../target/amd-container-unnamed/webpack.config.js | 2 ++ test/configCases/target/amd-named/webpack.config.js | 2 ++ .../configCases/target/amd-require/webpack.config.js | 2 ++ .../configCases/target/amd-unnamed/webpack.config.js | 2 ++ .../target/chunk-loading-per-entry/test.config.js | 2 ++ .../target/chunk-loading-per-entry/webpack.config.js | 2 ++ .../target/electron-renderer/webpack.config.js | 2 ++ .../target/node-dynamic-import/test.filter.js | 2 ++ .../target/node-dynamic-import/webpack.config.js | 2 ++ .../target/strict-mode-global/webpack.config.js | 2 ++ .../configCases/target/system-context/test.config.js | 2 ++ .../target/system-context/webpack.config.js | 2 ++ test/configCases/target/system-export/test.config.js | 2 ++ .../target/system-export/webpack.config.js | 2 ++ .../target/system-named-assets-path/test.config.js | 2 ++ .../system-named-assets-path/webpack.config.js | 2 ++ test/configCases/target/system-named/test.config.js | 2 ++ .../target/system-named/webpack.config.js | 2 ++ .../configCases/target/system-unnamed/test.config.js | 2 ++ .../target/system-unnamed/webpack.config.js | 2 ++ .../umd-auxiliary-comments-object/webpack.config.js | 2 ++ .../umd-auxiliary-comments-string/webpack.config.js | 2 ++ .../target/umd-named-define/webpack.config.js | 2 ++ test/configCases/target/universal/test.config.js | 2 ++ test/configCases/target/universal/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../custom-policy-name/webpack.config.js | 2 ++ .../default-policy-name/webpack.config.js | 2 ++ .../trusted-types/devtool-eval/webpack.config.js | 2 ++ .../trusted-types/no-policy-name/webpack.config.js | 2 ++ .../trusted-types/no-trusted-types/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../trusted-types/web-worker/test.config.js | 2 ++ .../trusted-types/web-worker/test.filter.js | 2 ++ .../trusted-types/web-worker/webpack.config.js | 2 ++ test/configCases/types/filesystems/test.filter.js | 2 ++ test/configCases/types/filesystems/webpack.config.js | 2 ++ test/configCases/umd/issue-15545/test.config.js | 2 ++ test/configCases/umd/issue-15545/webpack.config.js | 2 ++ .../url/context-options/webpack.config.js | 2 ++ .../url/disable-dynamic-url/webpack.config.js | 2 ++ .../dynamic-template-literals-expr/webpack.config.js | 2 ++ test/configCases/url/pure-dep/webpack.config.js | 2 ++ test/configCases/utils/lazy-set/webpack.config.js | 2 ++ test/configCases/wasm/async-node/test.filter.js | 2 ++ test/configCases/wasm/async-node/webpack.config.js | 2 ++ test/configCases/wasm/bigints/test.filter.js | 2 ++ test/configCases/wasm/bigints/webpack.config.js | 2 ++ .../wasm/export-imported-global/test.filter.js | 2 ++ .../wasm/export-imported-global/webpack.config.js | 2 ++ test/configCases/wasm/externref/test.filter.js | 2 ++ test/configCases/wasm/externref/webpack.config.js | 2 ++ test/configCases/wasm/fetch/test.config.js | 2 ++ test/configCases/wasm/fetch/test.filter.js | 2 ++ test/configCases/wasm/fetch/webpack.config.js | 2 ++ test/configCases/wasm/identical/test.filter.js | 2 ++ test/configCases/wasm/identical/webpack.config.js | 2 ++ .../configCases/wasm/import-wasm-wasm/test.filter.js | 2 ++ .../wasm/import-wasm-wasm/webpack.config.js | 2 ++ .../wasm/missing-wasm-experiment/errors.js | 2 ++ .../missing-wasm-experiment/infrastructure-log.js | 2 ++ .../wasm/missing-wasm-experiment/webpack.config.js | 2 ++ test/configCases/wasm/reference-types/test.filter.js | 2 ++ .../wasm/reference-types/webpack.config.js | 2 ++ test/configCases/wasm/universal/test.config.js | 2 ++ test/configCases/wasm/universal/test.filter.js | 2 ++ test/configCases/wasm/universal/webpack.config.js | 2 ++ .../wasm/wasm-in-initial-chunk-error/errors.js | 2 ++ .../wasm/wasm-in-initial-chunk-error/test.filter.js | 2 ++ .../wasm-in-initial-chunk-error/webpack.config.js | 2 ++ .../web/attach-existing/webpack.config.js | 2 ++ .../web/fetch-priority-2/webpack.config.js | 2 ++ test/configCases/web/fetch-priority/warnings.js | 2 ++ .../configCases/web/fetch-priority/webpack.config.js | 2 ++ .../web/node-source-future-defaults/warnings.js | 2 ++ .../node-source-future-defaults/webpack.config.js | 2 ++ .../web/node-source-global/test.config.js | 2 ++ .../web/node-source-global/webpack.config.js | 2 ++ test/configCases/web/node-source/webpack.config.js | 2 ++ .../test.config.js | 2 ++ .../webpack.config.js | 2 ++ .../web/non-js-chunks-entrypoint/test.config.js | 2 ++ .../web/non-js-chunks-entrypoint/webpack.config.js | 2 ++ test/configCases/web/nonce/webpack.config.js | 2 ++ .../configCases/web/preexecuted-chunk/test.config.js | 2 ++ .../web/preexecuted-chunk/webpack.config.js | 2 ++ .../prefetch-preload-module-jsonp/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../web/prefetch-preload-module/webpack.config.js | 2 ++ .../web/prefetch-preload/webpack.config.js | 2 ++ .../web/prefetch-split-chunks/test.config.js | 2 ++ .../web/prefetch-split-chunks/webpack.config.js | 2 ++ .../web/retry-failed-import/webpack.config.js | 2 ++ test/configCases/web/unique-jsonp/test.config.js | 2 ++ test/configCases/web/unique-jsonp/webpack.config.js | 2 ++ test/configCases/worker/blob/test.filter.js | 2 ++ test/configCases/worker/blob/webpack.config.js | 2 ++ test/configCases/worker/custom-worker/test.config.js | 2 ++ test/configCases/worker/custom-worker/test.filter.js | 2 ++ .../worker/custom-worker/webpack.config.js | 2 ++ test/configCases/worker/issue-17489/test.config.js | 2 ++ test/configCases/worker/issue-17489/test.filter.js | 2 ++ .../configCases/worker/issue-17489/webpack.config.js | 2 ++ .../worker/node-worker-async-node/test.config.js | 2 ++ .../worker/node-worker-async-node/test.filter.js | 2 ++ .../worker/node-worker-async-node/webpack.config.js | 2 ++ .../worker/node-worker-esm/test.config.js | 2 ++ .../worker/node-worker-esm/test.filter.js | 2 ++ .../worker/node-worker-esm/webpack.config.js | 2 ++ .../worker/node-worker-hmr/test.config.js | 2 ++ .../worker/node-worker-hmr/test.filter.js | 2 ++ .../worker/node-worker-hmr/webpack.config.js | 2 ++ .../worker/node-worker-named/test.config.js | 2 ++ .../worker/node-worker-named/test.filter.js | 2 ++ .../worker/node-worker-named/webpack.config.js | 2 ++ test/configCases/worker/node-worker/test.config.js | 2 ++ test/configCases/worker/node-worker/test.filter.js | 2 ++ .../configCases/worker/node-worker/webpack.config.js | 2 ++ test/configCases/worker/self-import/test.config.js | 2 ++ test/configCases/worker/self-import/test.filter.js | 2 ++ test/configCases/worker/self-import/warnings.js | 2 ++ .../configCases/worker/self-import/webpack.config.js | 2 ++ test/configCases/worker/universal/test.config.js | 2 ++ test/configCases/worker/universal/test.filter.js | 2 ++ test/configCases/worker/universal/webpack.config.js | 2 ++ test/configCases/worker/web-worker/test.config.js | 2 ++ test/configCases/worker/web-worker/test.filter.js | 2 ++ test/configCases/worker/web-worker/webpack.config.js | 2 ++ .../worker/worker-contenthash/test.config.js | 2 ++ .../worker/worker-contenthash/test.filter.js | 2 ++ .../worker/worker-contenthash/webpack.config.js | 2 ++ test/configCases/worker/worklet/test.config.js | 2 ++ test/configCases/worker/worklet/test.filter.js | 2 ++ test/configCases/worker/worklet/webpack.config.js | 2 ++ test/deterministicGrouping.unittest.js | 2 ++ test/helpers/CurrentScript.js | 2 ++ test/helpers/FakeDocument.js | 2 ++ test/helpers/LogTestPlugin.js | 2 ++ test/helpers/PluginEnvironment.js | 2 ++ test/helpers/applyPluginWithOptions.js | 2 ++ test/helpers/asModule.js | 2 ++ test/helpers/captureStdio.js | 2 ++ test/helpers/createFakeWorker.js | 2 ++ test/helpers/createLazyTestEnv.js | 2 ++ test/helpers/currentWatchStep.js | 2 ++ test/helpers/expectSource.js | 2 ++ test/helpers/expectWarningFactory.js | 2 ++ test/helpers/fakeSystem.js | 2 ++ test/helpers/regexEscape.js | 2 ++ test/helpers/remove.js | 2 ++ test/helpers/supportDefaultAssignment.js | 2 ++ test/helpers/supportsAggregateError.js | 2 ++ test/helpers/supportsArrowFunctionExpression.js | 2 ++ test/helpers/supportsAsync.js | 2 ++ test/helpers/supportsBlob.js | 2 ++ test/helpers/supportsBlockScoping.js | 2 ++ test/helpers/supportsClassFields.js | 2 ++ test/helpers/supportsClassStaticBlock.js | 2 ++ test/helpers/supportsDefaultArgs.js | 2 ++ test/helpers/supportsES6.js | 2 ++ test/helpers/supportsErrorCause.js | 2 ++ test/helpers/supportsForOf.js | 2 ++ test/helpers/supportsIteratorDestructuring.js | 2 ++ test/helpers/supportsLogicalAssignment.js | 2 ++ test/helpers/supportsNullishCoalescing.js | 2 ++ test/helpers/supportsObjectDestructuring.js | 2 ++ test/helpers/supportsOptionalCatchBinding.js | 2 ++ test/helpers/supportsOptionalChaining.js | 2 ++ test/helpers/supportsRequireInModule.js | 2 ++ test/helpers/supportsResponse.js | 2 ++ test/helpers/supportsSpread.js | 2 ++ test/helpers/supportsTemplateStrings.js | 2 ++ test/helpers/supportsUsing.js | 2 ++ test/helpers/supportsWebAssembly.js | 2 ++ test/helpers/supportsWorker.js | 2 ++ test/helpers/warmup-webpack.js | 2 ++ .../lazy-compilation/webpack.config.js | 2 ++ .../asset-modules-source/source/webpack.config.js | 2 ++ .../chunks/initial-chunks-hmr/webpack.config.js | 2 ++ .../chunks/split-chunks-webpackhot/webpack.config.js | 2 ++ test/hotCases/chunks/split-chunks/webpack.config.js | 2 ++ .../update-chunk-loading-runtime/webpack.config.js | 2 ++ test/hotCases/css/css-modules/test.config.js | 2 ++ test/hotCases/css/css-modules/webpack.config.js | 2 ++ test/hotCases/css/fetch-priority/test.config.js | 2 ++ test/hotCases/css/fetch-priority/webpack.config.js | 2 ++ test/hotCases/css/imported-css/test.config.js | 2 ++ test/hotCases/css/imported-css/test.filter.js | 2 ++ test/hotCases/css/imported-css/webpack.config.js | 2 ++ test/hotCases/css/single-css-entry/test.config.js | 2 ++ test/hotCases/css/single-css-entry/test.filter.js | 2 ++ test/hotCases/css/single-css-entry/webpack.config.js | 2 ++ test/hotCases/css/vanilla/test.config.js | 2 ++ test/hotCases/css/vanilla/webpack.config.js | 2 ++ .../css/with-lazy-compilation/test.filter.js | 2 ++ .../css/with-lazy-compilation/webpack.config.js | 2 ++ .../runtime-independent-filename/webpack.config.js | 2 ++ .../esm-output/async-chunks/webpack.config.js | 2 ++ test/hotCases/esm-output/css-modules/test.config.js | 2 ++ .../esm-output/css-modules/webpack.config.js | 2 ++ .../esm-output/runtime-chunk/webpack.config.js | 2 ++ test/hotCases/esm-output/simple/webpack.config.js | 2 ++ .../esm-output/split-chunks/webpack.config.js | 2 ++ .../hashing/exports-info-influence/webpack.config.js | 2 ++ .../hashing/full-hash-main/webpack.config.js | 2 ++ .../hashing/full-hash-syntax-error/webpack.config.js | 2 ++ test/hotCases/json/error-in-json/errors.js | 2 ++ test/hotCases/lazy-compilation/https/test.config.js | 2 ++ .../loader-import-module/css/webpack.config.js | 2 ++ .../recover-after-css-loader-error/test.filter.js | 2 ++ .../recover-after-css-loader-error/webpack.config.js | 2 ++ test/hotCases/runtime/add-runtime/test.filter.js | 2 ++ test/hotCases/runtime/add-runtime/webpack.config.js | 2 ++ test/hotCases/runtime/root-error/webpack.config.js | 2 ++ test/hotCases/sharing/share-plugin/webpack.config.js | 2 ++ .../worker/move-between-runtime/test.config.js | 2 ++ .../worker/move-between-runtime/test.filter.js | 2 ++ .../hotCases/worker/remove-add-worker/test.config.js | 2 ++ .../hotCases/worker/remove-add-worker/test.filter.js | 2 ++ test/hotCases/worker/update-in-worker/test.config.js | 2 ++ test/hotCases/worker/update-in-worker/test.filter.js | 2 ++ test/hotPlayground/webpack.config.js | 2 ++ test/numberHash.unittest.js | 2 ++ test/patch-node-env.js | 2 ++ test/propertyAccess.unittest.js | 2 ++ test/propertyName.unittest.js | 2 ++ test/runner/index.js | 2 ++ test/setupTestFramework.js | 2 ++ .../aggressive-splitting-entry/webpack.config.js | 2 ++ .../aggressive-splitting-on-demand/webpack.config.js | 2 ++ test/statsCases/all-stats/webpack.config.js | 2 ++ test/statsCases/asset-concat/webpack.config.js | 2 ++ test/statsCases/asset/webpack.config.js | 2 ++ .../async-commons-chunk-auto/webpack.config.js | 2 ++ .../statsCases/async-commons-chunk/webpack.config.js | 2 ++ test/statsCases/cause-error/webpack.config.js | 2 ++ .../chunk-module-id-range/webpack.config.js | 2 ++ test/statsCases/chunks-development/webpack.config.js | 2 ++ test/statsCases/chunks/webpack.config.js | 2 ++ .../circular-correctness/webpack.config.js | 2 ++ test/statsCases/color-disabled/webpack.config.js | 2 ++ .../color-enabled-custom/webpack.config.js | 2 ++ test/statsCases/color-enabled/webpack.config.js | 2 ++ test/statsCases/common-libs/webpack.config.js | 2 ++ .../commons-chunk-min-size-0/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../commons-plugin-issue-4980/webpack.config.js | 2 ++ .../concat-and-sideeffects/webpack.config.js | 2 ++ test/statsCases/context-independence/test.config.js | 2 ++ .../context-independence/webpack.config.js | 2 ++ test/statsCases/custom-terser/webpack.config.js | 2 ++ test/statsCases/define-plugin/webpack.config.js | 2 ++ test/statsCases/details-error/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../dynamic-chunk-name-error/webpack.config.js | 2 ++ test/statsCases/dynamic-import/webpack.config.js | 2 ++ test/statsCases/entry-filename/webpack.config.js | 2 ++ test/statsCases/errors-space-error/webpack.config.js | 2 ++ .../statsCases/exclude-with-loader/webpack.config.js | 2 ++ test/statsCases/external/webpack.config.js | 2 ++ .../graph-correctness-entries/webpack.config.js | 2 ++ .../graph-correctness-modules/webpack.config.js | 2 ++ test/statsCases/graph-roots/webpack.config.js | 2 ++ test/statsCases/ignore-warnings/webpack.config.js | 2 ++ test/statsCases/immutable/webpack.config.js | 2 ++ .../import-context-filter/webpack.config.js | 2 ++ .../import-weak-parser-option/webpack.config.js | 2 ++ test/statsCases/import-weak/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ test/statsCases/issue-7577/webpack.config.js | 2 ++ .../limit-chunk-count-plugin/webpack.config.js | 2 ++ test/statsCases/logging-debug/webpack.config.js | 2 ++ test/statsCases/logging/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../statsCases/max-modules-default/webpack.config.js | 2 ++ test/statsCases/max-modules/webpack.config.js | 2 ++ test/statsCases/module-assets/webpack.config.js | 2 ++ .../module-deduplication-named/webpack.config.js | 2 ++ .../module-deduplication/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../module-not-found-error/webpack.config.js | 2 ++ test/statsCases/module-reasons/webpack.config.js | 2 ++ .../module-trace-disabled-in-error/webpack.config.js | 2 ++ .../module-trace-enabled-in-error/webpack.config.js | 2 ++ test/statsCases/name/webpack.config.js | 2 ++ test/statsCases/named-chunk-groups/webpack.config.js | 2 ++ .../statsCases/named-chunks-plugin/webpack.config.js | 2 ++ test/statsCases/optimize-chunks/webpack.config.js | 2 ++ test/statsCases/output-module/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../performance-disabled/webpack.config.js | 2 ++ test/statsCases/performance-error/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../performance-no-hints/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../prefetch-preload-mixed/webpack.config.js | 2 ++ test/statsCases/prefetch/webpack.config.js | 2 ++ test/statsCases/preload/webpack.config.js | 2 ++ test/statsCases/preset-detailed/webpack.config.js | 2 ++ .../preset-errors-only-error/webpack.config.js | 2 ++ test/statsCases/preset-errors-only/webpack.config.js | 2 ++ .../preset-errors-warnings/webpack.config.js | 2 ++ .../preset-minimal-simple/webpack.config.js | 2 ++ test/statsCases/preset-minimal/webpack.config.js | 2 ++ test/statsCases/preset-mixed-array/webpack.config.js | 2 ++ test/statsCases/preset-none-array/webpack.config.js | 2 ++ test/statsCases/preset-none-error/webpack.config.js | 2 ++ test/statsCases/preset-none/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../preset-normal-performance/webpack.config.js | 2 ++ test/statsCases/preset-normal/webpack.config.js | 2 ++ test/statsCases/preset-summary/webpack.config.js | 2 ++ test/statsCases/preset-verbose/webpack.config.js | 2 ++ test/statsCases/real-content-hash/test.config.js | 2 ++ test/statsCases/real-content-hash/webpack.config.js | 2 ++ test/statsCases/related-assets/test.config.js | 2 ++ test/statsCases/related-assets/webpack.config.js | 2 ++ .../resolve-plugin-context/webpack.config.js | 2 ++ .../reverse-sort-modules/webpack.config.js | 2 ++ .../runtime-chunk-integration/webpack.config.js | 2 ++ .../runtime-chunk-issue-7382/webpack.config.js | 2 ++ .../runtime-chunk-single/webpack.config.js | 2 ++ test/statsCases/runtime-chunk/webpack.config.js | 2 ++ .../runtime-specific-used-exports/webpack.config.js | 2 ++ .../scope-hoisting-bailouts/webpack.config.js | 2 ++ .../scope-hoisting-multi/webpack.config.js | 2 ++ .../side-effects-issue-7428/webpack.config.js | 2 ++ .../side-effects-optimization/webpack.config.js | 2 ++ .../side-effects-simple-unused/webpack.config.js | 2 ++ test/statsCases/simple-more-info/webpack.config.js | 2 ++ .../split-chunks-automatic-name/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../split-chunks-chunk-name/webpack.config.js | 2 ++ .../split-chunks-combinations/webpack.config.js | 2 ++ test/statsCases/split-chunks-dedup/webpack.config.js | 2 ++ .../split-chunks-issue-6413/webpack.config.js | 2 ++ .../split-chunks-issue-6696/webpack.config.js | 2 ++ .../split-chunks-issue-7401/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../split-chunks-max-size/webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../webpack.config.js | 2 ++ .../split-chunks-runtime-specific/webpack.config.js | 2 ++ test/statsCases/split-chunks/webpack.config.js | 2 ++ test/statsCases/track-returned/test.config.js | 2 ++ test/statsCases/tree-shaking/webpack.config.js | 2 ++ .../warnings-space-warning/webpack.config.js | 2 ++ .../wasm-explorer-examples-sync/test.filter.js | 2 ++ .../wasm-explorer-examples-sync/webpack.config.js | 2 ++ test/statsCases/worker-public-path/webpack.config.js | 2 ++ test/target-browserslist.unittest.js | 2 ++ test/walkCssTokens.unittest.js | 2 ++ test/watchCases/cache/add-defines/test.filter.js | 2 ++ test/watchCases/cache/add-defines/webpack.config.js | 2 ++ test/watchCases/cache/asset-concat/test.filter.js | 2 ++ test/watchCases/cache/asset-concat/webpack.config.js | 2 ++ .../change-dep-while-detatched/webpack.config.js | 2 ++ .../cache/changing-module-id/webpack.config.js | 2 ++ .../cache/emit-when-clean/webpack.config.js | 2 ++ .../cache/emit-without-clean/webpack.config.js | 2 ++ test/watchCases/cache/immutable/webpack.config.js | 2 ++ .../loader-import-module-progress/webpack.config.js | 2 ++ .../cache/loader-import-module/webpack.config.js | 2 ++ .../loader-load-module-progress/webpack.config.js | 2 ++ test/watchCases/cache/managedPath/webpack.config.js | 2 ++ .../cache/max-generation/webpack.config.js | 2 ++ .../new-split-chunk-entry-node/webpack.config.js | 2 ++ .../new-split-chunk-entry-web/webpack.config.js | 2 ++ .../cache/reexport-mangle/webpack.config.js | 2 ++ .../cache/unsafe-cache-duplicates/webpack.config.js | 2 ++ .../unsafe-cache-managed-paths/webpack.config.js | 2 ++ test/watchCases/cache/unsafe-cache/webpack.config.js | 2 ++ .../chunks/esm-async-chunks-hmr/test.config.js | 2 ++ .../chunks/esm-async-chunks-hmr/webpack.config.js | 2 ++ .../issue-8766-with-cache/webpack.config.js | 2 ++ .../long-term-caching/issue-8766/webpack.config.js | 2 ++ .../automatic-prefetch-plugin-9485/webpack.config.js | 2 ++ .../automatic-prefetch-plugin/webpack.config.js | 2 ++ .../plugins/define-plugin/webpack.config.js | 2 ++ .../plugins/dll-reference-plugin/webpack.config.js | 2 ++ .../mini-css-extract-plugin/webpack.config.js | 2 ++ .../module-concatenation-plugin/webpack.config.js | 2 ++ .../plugins/profiling-plugin/deprecations.js | 2 ++ .../plugins/profiling-plugin/webpack.config.js | 2 ++ .../plugins/watch-ignore-plugin/webpack.config.js | 2 ++ .../recover-from-error/missing-module/0/errors.js | 2 ++ .../recover-from-error/parse-failed-esm/0/errors.js | 2 ++ .../recover-from-error/parse-failed-esm/2/errors.js | 2 ++ .../runtime/dynamic-import/webpack.config.js | 2 ++ test/watchCases/runtime/static-import/test.config.js | 2 ++ .../runtime/static-import/webpack.config.js | 2 ++ .../caching-inner-source/webpack.config.js | 2 ++ .../sharing/provide-unsafe-cache/webpack.config.js | 2 ++ .../side-effects/issue-7400/test.filter.js | 2 ++ .../side-effects/issue-7400/webpack.config.js | 2 ++ .../simple/multi-compiler/webpack.config.js | 2 ++ test/watchCases/simple/production/webpack.config.js | 2 ++ .../snapshot/unable-to-snapshot/webpack.config.js | 2 ++ .../warnings-contribute-to-hash/0/warnings.js | 2 ++ .../warnings-contribute-to-hash/1/warnings.js | 2 ++ test/watchCases/wasm/caching/test.filter.js | 2 ++ test/watchCases/wasm/caching/webpack.config.js | 2 ++ 1554 files changed, 3110 insertions(+), 9 deletions(-) diff --git a/.editorconfig b/.editorconfig index 07e49a0e3..0c2b037f0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -12,14 +12,14 @@ max_line_length = 80 indent_style = space indent_size = 2 -[test/cases/parsing/bom/bomfile.{css,js}] -charset = utf-8-bom - -[test/configCases/css/no-extra-runtime-in-js/source.text] -insert_final_newline = false - [*.md] trim_trailing_whitespace = false [*.snap] trim_trailing_whitespace = false + +[test/cases/parsing/bom/bomfile.{css,js}] +charset = utf-8-bom + +[test/configCases/css/no-extra-runtime-in-js/source.text] +insert_final_newline = false diff --git a/eslint.config.mjs b/eslint.config.mjs index 0cdd3278e..fa24432ab 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -151,9 +151,6 @@ export default defineConfig([ { files: ["test/**/*.js"], rules: { - // TODO enable me - strict: "off", - // Some our tests contain `package.json` without `engines`, but tests should work on Node.js@10, so let's disable it "n/prefer-node-protocol": "off", diff --git a/test/BinaryMiddleware.unittest.js b/test/BinaryMiddleware.unittest.js index 813eab303..92aa6b513 100644 --- a/test/BinaryMiddleware.unittest.js +++ b/test/BinaryMiddleware.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const BinaryMiddleware = require("../lib/serialization/BinaryMiddleware"); const SerializerMiddleware = require("../lib/serialization/SerializerMiddleware"); diff --git a/test/Cli.basictest.js b/test/Cli.basictest.js index c1a7ad40f..78bb0ca76 100644 --- a/test/Cli.basictest.js +++ b/test/Cli.basictest.js @@ -1,3 +1,5 @@ +"use strict"; + const { getArguments, processArguments } = require("../").cli; describe("Cli", () => { diff --git a/test/ConfigCacheTestCases.longtest.js b/test/ConfigCacheTestCases.longtest.js index d9ec699e5..64f2d813d 100644 --- a/test/ConfigCacheTestCases.longtest.js +++ b/test/ConfigCacheTestCases.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./ConfigTestCases.template"); describeCases({ diff --git a/test/ConfigTestCases.basictest.js b/test/ConfigTestCases.basictest.js index 8c8e0933c..8b242d85e 100644 --- a/test/ConfigTestCases.basictest.js +++ b/test/ConfigTestCases.basictest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./ConfigTestCases.template"); describeCases({ diff --git a/test/Defaults.unittest.js b/test/Defaults.unittest.js index a51333d20..4308700a9 100644 --- a/test/Defaults.unittest.js +++ b/test/Defaults.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + require("./helpers/warmup-webpack"); const path = require("path"); diff --git a/test/HotTestCasesAsyncNode.test.js b/test/HotTestCasesAsyncNode.test.js index 64ed67adf..d81ffb583 100644 --- a/test/HotTestCasesAsyncNode.test.js +++ b/test/HotTestCasesAsyncNode.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { diff --git a/test/HotTestCasesNode.test.js b/test/HotTestCasesNode.test.js index 980198047..21fee77fd 100644 --- a/test/HotTestCasesNode.test.js +++ b/test/HotTestCasesNode.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { diff --git a/test/HotTestCasesWeb.test.js b/test/HotTestCasesWeb.test.js index 59052deac..372188fe3 100644 --- a/test/HotTestCasesWeb.test.js +++ b/test/HotTestCasesWeb.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { diff --git a/test/HotTestCasesWebWorker.test.js b/test/HotTestCasesWebWorker.test.js index 9aaeb189f..9cc4ee92b 100644 --- a/test/HotTestCasesWebWorker.test.js +++ b/test/HotTestCasesWebWorker.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./HotTestCases.template"); describe("HotTestCases", () => { diff --git a/test/LazySet.unittest.js b/test/LazySet.unittest.js index 92c829f7a..9507a42f7 100644 --- a/test/LazySet.unittest.js +++ b/test/LazySet.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const LazySet = require("../lib/util/LazySet"); describe("LazySet", () => { diff --git a/test/PersistentCaching.test.js b/test/PersistentCaching.test.js index 5d7cf21ea..cc6fddc81 100644 --- a/test/PersistentCaching.test.js +++ b/test/PersistentCaching.test.js @@ -1,3 +1,5 @@ +"use strict"; + require("./helpers/warmup-webpack"); const fs = require("fs"); diff --git a/test/Queue.unittest.js b/test/Queue.unittest.js index cb234d2af..97e941c10 100644 --- a/test/Queue.unittest.js +++ b/test/Queue.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const Queue = require("../lib/util/Queue"); describe("Queue", () => { diff --git a/test/TestCasesAllCombined.longtest.js b/test/TestCasesAllCombined.longtest.js index f59ba3b4f..08f0a1c56 100644 --- a/test/TestCasesAllCombined.longtest.js +++ b/test/TestCasesAllCombined.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesCachePack.longtest.js b/test/TestCasesCachePack.longtest.js index a25219da6..efdecbc10 100644 --- a/test/TestCasesCachePack.longtest.js +++ b/test/TestCasesCachePack.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const { describeCases } = require("./TestCases.template"); diff --git a/test/TestCasesDevelopment.test.js b/test/TestCasesDevelopment.test.js index e837012cb..81f3cdfe6 100644 --- a/test/TestCasesDevelopment.test.js +++ b/test/TestCasesDevelopment.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolCheapSourceMap.test.js b/test/TestCasesDevtoolCheapSourceMap.test.js index dd38edcab..63c81175d 100644 --- a/test/TestCasesDevtoolCheapSourceMap.test.js +++ b/test/TestCasesDevtoolCheapSourceMap.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEval.test.js b/test/TestCasesDevtoolEval.test.js index d03f12978..2e9148d54 100644 --- a/test/TestCasesDevtoolEval.test.js +++ b/test/TestCasesDevtoolEval.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js b/test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js index 62000c521..d68e8e3ea 100644 --- a/test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js +++ b/test/TestCasesDevtoolEvalCheapModuleSourceMap.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEvalCheapSourceMap.test.js b/test/TestCasesDevtoolEvalCheapSourceMap.test.js index a891a1ba2..99a90e305 100644 --- a/test/TestCasesDevtoolEvalCheapSourceMap.test.js +++ b/test/TestCasesDevtoolEvalCheapSourceMap.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEvalDeterministicModuleIds.test.js b/test/TestCasesDevtoolEvalDeterministicModuleIds.test.js index a120ac87f..b91356b3d 100644 --- a/test/TestCasesDevtoolEvalDeterministicModuleIds.test.js +++ b/test/TestCasesDevtoolEvalDeterministicModuleIds.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEvalNamedModules.test.js b/test/TestCasesDevtoolEvalNamedModules.test.js index 0074088f8..554ea8f53 100644 --- a/test/TestCasesDevtoolEvalNamedModules.test.js +++ b/test/TestCasesDevtoolEvalNamedModules.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolEvalSourceMap.test.js b/test/TestCasesDevtoolEvalSourceMap.test.js index ced8658c2..a0ae72eaa 100644 --- a/test/TestCasesDevtoolEvalSourceMap.test.js +++ b/test/TestCasesDevtoolEvalSourceMap.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolInlineCheapSourceMap.test.js b/test/TestCasesDevtoolInlineCheapSourceMap.test.js index 8c1223009..c54b226d7 100644 --- a/test/TestCasesDevtoolInlineCheapSourceMap.test.js +++ b/test/TestCasesDevtoolInlineCheapSourceMap.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolInlineSourceMap.longtest.js b/test/TestCasesDevtoolInlineSourceMap.longtest.js index de3dc7127..ace6d539f 100644 --- a/test/TestCasesDevtoolInlineSourceMap.longtest.js +++ b/test/TestCasesDevtoolInlineSourceMap.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesDevtoolSourceMap.longtest.js b/test/TestCasesDevtoolSourceMap.longtest.js index a5f6b9152..db49aa5ed 100644 --- a/test/TestCasesDevtoolSourceMap.longtest.js +++ b/test/TestCasesDevtoolSourceMap.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesHot.test.js b/test/TestCasesHot.test.js index e0bd6d044..e3ce3f229 100644 --- a/test/TestCasesHot.test.js +++ b/test/TestCasesHot.test.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require(".."); const { describeCases } = require("./TestCases.template"); diff --git a/test/TestCasesMinimizedSourceMap.longtest.js b/test/TestCasesMinimizedSourceMap.longtest.js index 9ec3b5717..2e3c9d6bb 100644 --- a/test/TestCasesMinimizedSourceMap.longtest.js +++ b/test/TestCasesMinimizedSourceMap.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesModule.test.js b/test/TestCasesModule.test.js index b99158ee4..2d328abaa 100644 --- a/test/TestCasesModule.test.js +++ b/test/TestCasesModule.test.js @@ -1,3 +1,5 @@ +"use strict"; + const vm = require("vm"); const { describeCases } = require("./TestCases.template"); diff --git a/test/TestCasesNormal.basictest.js b/test/TestCasesNormal.basictest.js index 9d975ad28..07ac41b4d 100644 --- a/test/TestCasesNormal.basictest.js +++ b/test/TestCasesNormal.basictest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/TestCasesProdGlobalUsed.test.js b/test/TestCasesProdGlobalUsed.test.js index ee3d0fbb2..c76d3dd82 100644 --- a/test/TestCasesProdGlobalUsed.test.js +++ b/test/TestCasesProdGlobalUsed.test.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCasesProdGlobalUsed", () => { diff --git a/test/TestCasesProduction.longtest.js b/test/TestCasesProduction.longtest.js index 4e60190fa..7fae43c19 100644 --- a/test/TestCasesProduction.longtest.js +++ b/test/TestCasesProduction.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./TestCases.template"); describe("TestCases", () => { diff --git a/test/URLAbsoluteSpecifier.unittest.js b/test/URLAbsoluteSpecifier.unittest.js index f02e110c4..4a83ee6fb 100644 --- a/test/URLAbsoluteSpecifier.unittest.js +++ b/test/URLAbsoluteSpecifier.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { getProtocol, getScheme } = require("../lib/util/URLAbsoluteSpecifier"); /** diff --git a/test/WasmHashes.unittest.js b/test/WasmHashes.unittest.js index b3f5323b4..248202553 100644 --- a/test/WasmHashes.unittest.js +++ b/test/WasmHashes.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { createHash, randomBytes } = require("crypto"); const wasmHashes = { diff --git a/test/WatchCacheUnaffectedTestCases.longtest.js b/test/WatchCacheUnaffectedTestCases.longtest.js index 3a9ab819e..8b5649240 100644 --- a/test/WatchCacheUnaffectedTestCases.longtest.js +++ b/test/WatchCacheUnaffectedTestCases.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./WatchTestCases.template"); describeCases({ diff --git a/test/WatchTestCases.longtest.js b/test/WatchTestCases.longtest.js index 14de99b42..23e8f2783 100644 --- a/test/WatchTestCases.longtest.js +++ b/test/WatchTestCases.longtest.js @@ -1,3 +1,5 @@ +"use strict"; + const { describeCases } = require("./WatchTestCases.template"); describeCases({ diff --git a/test/benchmarkCases/cache-filesystem/webpack.config.js b/test/benchmarkCases/cache-filesystem/webpack.config.js index 9d55f533c..9f553f1bd 100644 --- a/test/benchmarkCases/cache-filesystem/webpack.config.js +++ b/test/benchmarkCases/cache-filesystem/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/benchmarkCases/context-commonjs/webpack.config.js b/test/benchmarkCases/context-commonjs/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/context-commonjs/webpack.config.js +++ b/test/benchmarkCases/context-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/context-esm/webpack.config.js b/test/benchmarkCases/context-esm/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/context-esm/webpack.config.js +++ b/test/benchmarkCases/context-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/devtool-eval-source-map/webpack.config.js b/test/benchmarkCases/devtool-eval-source-map/webpack.config.js index 7c2042e3c..e99f3af72 100644 --- a/test/benchmarkCases/devtool-eval-source-map/webpack.config.js +++ b/test/benchmarkCases/devtool-eval-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/benchmarkCases/devtool-eval/webpack.config.js b/test/benchmarkCases/devtool-eval/webpack.config.js index 3f99d3bfc..2f4884315 100644 --- a/test/benchmarkCases/devtool-eval/webpack.config.js +++ b/test/benchmarkCases/devtool-eval/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/benchmarkCases/devtool-source-map/webpack.config.js b/test/benchmarkCases/devtool-source-map/webpack.config.js index eb6058c89..560741f98 100644 --- a/test/benchmarkCases/devtool-source-map/webpack.config.js +++ b/test/benchmarkCases/devtool-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/benchmarkCases/future-defaults/webpack.config.js b/test/benchmarkCases/future-defaults/webpack.config.js index 77b0a2329..d80cbf11c 100644 --- a/test/benchmarkCases/future-defaults/webpack.config.js +++ b/test/benchmarkCases/future-defaults/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/benchmarkCases/lodash/webpack.config.js b/test/benchmarkCases/lodash/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/lodash/webpack.config.js +++ b/test/benchmarkCases/lodash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/many-chunks-commonjs/webpack.config.js b/test/benchmarkCases/many-chunks-commonjs/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/many-chunks-commonjs/webpack.config.js +++ b/test/benchmarkCases/many-chunks-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/many-chunks-esm/webpack.config.js b/test/benchmarkCases/many-chunks-esm/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/many-chunks-esm/webpack.config.js +++ b/test/benchmarkCases/many-chunks-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/many-modules-commonjs/webpack.config.js b/test/benchmarkCases/many-modules-commonjs/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/many-modules-commonjs/webpack.config.js +++ b/test/benchmarkCases/many-modules-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/many-modules-esm/webpack.config.js b/test/benchmarkCases/many-modules-esm/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/many-modules-esm/webpack.config.js +++ b/test/benchmarkCases/many-modules-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/minimal/webpack.config.js b/test/benchmarkCases/minimal/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/minimal/webpack.config.js +++ b/test/benchmarkCases/minimal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/react/webpack.config.js b/test/benchmarkCases/react/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/react/webpack.config.js +++ b/test/benchmarkCases/react/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/three-long/webpack.config.js b/test/benchmarkCases/three-long/webpack.config.js index 4c111be6a..618e121cc 100644 --- a/test/benchmarkCases/three-long/webpack.config.js +++ b/test/benchmarkCases/three-long/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index" diff --git a/test/benchmarkCases/typescript-long-on-schedule/webpack.config.js b/test/benchmarkCases/typescript-long-on-schedule/webpack.config.js index 9c5de9f77..b00e71f56 100644 --- a/test/benchmarkCases/typescript-long-on-schedule/webpack.config.js +++ b/test/benchmarkCases/typescript-long-on-schedule/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/cases/async-modules/micro-ticks-parents/test.filter.js b/test/cases/async-modules/micro-ticks-parents/test.filter.js index c27a08c36..cf14b5a68 100644 --- a/test/cases/async-modules/micro-ticks-parents/test.filter.js +++ b/test/cases/async-modules/micro-ticks-parents/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = () => // In node 10 v8 has a bug which inserts an additional micro-tick into async functions !process.version.startsWith("v10."); diff --git a/test/cases/chunks/destructuring-assignment/test.filter.js b/test/cases/chunks/destructuring-assignment/test.filter.js index 5619e2881..a8a402b15 100644 --- a/test/cases/chunks/destructuring-assignment/test.filter.js +++ b/test/cases/chunks/destructuring-assignment/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function filter(config) { // This test can't run in development mode return config.mode !== "development"; diff --git a/test/cases/chunks/destructuring-assignment/warnings.js b/test/cases/chunks/destructuring-assignment/warnings.js index f2a8d6f38..08df36bcb 100644 --- a/test/cases/chunks/destructuring-assignment/warnings.js +++ b/test/cases/chunks/destructuring-assignment/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/`webpackExports` could not be used with destructuring assignment./] ]; diff --git a/test/cases/chunks/runtime/test.filter.js b/test/cases/chunks/runtime/test.filter.js index 9e95c3af5..998e27ce0 100644 --- a/test/cases/chunks/runtime/test.filter.js +++ b/test/cases/chunks/runtime/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = config => // This test can't run in development mode as it depends on the flagIncludedChunks optimization config.mode !== "development"; diff --git a/test/cases/chunks/runtime/webpack.config.js b/test/cases/chunks/runtime/webpack.config.js index eef5638fa..3f5135038 100644 --- a/test/cases/chunks/runtime/webpack.config.js +++ b/test/cases/chunks/runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { optimization: { moduleIds: "named" diff --git a/test/cases/chunks/weird-reference-to-entry/errors.js b/test/cases/chunks/weird-reference-to-entry/errors.js index 0eda0fbec..fe646e641 100644 --- a/test/cases/chunks/weird-reference-to-entry/errors.js +++ b/test/cases/chunks/weird-reference-to-entry/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /It's not allowed to load an initial chunk on demand\. The chunk name "main" is already used by an entrypoint\./ diff --git a/test/cases/cjs-interop/non-existing-export/warnings.js b/test/cases/cjs-interop/non-existing-export/warnings.js index 1ecb811bf..8ec92c8bc 100644 --- a/test/cases/cjs-interop/non-existing-export/warnings.js +++ b/test/cases/cjs-interop/non-existing-export/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export 'named' \(imported as 'named'\) was not found in '\.\/module' \(possible exports: default\)/ diff --git a/test/cases/cjs-tree-shaking/mutate/warnings.js b/test/cases/cjs-tree-shaking/mutate/warnings.js index f875533c7..f949f2cd3 100644 --- a/test/cases/cjs-tree-shaking/mutate/warnings.js +++ b/test/cases/cjs-tree-shaking/mutate/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/export 'a' \(imported as 'a'\) was not found/], [/export 'a' \(imported as 'a'\) was not found/] diff --git a/test/cases/compile/error-hide-stack/errors.js b/test/cases/compile/error-hide-stack/errors.js index 6d8bf4df7..58fc17ed5 100644 --- a/test/cases/compile/error-hide-stack/errors.js +++ b/test/cases/compile/error-hide-stack/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module build failed( \(from [^)]+\))?:\nMessage/, { details: /Stack/ }] ]; diff --git a/test/cases/compile/error-hide-stack/infrastructure-log.js b/test/cases/compile/error-hide-stack/infrastructure-log.js index 83685aa57..a75f53fc0 100644 --- a/test/cases/compile/error-hide-stack/infrastructure-log.js +++ b/test/cases/compile/error-hide-stack/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules.+loader\.js!$/ ]; diff --git a/test/cases/context/issue-5750/warnings.js b/test/cases/context/issue-5750/warnings.js index 957d94c62..6ac56f3ca 100644 --- a/test/cases/context/issue-5750/warnings.js +++ b/test/cases/context/issue-5750/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Critical dependency: Contexts can't use RegExps with the 'g' or 'y' flags/] ]; diff --git a/test/cases/errors/case-sensitive/test.filter.js b/test/cases/errors/case-sensitive/test.filter.js index 1960f956b..70256c4b1 100644 --- a/test/cases/errors/case-sensitive/test.filter.js +++ b/test/cases/errors/case-sensitive/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/cases/errors/case-sensitive/warnings.js b/test/cases/errors/case-sensitive/warnings.js index 1a2c38230..f8bdfa9a0 100644 --- a/test/cases/errors/case-sensitive/warnings.js +++ b/test/cases/errors/case-sensitive/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /There are multiple modules with names that only differ in casing/, diff --git a/test/cases/errors/crash-missing-import/errors.js b/test/cases/errors/crash-missing-import/errors.js index d85236a2c..3c4e17e88 100644 --- a/test/cases/errors/crash-missing-import/errors.js +++ b/test/cases/errors/crash-missing-import/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/]]; diff --git a/test/cases/errors/harmony-import-missing/errors.js b/test/cases/errors/harmony-import-missing/errors.js index baab75125..d788c598c 100644 --- a/test/cases/errors/harmony-import-missing/errors.js +++ b/test/cases/errors/harmony-import-missing/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Can't resolve '.\/missing'/]]; diff --git a/test/cases/errors/harmony-import-missing2/errors.js b/test/cases/errors/harmony-import-missing2/errors.js index 67d1f2321..bfc02f03a 100644 --- a/test/cases/errors/harmony-import-missing2/errors.js +++ b/test/cases/errors/harmony-import-missing2/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Can't resolve '.\/missing1'/], [/Can't resolve '.\/missing2'/] diff --git a/test/cases/errors/load-module-error/errors.js b/test/cases/errors/load-module-error/errors.js index ce88c1bc3..fd52cf72f 100644 --- a/test/cases/errors/load-module-error/errors.js +++ b/test/cases/errors/load-module-error/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/err: abc/], [/The loaded module contains errors/]]; diff --git a/test/cases/errors/load-module-error/infrastructure-log.js b/test/cases/errors/load-module-error/infrastructure-log.js index 236f5a502..113d661ee 100644 --- a/test/cases/errors/load-module-error/infrastructure-log.js +++ b/test/cases/errors/load-module-error/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|json.+error-loader\.js!/ ]; diff --git a/test/cases/errors/loader-error-warning/errors.js b/test/cases/errors/loader-error-warning/errors.js index 16bfd86a5..e663795d0 100644 --- a/test/cases/errors/loader-error-warning/errors.js +++ b/test/cases/errors/loader-error-warning/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/abc/, /Emitted value instead of an instance of Error/, /error-loader\.js/], [/def/, /Emitted value instead of an instance of Error/, /error-loader\.js/] diff --git a/test/cases/errors/loader-error-warning/warnings.js b/test/cases/errors/loader-error-warning/warnings.js index c776962fc..7000d83e5 100644 --- a/test/cases/errors/loader-error-warning/warnings.js +++ b/test/cases/errors/loader-error-warning/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/xyz/, /Emitted value instead of an instance of Error/, /warning-loader\.js/] ]; diff --git a/test/cases/errors/mjs-non-fully-specified/errors.js b/test/cases/errors/mjs-non-fully-specified/errors.js index 48dc51c9f..a4d29e32f 100644 --- a/test/cases/errors/mjs-non-fully-specified/errors.js +++ b/test/cases/errors/mjs-non-fully-specified/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Can't resolve '.\/dependency'/, /Did you mean 'dependency\.js'\?/] ]; diff --git a/test/cases/errors/module-request/errors.js b/test/cases/errors/module-request/errors.js index 3a9f5a9a1..fd6ee7fe3 100644 --- a/test/cases/errors/module-request/errors.js +++ b/test/cases/errors/module-request/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Can't resolve 'dependency\.js'/, /Did you mean '\.\/dependency\.js'\?/] ]; diff --git a/test/cases/esm/import-meta/test.filter.js b/test/cases/esm/import-meta/test.filter.js index 3f0358f64..c628302b5 100644 --- a/test/cases/esm/import-meta/test.filter.js +++ b/test/cases/esm/import-meta/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = config => !config.module || supportsRequireInModule(); diff --git a/test/cases/esm/import-meta/warnings.js b/test/cases/esm/import-meta/warnings.js index d8fc384d8..8b21f0236 100644 --- a/test/cases/esm/import-meta/warnings.js +++ b/test/cases/esm/import-meta/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Accessing import.meta directly is unsupported \(only property access or destructuring is supported\)/ diff --git a/test/cases/inner-graph/class-dynamic-props/test.filter.js b/test/cases/inner-graph/class-dynamic-props/test.filter.js index 138d99564..aa94ec7b4 100644 --- a/test/cases/inner-graph/class-dynamic-props/test.filter.js +++ b/test/cases/inner-graph/class-dynamic-props/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassFields = require("../../../helpers/supportsClassFields"); module.exports = () => supportsClassFields(); diff --git a/test/cases/inner-graph/extend-class/test.filter.js b/test/cases/inner-graph/extend-class/test.filter.js index 23b06ffb2..ac4f784e2 100644 --- a/test/cases/inner-graph/extend-class/test.filter.js +++ b/test/cases/inner-graph/extend-class/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassStaticBlock = require("../../../helpers/supportsClassStaticBlock"); module.exports = () => supportsClassStaticBlock(); diff --git a/test/cases/inner-graph/extend-class2/test.filter.js b/test/cases/inner-graph/extend-class2/test.filter.js index 23b06ffb2..ac4f784e2 100644 --- a/test/cases/inner-graph/extend-class2/test.filter.js +++ b/test/cases/inner-graph/extend-class2/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassStaticBlock = require("../../../helpers/supportsClassStaticBlock"); module.exports = () => supportsClassStaticBlock(); diff --git a/test/cases/json/import-assertions-type-json/errors.js b/test/cases/json/import-assertions-type-json/errors.js index c5c7bd571..8bf7e660d 100644 --- a/test/cases/json/import-assertions-type-json/errors.js +++ b/test/cases/json/import-assertions-type-json/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [{ moduleName: /data.poison/, message: /Unexpected token .+ JSON/ }] ]; diff --git a/test/cases/json/import-assertions-type-json/infrastructure-log.js b/test/cases/json/import-assertions-type-json/infrastructure-log.js index 17279bf2b..a1b07c6fd 100644 --- a/test/cases/json/import-assertions-type-json/infrastructure-log.js +++ b/test/cases/json/import-assertions-type-json/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|json.+json\/data\/poison$/ ]; diff --git a/test/cases/json/import-by-name-with-concatenation/warnings.js b/test/cases/json/import-by-name-with-concatenation/warnings.js index 82fc687d9..5abf78d3f 100644 --- a/test/cases/json/import-by-name-with-concatenation/warnings.js +++ b/test/cases/json/import-by-name-with-concatenation/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Should not import the named export '2' \(imported as 'c'\) from default-exporting module \(only default export is available soon\)/ diff --git a/test/cases/json/import-by-name/warnings.js b/test/cases/json/import-by-name/warnings.js index 82fc687d9..5abf78d3f 100644 --- a/test/cases/json/import-by-name/warnings.js +++ b/test/cases/json/import-by-name/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Should not import the named export '2' \(imported as 'c'\) from default-exporting module \(only default export is available soon\)/ diff --git a/test/cases/json/import-with-type-json/errors.js b/test/cases/json/import-with-type-json/errors.js index c5c7bd571..8bf7e660d 100644 --- a/test/cases/json/import-with-type-json/errors.js +++ b/test/cases/json/import-with-type-json/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [{ moduleName: /data.poison/, message: /Unexpected token .+ JSON/ }] ]; diff --git a/test/cases/json/import-with-type-json/infrastructure-log.js b/test/cases/json/import-with-type-json/infrastructure-log.js index 17279bf2b..a1b07c6fd 100644 --- a/test/cases/json/import-with-type-json/infrastructure-log.js +++ b/test/cases/json/import-with-type-json/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|json.+json\/data\/poison$/ ]; diff --git a/test/cases/json/reexport/warnings.js b/test/cases/json/reexport/warnings.js index c9990f3c9..68c9dce3d 100644 --- a/test/cases/json/reexport/warnings.js +++ b/test/cases/json/reexport/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Should not import the named export 'named' \(reexported as 'fNamed'\) from default-exporting module \(only default export is available soon\)/ diff --git a/test/cases/large/big-assets/test.config.js b/test/cases/large/big-assets/test.config.js index 7ab4fa5ee..a216fc58b 100644 --- a/test/cases/large/big-assets/test.config.js +++ b/test/cases/large/big-assets/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { timeout: 120000 }; diff --git a/test/cases/large/big-assets/test.filter.js b/test/cases/large/big-assets/test.filter.js index 1338bc1e7..f1925767d 100644 --- a/test/cases/large/big-assets/test.filter.js +++ b/test/cases/large/big-assets/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => !process.env.CI; diff --git a/test/cases/large/many-replacements/test.config.js b/test/cases/large/many-replacements/test.config.js index 7ab4fa5ee..a216fc58b 100644 --- a/test/cases/large/many-replacements/test.config.js +++ b/test/cases/large/many-replacements/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { timeout: 120000 }; diff --git a/test/cases/large/many-replacements/test.filter.js b/test/cases/large/many-replacements/test.filter.js index 1338bc1e7..f1925767d 100644 --- a/test/cases/large/many-replacements/test.filter.js +++ b/test/cases/large/many-replacements/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => !process.env.CI; diff --git a/test/cases/loaders/_esm-loader-type/test.filter.js b/test/cases/loaders/_esm-loader-type/test.filter.js index 294c39f26..9092dfaef 100644 --- a/test/cases/loaders/_esm-loader-type/test.filter.js +++ b/test/cases/loaders/_esm-loader-type/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = () => // TODO need fix in v8 https://github.com/nodejs/node/issues/35889 // TODO otherwise this test case cause segment fault diff --git a/test/cases/loaders/context/test.filter.js b/test/cases/loaders/context/test.filter.js index 3f0358f64..c628302b5 100644 --- a/test/cases/loaders/context/test.filter.js +++ b/test/cases/loaders/context/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = config => !config.module || supportsRequireInModule(); diff --git a/test/cases/loaders/emit-file/test.filter.js b/test/cases/loaders/emit-file/test.filter.js index e5009984c..77aeb868d 100644 --- a/test/cases/loaders/emit-file/test.filter.js +++ b/test/cases/loaders/emit-file/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.module; diff --git a/test/cases/loaders/import-module/test.filter.js b/test/cases/loaders/import-module/test.filter.js index e5009984c..77aeb868d 100644 --- a/test/cases/loaders/import-module/test.filter.js +++ b/test/cases/loaders/import-module/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.module; diff --git a/test/cases/loaders/no-string/errors.js b/test/cases/loaders/no-string/errors.js index 79aef6533..c00f47dcf 100644 --- a/test/cases/loaders/no-string/errors.js +++ b/test/cases/loaders/no-string/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ { diff --git a/test/cases/loaders/no-string/infrastructure-log.js b/test/cases/loaders/no-string/infrastructure-log.js index af316e724..dd0f18a4e 100644 --- a/test/cases/loaders/no-string/infrastructure-log.js +++ b/test/cases/loaders/no-string/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules.+no-string[/\\]loader\.js!.+no-string[/\\]file\.js$/ ]; diff --git a/test/cases/loaders/pug-loader/test.filter.js b/test/cases/loaders/pug-loader/test.filter.js index 3f0358f64..c628302b5 100644 --- a/test/cases/loaders/pug-loader/test.filter.js +++ b/test/cases/loaders/pug-loader/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = config => !config.module || supportsRequireInModule(); diff --git a/test/cases/mjs/non-enumerable/errors.js b/test/cases/mjs/non-enumerable/errors.js index 95a95c2df..cf0578b52 100644 --- a/test/cases/mjs/non-enumerable/errors.js +++ b/test/cases/mjs/non-enumerable/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ diff --git a/test/cases/mjs/non-enumerable/warnings.js b/test/cases/mjs/non-enumerable/warnings.js index d2ed9734d..89e5ccf47 100644 --- a/test/cases/mjs/non-enumerable/warnings.js +++ b/test/cases/mjs/non-enumerable/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/ diff --git a/test/cases/optimize/side-effects-all-chain-unused/test.filter.js b/test/cases/optimize/side-effects-all-chain-unused/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-all-chain-unused/test.filter.js +++ b/test/cases/optimize/side-effects-all-chain-unused/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-all-used/test.filter.js b/test/cases/optimize/side-effects-all-used/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-all-used/test.filter.js +++ b/test/cases/optimize/side-effects-all-used/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-immediate-unused/test.filter.js b/test/cases/optimize/side-effects-immediate-unused/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-immediate-unused/test.filter.js +++ b/test/cases/optimize/side-effects-immediate-unused/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-reexport-start-unknown/test.filter.js b/test/cases/optimize/side-effects-reexport-start-unknown/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-reexport-start-unknown/test.filter.js +++ b/test/cases/optimize/side-effects-reexport-start-unknown/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-root-unused/test.filter.js b/test/cases/optimize/side-effects-root-unused/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-root-unused/test.filter.js +++ b/test/cases/optimize/side-effects-root-unused/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-simple-unused/test.filter.js b/test/cases/optimize/side-effects-simple-unused/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-simple-unused/test.filter.js +++ b/test/cases/optimize/side-effects-simple-unused/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/optimize/side-effects-transitive-unused/test.filter.js b/test/cases/optimize/side-effects-transitive-unused/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/optimize/side-effects-transitive-unused/test.filter.js +++ b/test/cases/optimize/side-effects-transitive-unused/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/parsing/asi/warnings.js b/test/cases/parsing/asi/warnings.js index 39b26d59c..2f82ab9e4 100644 --- a/test/cases/parsing/asi/warnings.js +++ b/test/cases/parsing/asi/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Critical dependency: Accessing import\.meta/]]; diff --git a/test/cases/parsing/chunks/test.filter.js b/test/cases/parsing/chunks/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/parsing/chunks/test.filter.js +++ b/test/cases/parsing/chunks/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/parsing/class-properties/test.filter.js b/test/cases/parsing/class-properties/test.filter.js index 138d99564..aa94ec7b4 100644 --- a/test/cases/parsing/class-properties/test.filter.js +++ b/test/cases/parsing/class-properties/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassFields = require("../../../helpers/supportsClassFields"); module.exports = () => supportsClassFields(); diff --git a/test/cases/parsing/class/test.filter.js b/test/cases/parsing/class/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/parsing/class/test.filter.js +++ b/test/cases/parsing/class/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/parsing/complex-require/test.filter.js b/test/cases/parsing/complex-require/test.filter.js index 6a3c5ad04..94ce548e8 100644 --- a/test/cases/parsing/complex-require/test.filter.js +++ b/test/cases/parsing/complex-require/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsTemplateStrings = require("../../../helpers/supportsTemplateStrings"); module.exports = () => supportsTemplateStrings(); diff --git a/test/cases/parsing/context/errors.js b/test/cases/parsing/context/errors.js index ab18d4d54..779f16992 100644 --- a/test/cases/parsing/context/errors.js +++ b/test/cases/parsing/context/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module parse failed/, diff --git a/test/cases/parsing/context/infrastructure-log.js b/test/cases/parsing/context/infrastructure-log.js index e458f8528..fe6c3fa6e 100644 --- a/test/cases/parsing/context/infrastructure-log.js +++ b/test/cases/parsing/context/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|.+dump-file\.txt/ ]; diff --git a/test/cases/parsing/context/warnings.js b/test/cases/parsing/context/warnings.js index 695381d68..e1f4aff31 100644 --- a/test/cases/parsing/context/warnings.js +++ b/test/cases/parsing/context/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Critical dependency/, { moduleName: /templateLoader\.js/ }], [/Critical dependency/, { moduleName: /templateLoaderIndirect\.js/ }], diff --git a/test/cases/parsing/es2020/test.filter.js b/test/cases/parsing/es2020/test.filter.js index 138d99564..aa94ec7b4 100644 --- a/test/cases/parsing/es2020/test.filter.js +++ b/test/cases/parsing/es2020/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassFields = require("../../../helpers/supportsClassFields"); module.exports = () => supportsClassFields(); diff --git a/test/cases/parsing/es2022/test.filter.js b/test/cases/parsing/es2022/test.filter.js index ec8c61db6..1f02b2ab2 100644 --- a/test/cases/parsing/es2022/test.filter.js +++ b/test/cases/parsing/es2022/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function (config) { try { eval("class A { static {} }"); diff --git a/test/cases/parsing/es6.nominimize/test.filter.js b/test/cases/parsing/es6.nominimize/test.filter.js index 7d7636a77..5de300804 100644 --- a/test/cases/parsing/es6.nominimize/test.filter.js +++ b/test/cases/parsing/es6.nominimize/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + var supportsES6 = require("../../../helpers/supportsES6"); module.exports = function (config) { diff --git a/test/cases/parsing/evaluate-nullish/test.filter.js b/test/cases/parsing/evaluate-nullish/test.filter.js index e1c1a296c..31fd9b925 100644 --- a/test/cases/parsing/evaluate-nullish/test.filter.js +++ b/test/cases/parsing/evaluate-nullish/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsNullishCoalescing = require("../../../helpers/supportsNullishCoalescing"); module.exports = () => supportsNullishCoalescing(); diff --git a/test/cases/parsing/extract-amd.nominimize/test.filter.js b/test/cases/parsing/extract-amd.nominimize/test.filter.js index 7d7636a77..5de300804 100644 --- a/test/cases/parsing/extract-amd.nominimize/test.filter.js +++ b/test/cases/parsing/extract-amd.nominimize/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + var supportsES6 = require("../../../helpers/supportsES6"); module.exports = function (config) { diff --git a/test/cases/parsing/extract-amd.nominimize/warnings.js b/test/cases/parsing/extract-amd.nominimize/warnings.js index aa20932a1..b67ffb5ff 100644 --- a/test/cases/parsing/extract-amd.nominimize/warnings.js +++ b/test/cases/parsing/extract-amd.nominimize/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module not found/, /Can't resolve '\.\/b' /, {details: /b\.js/}] ]; diff --git a/test/cases/parsing/extract-amd/warnings.js b/test/cases/parsing/extract-amd/warnings.js index 418492a70..f70e442d1 100644 --- a/test/cases/parsing/extract-amd/warnings.js +++ b/test/cases/parsing/extract-amd/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module not found/, /Can't resolve '\.\/b' /, { details: /b\.js/ }] ]; diff --git a/test/cases/parsing/extract-require/errors.js b/test/cases/parsing/extract-require/errors.js index cb2596c11..ce8b05231 100644 --- a/test/cases/parsing/extract-require/errors.js +++ b/test/cases/parsing/extract-require/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module not found/, diff --git a/test/cases/parsing/harmony-destructuring-assignment/test.filter.js b/test/cases/parsing/harmony-destructuring-assignment/test.filter.js index 1c043701a..3952ef072 100644 --- a/test/cases/parsing/harmony-destructuring-assignment/test.filter.js +++ b/test/cases/parsing/harmony-destructuring-assignment/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = config => // This test can't run in development mode config.mode !== "development"; diff --git a/test/cases/parsing/harmony-duplicate-export/warnings.js b/test/cases/parsing/harmony-duplicate-export/warnings.js index c8d978d53..912106db5 100644 --- a/test/cases/parsing/harmony-duplicate-export/warnings.js +++ b/test/cases/parsing/harmony-duplicate-export/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/name 'x'/, /\.\/a\?3/, /\.\/b\?3/], [/name 'x'/, /\.\/a\?4/, /\.\/b\?4/], diff --git a/test/cases/parsing/harmony-export-precedence/warnings.js b/test/cases/parsing/harmony-export-precedence/warnings.js index af730a435..f7b6b69e3 100644 --- a/test/cases/parsing/harmony-export-precedence/warnings.js +++ b/test/cases/parsing/harmony-export-precedence/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export 'default' \(imported as 'defaultImport'\) was not found in '.\/a' \(possible exports: a, b, c, d, e, f\)/ diff --git a/test/cases/parsing/harmony-info/warnings.js b/test/cases/parsing/harmony-info/warnings.js index d1b24b0fb..c2a06f603 100644 --- a/test/cases/parsing/harmony-info/warnings.js +++ b/test/cases/parsing/harmony-info/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export 'default' \(imported as 'def'\) was not found in '\.\/module' \(possible exports: b, c, d\)/ diff --git a/test/cases/parsing/harmony-star-conflict/warnings.js b/test/cases/parsing/harmony-star-conflict/warnings.js index 04bf49cc8..d96093384 100644 --- a/test/cases/parsing/harmony-star-conflict/warnings.js +++ b/test/cases/parsing/harmony-star-conflict/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /conflicting star exports/, diff --git a/test/cases/parsing/harmony-tdz/test.filter.js b/test/cases/parsing/harmony-tdz/test.filter.js index 2781bd3ac..c814a32de 100644 --- a/test/cases/parsing/harmony-tdz/test.filter.js +++ b/test/cases/parsing/harmony-tdz/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsBlockScoping = require("../../../helpers/supportsBlockScoping"); module.exports = () => supportsBlockScoping(); diff --git a/test/cases/parsing/iife/test.filter.js b/test/cases/parsing/iife/test.filter.js index a05dab2a4..f1fbc3fab 100644 --- a/test/cases/parsing/iife/test.filter.js +++ b/test/cases/parsing/iife/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = config => // TODO fails due to minimizer bug: https://github.com/terser/terser/issues/880 !config.minimize; diff --git a/test/cases/parsing/issue-16763/test.filter.js b/test/cases/parsing/issue-16763/test.filter.js index 23b06ffb2..ac4f784e2 100644 --- a/test/cases/parsing/issue-16763/test.filter.js +++ b/test/cases/parsing/issue-16763/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassStaticBlock = require("../../../helpers/supportsClassStaticBlock"); module.exports = () => supportsClassStaticBlock(); diff --git a/test/cases/parsing/issue-2006/errors.js b/test/cases/parsing/issue-2006/errors.js index 2b82b710b..5d92e84e2 100644 --- a/test/cases/parsing/issue-2006/errors.js +++ b/test/cases/parsing/issue-2006/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Empty dependency/]]; diff --git a/test/cases/parsing/issue-2522/test.filter.js b/test/cases/parsing/issue-2522/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/parsing/issue-2522/test.filter.js +++ b/test/cases/parsing/issue-2522/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/parsing/issue-2523/test.filter.js b/test/cases/parsing/issue-2523/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/parsing/issue-2523/test.filter.js +++ b/test/cases/parsing/issue-2523/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/parsing/issue-2600/errors.js b/test/cases/parsing/issue-2600/errors.js index 9cd234c73..84a3e56f4 100644 --- a/test/cases/parsing/issue-2600/errors.js +++ b/test/cases/parsing/issue-2600/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Can't resolve 'missing'/]]; diff --git a/test/cases/parsing/issue-2618/test.filter.js b/test/cases/parsing/issue-2618/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/parsing/issue-2618/test.filter.js +++ b/test/cases/parsing/issue-2618/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/parsing/issue-2622/test.filter.js b/test/cases/parsing/issue-2622/test.filter.js index c7920056f..c149008f9 100644 --- a/test/cases/parsing/issue-2622/test.filter.js +++ b/test/cases/parsing/issue-2622/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsDefaultArgs = require("../../../helpers/supportsDefaultArgs"); module.exports = () => supportsDefaultArgs(); diff --git a/test/cases/parsing/issue-2641/errors.js b/test/cases/parsing/issue-2641/errors.js index 4c8eabefc..ec7564051 100644 --- a/test/cases/parsing/issue-2641/errors.js +++ b/test/cases/parsing/issue-2641/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/, /Can't resolve '\.\/missingModule' /]]; diff --git a/test/cases/parsing/issue-2895/test.filter.js b/test/cases/parsing/issue-2895/test.filter.js index 2781bd3ac..c814a32de 100644 --- a/test/cases/parsing/issue-2895/test.filter.js +++ b/test/cases/parsing/issue-2895/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsBlockScoping = require("../../../helpers/supportsBlockScoping"); module.exports = () => supportsBlockScoping(); diff --git a/test/cases/parsing/issue-3238/test.filter.js b/test/cases/parsing/issue-3238/test.filter.js index 5fdfc3bfa..2141d5ffd 100644 --- a/test/cases/parsing/issue-3238/test.filter.js +++ b/test/cases/parsing/issue-3238/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring"); module.exports = () => supportsIteratorDestructuring(); diff --git a/test/cases/parsing/issue-3252/test.filter.js b/test/cases/parsing/issue-3252/test.filter.js index ac62718aa..d502775c6 100644 --- a/test/cases/parsing/issue-3252/test.filter.js +++ b/test/cases/parsing/issue-3252/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsDefaultAssignment = require("../../../helpers/supportDefaultAssignment"); module.exports = () => supportsDefaultAssignment(); diff --git a/test/cases/parsing/issue-3273/test.filter.js b/test/cases/parsing/issue-3273/test.filter.js index aba11ca2c..bf3629478 100644 --- a/test/cases/parsing/issue-3273/test.filter.js +++ b/test/cases/parsing/issue-3273/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsDefaultAssignment = require("../../../helpers/supportDefaultAssignment"); const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring"); diff --git a/test/cases/parsing/issue-4357/test.filter.js b/test/cases/parsing/issue-4357/test.filter.js index c101b0f8a..a3efcdbae 100644 --- a/test/cases/parsing/issue-4357/test.filter.js +++ b/test/cases/parsing/issue-4357/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring"); const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring"); diff --git a/test/cases/parsing/issue-4608-1-non-strict/test.filter.js b/test/cases/parsing/issue-4608-1-non-strict/test.filter.js index e5009984c..77aeb868d 100644 --- a/test/cases/parsing/issue-4608-1-non-strict/test.filter.js +++ b/test/cases/parsing/issue-4608-1-non-strict/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.module; diff --git a/test/cases/parsing/issue-4608-2/test.filter.js b/test/cases/parsing/issue-4608-2/test.filter.js index 4e356f554..e25c68e82 100644 --- a/test/cases/parsing/issue-4608-2/test.filter.js +++ b/test/cases/parsing/issue-4608-2/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsForOf = require("../../../helpers/supportsForOf"); module.exports = () => supportsForOf(); diff --git a/test/cases/parsing/issue-4870/test.filter.js b/test/cases/parsing/issue-4870/test.filter.js index d04961583..c1f2e57aa 100644 --- a/test/cases/parsing/issue-4870/test.filter.js +++ b/test/cases/parsing/issue-4870/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring"); const supportsObjectDestructuring = require("../../../helpers/supportsObjectDestructuring"); diff --git a/test/cases/parsing/issue-627/warnings.js b/test/cases/parsing/issue-627/warnings.js index f1a4bb46d..3d97c41e2 100644 --- a/test/cases/parsing/issue-627/warnings.js +++ b/test/cases/parsing/issue-627/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Critical dependency/]]; diff --git a/test/cases/parsing/issue-7519/test.filter.js b/test/cases/parsing/issue-7519/test.filter.js index 2d8fc7eb3..24f50b1aa 100644 --- a/test/cases/parsing/issue-7519/test.filter.js +++ b/test/cases/parsing/issue-7519/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.mode !== "development"; diff --git a/test/cases/parsing/issue-758/errors.js b/test/cases/parsing/issue-758/errors.js index 4c8eabefc..ec7564051 100644 --- a/test/cases/parsing/issue-758/errors.js +++ b/test/cases/parsing/issue-758/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/, /Can't resolve '\.\/missingModule' /]]; diff --git a/test/cases/parsing/logical-assignment/test.filter.js b/test/cases/parsing/logical-assignment/test.filter.js index 1cf3a4f5c..1417bb562 100644 --- a/test/cases/parsing/logical-assignment/test.filter.js +++ b/test/cases/parsing/logical-assignment/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsLogicalAssignment = require("../../../helpers/supportsLogicalAssignment"); module.exports = () => supportsLogicalAssignment(); diff --git a/test/cases/parsing/missing-export-warning-nested/warnings.js b/test/cases/parsing/missing-export-warning-nested/warnings.js index fd18632ce..75ae543b2 100644 --- a/test/cases/parsing/missing-export-warning-nested/warnings.js +++ b/test/cases/parsing/missing-export-warning-nested/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export 'A' \(imported as 'm'\) was not found in '.\/a' \(possible exports: a, x\)/ diff --git a/test/cases/parsing/nullish-coalescing/test.filter.js b/test/cases/parsing/nullish-coalescing/test.filter.js index e1c1a296c..31fd9b925 100644 --- a/test/cases/parsing/nullish-coalescing/test.filter.js +++ b/test/cases/parsing/nullish-coalescing/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsNullishCoalescing = require("../../../helpers/supportsNullishCoalescing"); module.exports = () => supportsNullishCoalescing(); diff --git a/test/cases/parsing/optional-catch-binding/test.filter.js b/test/cases/parsing/optional-catch-binding/test.filter.js index 0a2d97c94..2415a49df 100644 --- a/test/cases/parsing/optional-catch-binding/test.filter.js +++ b/test/cases/parsing/optional-catch-binding/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalCatchBinding = require("../../../helpers/supportsOptionalCatchBinding"); module.exports = () => supportsOptionalCatchBinding(); diff --git a/test/cases/parsing/optional-chaining/test.filter.js b/test/cases/parsing/optional-chaining/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/cases/parsing/optional-chaining/test.filter.js +++ b/test/cases/parsing/optional-chaining/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/cases/parsing/spread/test.filter.js b/test/cases/parsing/spread/test.filter.js index a0dcbdf7d..2d29d5a24 100644 --- a/test/cases/parsing/spread/test.filter.js +++ b/test/cases/parsing/spread/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsSpread = require("../../../helpers/supportsSpread"); module.exports = () => supportsSpread(); diff --git a/test/cases/parsing/typeof-non-module/test.filter.js b/test/cases/parsing/typeof-non-module/test.filter.js index e5009984c..77aeb868d 100644 --- a/test/cases/parsing/typeof-non-module/test.filter.js +++ b/test/cases/parsing/typeof-non-module/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.module; diff --git a/test/cases/parsing/typeof/warnings.js b/test/cases/parsing/typeof/warnings.js index 596374912..14073052d 100644 --- a/test/cases/parsing/typeof/warnings.js +++ b/test/cases/parsing/typeof/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/require.include\(\) is deprecated and will be removed soon/], [/require.include\(\) is deprecated and will be removed soon/] diff --git a/test/cases/parsing/unsupported-amd/errors.js b/test/cases/parsing/unsupported-amd/errors.js index 05470a57d..2ff503f1f 100644 --- a/test/cases/parsing/unsupported-amd/errors.js +++ b/test/cases/parsing/unsupported-amd/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Cannot statically analyse/, /in line 4/], [/Cannot statically analyse/, /in line 12/] diff --git a/test/cases/parsing/using/test.filter.js b/test/cases/parsing/using/test.filter.js index 8707b455f..e52a5171f 100644 --- a/test/cases/parsing/using/test.filter.js +++ b/test/cases/parsing/using/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsUsing = require("../../../helpers/supportsUsing"); module.exports = config => { diff --git a/test/cases/resolving/browser-field/errors.js b/test/cases/resolving/browser-field/errors.js index 43f6c3086..758f46b29 100644 --- a/test/cases/resolving/browser-field/errors.js +++ b/test/cases/resolving/browser-field/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module not found/, /recursive-file\/a/, /Recursion in resolving/], [/Module not found/, /recursive-file\/b/, /Recursion in resolving/], diff --git a/test/cases/resolving/issue-2986/errors.js b/test/cases/resolving/issue-2986/errors.js index a3760f3d0..9e35b72bb 100644 --- a/test/cases/resolving/issue-2986/errors.js +++ b/test/cases/resolving/issue-2986/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Can't resolve 'any' in/, /BREAKING CHANGE/, /any-loader/], [/Can't resolve 'other' in/] diff --git a/test/cases/runtime/error-handling/errors.js b/test/cases/runtime/error-handling/errors.js index 033213109..459201edd 100644 --- a/test/cases/runtime/error-handling/errors.js +++ b/test/cases/runtime/error-handling/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module not found/, diff --git a/test/cases/runtime/error-handling/warnings.js b/test/cases/runtime/error-handling/warnings.js index c005d4830..db37ab4bd 100644 --- a/test/cases/runtime/error-handling/warnings.js +++ b/test/cases/runtime/error-handling/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module not found/, diff --git a/test/cases/runtime/missing-module-exception-dynamic-import/warnings.js b/test/cases/runtime/missing-module-exception-dynamic-import/warnings.js index f0cafe0c4..0aca9120c 100644 --- a/test/cases/runtime/missing-module-exception-dynamic-import/warnings.js +++ b/test/cases/runtime/missing-module-exception-dynamic-import/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module not found/, /Can't resolve '\.\/fail-1' /], [/Module not found/, /Can't resolve '\.\/fail-2' /], diff --git a/test/cases/runtime/missing-module-exception-require/warnings.js b/test/cases/runtime/missing-module-exception-require/warnings.js index f0cafe0c4..0aca9120c 100644 --- a/test/cases/runtime/missing-module-exception-require/warnings.js +++ b/test/cases/runtime/missing-module-exception-require/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Module not found/, /Can't resolve '\.\/fail-1' /], [/Module not found/, /Can't resolve '\.\/fail-2' /], diff --git a/test/cases/runtime/missing-module-syntax-error/errors.js b/test/cases/runtime/missing-module-syntax-error/errors.js index ced71bb99..73329ef5a 100644 --- a/test/cases/runtime/missing-module-syntax-error/errors.js +++ b/test/cases/runtime/missing-module-syntax-error/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/, /Can't resolve '\.\/someModule' /]]; diff --git a/test/cases/scope-hoisting/inside-class/test.filter.js b/test/cases/scope-hoisting/inside-class/test.filter.js index a5052b050..e6814dfde 100644 --- a/test/cases/scope-hoisting/inside-class/test.filter.js +++ b/test/cases/scope-hoisting/inside-class/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsES6 = require("../../../helpers/supportsES6"); module.exports = () => supportsES6(); diff --git a/test/cases/scope-hoisting/json-reexport-6700/warnings.js b/test/cases/scope-hoisting/json-reexport-6700/warnings.js index 1bce6f573..f905ae87c 100644 --- a/test/cases/scope-hoisting/json-reexport-6700/warnings.js +++ b/test/cases/scope-hoisting/json-reexport-6700/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Should not import the named export 'a' \(reexported as 'a'\) from default-exporting module \(only default export is available soon\)/ diff --git a/test/cases/scope-hoisting/renaming-shorthand-5027/test.filter.js b/test/cases/scope-hoisting/renaming-shorthand-5027/test.filter.js index eeaa66291..798de0775 100644 --- a/test/cases/scope-hoisting/renaming-shorthand-5027/test.filter.js +++ b/test/cases/scope-hoisting/renaming-shorthand-5027/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportDefaultAssignment = require("../../../helpers/supportDefaultAssignment"); const supportsES6 = require("../../../helpers/supportsES6"); const supportsIteratorDestructuring = require("../../../helpers/supportsIteratorDestructuring"); diff --git a/test/cases/side-effects/dynamic-reexports/warnings.js b/test/cases/side-effects/dynamic-reexports/warnings.js index 82181f096..ee82907fd 100644 --- a/test/cases/side-effects/dynamic-reexports/warnings.js +++ b/test/cases/side-effects/dynamic-reexports/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /export 'default' \(imported as 'Default1'\) was not found in '\.\/direct-export'/ diff --git a/test/cases/side-effects/issue-11673/test.filter.js b/test/cases/side-effects/issue-11673/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/cases/side-effects/issue-11673/test.filter.js +++ b/test/cases/side-effects/issue-11673/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/cases/wasm/decoding/test.filter.js b/test/cases/wasm/decoding/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/decoding/test.filter.js +++ b/test/cases/wasm/decoding/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/export-imported-global/test.filter.js b/test/cases/wasm/export-imported-global/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/export-imported-global/test.filter.js +++ b/test/cases/wasm/export-imported-global/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/finalize-exports-issue-8261/test.filter.js b/test/cases/wasm/finalize-exports-issue-8261/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/finalize-exports-issue-8261/test.filter.js +++ b/test/cases/wasm/finalize-exports-issue-8261/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/global-refs-imported-global/test.filter.js b/test/cases/wasm/global-refs-imported-global/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/global-refs-imported-global/test.filter.js +++ b/test/cases/wasm/global-refs-imported-global/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/import-wasm-wasm/test.filter.js b/test/cases/wasm/import-wasm-wasm/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/import-wasm-wasm/test.filter.js +++ b/test/cases/wasm/import-wasm-wasm/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imported-global-preserve-ordering/test.filter.js b/test/cases/wasm/imported-global-preserve-ordering/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imported-global-preserve-ordering/test.filter.js +++ b/test/cases/wasm/imported-global-preserve-ordering/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imported-global-preserve-type/test.filter.js b/test/cases/wasm/imported-global-preserve-type/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imported-global-preserve-type/test.filter.js +++ b/test/cases/wasm/imported-global-preserve-type/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imports-circular/test.filter.js b/test/cases/wasm/imports-circular/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imports-circular/test.filter.js +++ b/test/cases/wasm/imports-circular/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imports-complex-types/test.filter.js b/test/cases/wasm/imports-complex-types/test.filter.js index b432d6736..ad3939f9b 100644 --- a/test/cases/wasm/imports-complex-types/test.filter.js +++ b/test/cases/wasm/imports-complex-types/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supports = require("webassembly-feature"); module.exports = () => supports.simd(); diff --git a/test/cases/wasm/imports-many-direct/test.filter.js b/test/cases/wasm/imports-many-direct/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imports-many-direct/test.filter.js +++ b/test/cases/wasm/imports-many-direct/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imports-multiple/test.filter.js b/test/cases/wasm/imports-multiple/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imports-multiple/test.filter.js +++ b/test/cases/wasm/imports-multiple/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/imports/test.filter.js b/test/cases/wasm/imports/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/imports/test.filter.js +++ b/test/cases/wasm/imports/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/memory/test.filter.js b/test/cases/wasm/memory/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/memory/test.filter.js +++ b/test/cases/wasm/memory/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/order/test.filter.js b/test/cases/wasm/order/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/order/test.filter.js +++ b/test/cases/wasm/order/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/simple/test.filter.js b/test/cases/wasm/simple/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/simple/test.filter.js +++ b/test/cases/wasm/simple/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/table/test.filter.js b/test/cases/wasm/table/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/table/test.filter.js +++ b/test/cases/wasm/table/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/two-files-loader/test.filter.js b/test/cases/wasm/two-files-loader/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/two-files-loader/test.filter.js +++ b/test/cases/wasm/two-files-loader/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/unused-export/test.filter.js b/test/cases/wasm/unused-export/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/unused-export/test.filter.js +++ b/test/cases/wasm/unused-export/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/v128/test.filter.js b/test/cases/wasm/v128/test.filter.js index 35ea01d79..d3b7dee19 100644 --- a/test/cases/wasm/v128/test.filter.js +++ b/test/cases/wasm/v128/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + // const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); // const supportsFeature = require("webassembly-feature"); diff --git a/test/cases/wasm/wasm-explorer-examples-async/test.filter.js b/test/cases/wasm/wasm-explorer-examples-async/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/wasm-explorer-examples-async/test.filter.js +++ b/test/cases/wasm/wasm-explorer-examples-async/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/cases/wasm/wasm-explorer-examples-sync/test.filter.js b/test/cases/wasm/wasm-explorer-examples-sync/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/cases/wasm/wasm-explorer-examples-sync/test.filter.js +++ b/test/cases/wasm/wasm-explorer-examples-sync/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/compareStringsNumeric.unittest.js b/test/compareStringsNumeric.unittest.js index aa1716adf..24ce1e6df 100644 --- a/test/compareStringsNumeric.unittest.js +++ b/test/compareStringsNumeric.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { compareStringsNumeric } = require("../lib/util/comparators"); /** diff --git a/test/configCases/additional-pass/simple/webpack.config.js b/test/configCases/additional-pass/simple/webpack.config.js index aa5d36ce5..722184268 100644 --- a/test/configCases/additional-pass/simple/webpack.config.js +++ b/test/configCases/additional-pass/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").WebpackPluginFunction} */ function testPlugin() { let counter = 1; diff --git a/test/configCases/amd/disabled/webpack.config.js b/test/configCases/amd/disabled/webpack.config.js index d28e3ce5a..0571bde76 100644 --- a/test/configCases/amd/disabled/webpack.config.js +++ b/test/configCases/amd/disabled/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { amd: false diff --git a/test/configCases/asset-emitted/normal/webpack.config.js b/test/configCases/asset-emitted/normal/webpack.config.js index dcf5bbbce..1b290a41b 100644 --- a/test/configCases/asset-emitted/normal/webpack.config.js +++ b/test/configCases/asset-emitted/normal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const Source = require("webpack-sources").Source; const Compilation = require("../../../../").Compilation; diff --git a/test/configCases/asset-modules/assetModuleFilename/webpack.config.js b/test/configCases/asset-modules/assetModuleFilename/webpack.config.js index d82e276a2..eee4fee16 100644 --- a/test/configCases/asset-modules/assetModuleFilename/webpack.config.js +++ b/test/configCases/asset-modules/assetModuleFilename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/base-uri/webpack.config.js b/test/configCases/asset-modules/base-uri/webpack.config.js index fbec9a543..d6a36335a 100644 --- a/test/configCases/asset-modules/base-uri/webpack.config.js +++ b/test/configCases/asset-modules/base-uri/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { mode: "development", target: "web", diff --git a/test/configCases/asset-modules/build-http/webpack.config.js b/test/configCases/asset-modules/build-http/webpack.config.js index 8884b9730..f3fa6ee1e 100644 --- a/test/configCases/asset-modules/build-http/webpack.config.js +++ b/test/configCases/asset-modules/build-http/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/asset-modules/custom-condition/webpack.config.js b/test/configCases/asset-modules/custom-condition/webpack.config.js index ccdc354bf..82d5f131e 100644 --- a/test/configCases/asset-modules/custom-condition/webpack.config.js +++ b/test/configCases/asset-modules/custom-condition/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const NormalModule = require("../../../../").NormalModule; diff --git a/test/configCases/asset-modules/custom-encoder/webpack.config.js b/test/configCases/asset-modules/custom-encoder/webpack.config.js index e65597781..d79b9c9d6 100644 --- a/test/configCases/asset-modules/custom-encoder/webpack.config.js +++ b/test/configCases/asset-modules/custom-encoder/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/data-url-broken/errors.js b/test/configCases/asset-modules/data-url-broken/errors.js index 7eb520855..5eb767368 100644 --- a/test/configCases/asset-modules/data-url-broken/errors.js +++ b/test/configCases/asset-modules/data-url-broken/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /You may need an additional plugin to handle "unknown:" URIs./ ]; diff --git a/test/configCases/asset-modules/data-url-broken/infrastructure-log.js b/test/configCases/asset-modules/data-url-broken/infrastructure-log.js index 10532afb6..b687f5038 100644 --- a/test/configCases/asset-modules/data-url-broken/infrastructure-log.js +++ b/test/configCases/asset-modules/data-url-broken/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = options => { if (options.cache && options.cache.type === "filesystem") { return [/Pack got invalid because of write to/]; diff --git a/test/configCases/asset-modules/data-url-broken/webpack.config.js b/test/configCases/asset-modules/data-url-broken/webpack.config.js index ab9e619ce..ffd2bf565 100644 --- a/test/configCases/asset-modules/data-url-broken/webpack.config.js +++ b/test/configCases/asset-modules/data-url-broken/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/data-url-extract/webpack.config.js b/test/configCases/asset-modules/data-url-extract/webpack.config.js index 540e6dcb7..ea18d6563 100644 --- a/test/configCases/asset-modules/data-url-extract/webpack.config.js +++ b/test/configCases/asset-modules/data-url-extract/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/data-url/webpack.config.js b/test/configCases/asset-modules/data-url/webpack.config.js index ab9e619ce..ffd2bf565 100644 --- a/test/configCases/asset-modules/data-url/webpack.config.js +++ b/test/configCases/asset-modules/data-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/different-query/webpack.config.js b/test/configCases/asset-modules/different-query/webpack.config.js index 2a2dd0d26..3081027bc 100644 --- a/test/configCases/asset-modules/different-query/webpack.config.js +++ b/test/configCases/asset-modules/different-query/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { mode: "development", target: "web" diff --git a/test/configCases/asset-modules/emit/webpack.config.js b/test/configCases/asset-modules/emit/webpack.config.js index f764349bb..efd50f7a3 100644 --- a/test/configCases/asset-modules/emit/webpack.config.js +++ b/test/configCases/asset-modules/emit/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/entry-with-runtimeChunk/test.config.js b/test/configCases/asset-modules/entry-with-runtimeChunk/test.config.js index 48bb5fe37..e67555151 100644 --- a/test/configCases/asset-modules/entry-with-runtimeChunk/test.config.js +++ b/test/configCases/asset-modules/entry-with-runtimeChunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i, options) { const ext = options.output.module ? "mjs" : "js"; diff --git a/test/configCases/asset-modules/entry-with-runtimeChunk/webpack.config.js b/test/configCases/asset-modules/entry-with-runtimeChunk/webpack.config.js index 1a07a7561..5f613eb50 100644 --- a/test/configCases/asset-modules/entry-with-runtimeChunk/webpack.config.js +++ b/test/configCases/asset-modules/entry-with-runtimeChunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/asset-modules/errored/errors.js b/test/configCases/asset-modules/errored/errors.js index 6cc186c0e..6552ad5e9 100644 --- a/test/configCases/asset-modules/errored/errors.js +++ b/test/configCases/asset-modules/errored/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/Error from loader/]; diff --git a/test/configCases/asset-modules/errored/infrastructure-log.js b/test/configCases/asset-modules/errored/infrastructure-log.js index 10532afb6..b687f5038 100644 --- a/test/configCases/asset-modules/errored/infrastructure-log.js +++ b/test/configCases/asset-modules/errored/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = options => { if (options.cache && options.cache.type === "filesystem") { return [/Pack got invalid because of write to/]; diff --git a/test/configCases/asset-modules/errored/test.config.js b/test/configCases/asset-modules/errored/test.config.js index 2fddc833b..dd39bf2b2 100644 --- a/test/configCases/asset-modules/errored/test.config.js +++ b/test/configCases/asset-modules/errored/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/asset-modules/errored/webpack.config.js b/test/configCases/asset-modules/errored/webpack.config.js index febc2672c..830fd2ba8 100644 --- a/test/configCases/asset-modules/errored/webpack.config.js +++ b/test/configCases/asset-modules/errored/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/file-loader/webpack.config.js b/test/configCases/asset-modules/file-loader/webpack.config.js index 835a3c38e..52326f720 100644 --- a/test/configCases/asset-modules/file-loader/webpack.config.js +++ b/test/configCases/asset-modules/file-loader/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/file-url/webpack.config.js b/test/configCases/asset-modules/file-url/webpack.config.js index 9536cf18b..d6880ac54 100644 --- a/test/configCases/asset-modules/file-url/webpack.config.js +++ b/test/configCases/asset-modules/file-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { pathToFileURL } = require("url"); diff --git a/test/configCases/asset-modules/generator-asset-publicPath-hash/webpack.config.js b/test/configCases/asset-modules/generator-asset-publicPath-hash/webpack.config.js index f21eb61c8..0ac453046 100644 --- a/test/configCases/asset-modules/generator-asset-publicPath-hash/webpack.config.js +++ b/test/configCases/asset-modules/generator-asset-publicPath-hash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/generator-asset-publicPath/webpack.config.js b/test/configCases/asset-modules/generator-asset-publicPath/webpack.config.js index 8dbee301f..3ae491d52 100644 --- a/test/configCases/asset-modules/generator-asset-publicPath/webpack.config.js +++ b/test/configCases/asset-modules/generator-asset-publicPath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/global-options/webpack.config.js b/test/configCases/asset-modules/global-options/webpack.config.js index 5c9aaa2ce..710602454 100644 --- a/test/configCases/asset-modules/global-options/webpack.config.js +++ b/test/configCases/asset-modules/global-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const mimeTypes = require("mime-types"); const svgToMiniDataURI = require("mini-svg-data-uri"); diff --git a/test/configCases/asset-modules/http-url/errors.js b/test/configCases/asset-modules/http-url/errors.js index 4e46c1949..40669d69e 100644 --- a/test/configCases/asset-modules/http-url/errors.js +++ b/test/configCases/asset-modules/http-url/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /http:\/\/localhost:9990\/index\.css\?cache used to have no-cache lockfile entry and has content now, but lockfile is frozen/ diff --git a/test/configCases/asset-modules/http-url/test.config.js b/test/configCases/asset-modules/http-url/test.config.js index 718aa51dc..9677a6780 100644 --- a/test/configCases/asset-modules/http-url/test.config.js +++ b/test/configCases/asset-modules/http-url/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/asset-modules/http-url/webpack.config.js b/test/configCases/asset-modules/http-url/webpack.config.js index 426378bb0..494f754d5 100644 --- a/test/configCases/asset-modules/http-url/webpack.config.js +++ b/test/configCases/asset-modules/http-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { experiments: { schemes: { HttpUriPlugin } diff --git a/test/configCases/asset-modules/ignore/webpack.config.js b/test/configCases/asset-modules/ignore/webpack.config.js index 760607d95..49b75fc2e 100644 --- a/test/configCases/asset-modules/ignore/webpack.config.js +++ b/test/configCases/asset-modules/ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/input-data-url-encoding/webpack.config.js b/test/configCases/asset-modules/input-data-url-encoding/webpack.config.js index dd1ef6a41..bbc41a805 100644 --- a/test/configCases/asset-modules/input-data-url-encoding/webpack.config.js +++ b/test/configCases/asset-modules/input-data-url-encoding/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/input-data-url/webpack.config.js b/test/configCases/asset-modules/input-data-url/webpack.config.js index fa4618f80..5ac891b12 100644 --- a/test/configCases/asset-modules/input-data-url/webpack.config.js +++ b/test/configCases/asset-modules/input-data-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/keep-source-maps/webpack.config.js b/test/configCases/asset-modules/keep-source-maps/webpack.config.js index e18ec0545..34b0a1137 100644 --- a/test/configCases/asset-modules/keep-source-maps/webpack.config.js +++ b/test/configCases/asset-modules/keep-source-maps/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").GeneratorOptionsByModuleTypeKnown} GeneratorOptionsByModuleTypeKnown */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/asset-modules/only-entry/test.config.js b/test/configCases/asset-modules/only-entry/test.config.js index f48f8b79d..6f661b3d1 100644 --- a/test/configCases/asset-modules/only-entry/test.config.js +++ b/test/configCases/asset-modules/only-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["test.js"]; diff --git a/test/configCases/asset-modules/only-entry/webpack.config.js b/test/configCases/asset-modules/only-entry/webpack.config.js index f196e1dee..a331cf923 100644 --- a/test/configCases/asset-modules/only-entry/webpack.config.js +++ b/test/configCases/asset-modules/only-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/asset-modules/only-hash-url/webpack.config.js b/test/configCases/asset-modules/only-hash-url/webpack.config.js index 0da77aa0f..5b29ebfde 100644 --- a/test/configCases/asset-modules/only-hash-url/webpack.config.js +++ b/test/configCases/asset-modules/only-hash-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/opus/errors.js b/test/configCases/asset-modules/opus/errors.js index 878a9afe3..b1adeee4f 100644 --- a/test/configCases/asset-modules/opus/errors.js +++ b/test/configCases/asset-modules/opus/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/DataUrl can't be generated automatically/]]; diff --git a/test/configCases/asset-modules/opus/webpack.config.js b/test/configCases/asset-modules/opus/webpack.config.js index 5a9c737db..7542f3b89 100644 --- a/test/configCases/asset-modules/opus/webpack.config.js +++ b/test/configCases/asset-modules/opus/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/overridePath/webpack.config.js b/test/configCases/asset-modules/overridePath/webpack.config.js index 47481e0aa..35cd50da7 100644 --- a/test/configCases/asset-modules/overridePath/webpack.config.js +++ b/test/configCases/asset-modules/overridePath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/path/webpack.config.js b/test/configCases/asset-modules/path/webpack.config.js index 6255f7186..20e3170cb 100644 --- a/test/configCases/asset-modules/path/webpack.config.js +++ b/test/configCases/asset-modules/path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/publicPath/webpack.config.js b/test/configCases/asset-modules/publicPath/webpack.config.js index d6363ec56..501b53db6 100644 --- a/test/configCases/asset-modules/publicPath/webpack.config.js +++ b/test/configCases/asset-modules/publicPath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/query-and-custom-condition/webpack.config.js b/test/configCases/asset-modules/query-and-custom-condition/webpack.config.js index 96dfc3ba9..8a24abf1a 100644 --- a/test/configCases/asset-modules/query-and-custom-condition/webpack.config.js +++ b/test/configCases/asset-modules/query-and-custom-condition/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").ParserOptionsByModuleTypeKnown} ParserOptionsByModuleTypeKnown */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/asset-modules/query-and-custom-encoder/webpack.config.js b/test/configCases/asset-modules/query-and-custom-encoder/webpack.config.js index 1c22670e5..8a6202961 100644 --- a/test/configCases/asset-modules/query-and-custom-encoder/webpack.config.js +++ b/test/configCases/asset-modules/query-and-custom-encoder/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const mimeTypes = require("mime-types"); const svgToMiniDataURI = require("mini-svg-data-uri"); diff --git a/test/configCases/asset-modules/query/webpack.config.js b/test/configCases/asset-modules/query/webpack.config.js index 63b0636fe..ab476db7e 100644 --- a/test/configCases/asset-modules/query/webpack.config.js +++ b/test/configCases/asset-modules/query/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/real-content-hash/webpack.config.js b/test/configCases/asset-modules/real-content-hash/webpack.config.js index 185587c16..12cffe6a2 100644 --- a/test/configCases/asset-modules/real-content-hash/webpack.config.js +++ b/test/configCases/asset-modules/real-content-hash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/resource-from-data-uri/webpack.config.js b/test/configCases/asset-modules/resource-from-data-uri/webpack.config.js index 92bff8256..c8018c1fe 100644 --- a/test/configCases/asset-modules/resource-from-data-uri/webpack.config.js +++ b/test/configCases/asset-modules/resource-from-data-uri/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/asset-modules/rule-generator-outputPath/webpack.config.js b/test/configCases/asset-modules/rule-generator-outputPath/webpack.config.js index dd65cf885..3ee6d41cf 100644 --- a/test/configCases/asset-modules/rule-generator-outputPath/webpack.config.js +++ b/test/configCases/asset-modules/rule-generator-outputPath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/rule-generator-publicPath-override/webpack.config.js b/test/configCases/asset-modules/rule-generator-publicPath-override/webpack.config.js index 75890c521..a5ff73672 100644 --- a/test/configCases/asset-modules/rule-generator-publicPath-override/webpack.config.js +++ b/test/configCases/asset-modules/rule-generator-publicPath-override/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js b/test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js index 9f8072e1f..e411d767c 100644 --- a/test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js +++ b/test/configCases/asset-modules/rule-generator-publicPath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/source/webpack.config.js b/test/configCases/asset-modules/source/webpack.config.js index 1d0399ec2..dc0802bbc 100644 --- a/test/configCases/asset-modules/source/webpack.config.js +++ b/test/configCases/asset-modules/source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/types/webpack.config.js b/test/configCases/asset-modules/types/webpack.config.js index 94be94f16..4d6bce57c 100644 --- a/test/configCases/asset-modules/types/webpack.config.js +++ b/test/configCases/asset-modules/types/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-modules/unsafe-cache-13827/webpack.config.js b/test/configCases/asset-modules/unsafe-cache-13827/webpack.config.js index 693c302c6..c00ba5914 100644 --- a/test/configCases/asset-modules/unsafe-cache-13827/webpack.config.js +++ b/test/configCases/asset-modules/unsafe-cache-13827/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/relative/webpack.config.js b/test/configCases/asset-url/relative/webpack.config.js index 8ac15349c..b4db9ee19 100644 --- a/test/configCases/asset-url/relative/webpack.config.js +++ b/test/configCases/asset-url/relative/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-node1/webpack.config.js b/test/configCases/asset-url/target-node1/webpack.config.js index 315a9e602..c95e9fcd9 100644 --- a/test/configCases/asset-url/target-node1/webpack.config.js +++ b/test/configCases/asset-url/target-node1/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-node2/webpack.config.js b/test/configCases/asset-url/target-node2/webpack.config.js index 14934d113..260476951 100644 --- a/test/configCases/asset-url/target-node2/webpack.config.js +++ b/test/configCases/asset-url/target-node2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-node3/webpack.config.js b/test/configCases/asset-url/target-node3/webpack.config.js index 499de2fe5..9224e7257 100644 --- a/test/configCases/asset-url/target-node3/webpack.config.js +++ b/test/configCases/asset-url/target-node3/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-web1/webpack.config.js b/test/configCases/asset-url/target-web1/webpack.config.js index 35e16e26f..5610cb056 100644 --- a/test/configCases/asset-url/target-web1/webpack.config.js +++ b/test/configCases/asset-url/target-web1/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-web2/webpack.config.js b/test/configCases/asset-url/target-web2/webpack.config.js index 2cbfe9bdd..2d4bf87fa 100644 --- a/test/configCases/asset-url/target-web2/webpack.config.js +++ b/test/configCases/asset-url/target-web2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-webworker1/test.config.js b/test/configCases/asset-url/target-webworker1/test.config.js index 9429e689a..f680194a9 100644 --- a/test/configCases/asset-url/target-webworker1/test.config.js +++ b/test/configCases/asset-url/target-webworker1/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { scope.self.location = "https://test.cases/custom/deep/path/main.js"; diff --git a/test/configCases/asset-url/target-webworker1/webpack.config.js b/test/configCases/asset-url/target-webworker1/webpack.config.js index 146b9da9c..8c6850298 100644 --- a/test/configCases/asset-url/target-webworker1/webpack.config.js +++ b/test/configCases/asset-url/target-webworker1/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/asset-url/target-webworker2/webpack.config.js b/test/configCases/asset-url/target-webworker2/webpack.config.js index ef13370aa..b7fadb6b6 100644 --- a/test/configCases/asset-url/target-webworker2/webpack.config.js +++ b/test/configCases/asset-url/target-webworker2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/assets/delete-asset/infrastructure-log.js b/test/configCases/assets/delete-asset/infrastructure-log.js index 9d9c6526e..d6dce0582 100644 --- a/test/configCases/assets/delete-asset/infrastructure-log.js +++ b/test/configCases/assets/delete-asset/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ // each time sets different assetsInfo object instance in webpack.config.js:54 // this prevents hit in inmemory cache diff --git a/test/configCases/assets/delete-asset/webpack.config.js b/test/configCases/assets/delete-asset/webpack.config.js index a0038acc0..5dd201c35 100644 --- a/test/configCases/assets/delete-asset/webpack.config.js +++ b/test/configCases/assets/delete-asset/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); const { BannerPlugin, Compilation } = require("../../../../"); diff --git a/test/configCases/assets/prevent-related-deletion/webpack.config.js b/test/configCases/assets/prevent-related-deletion/webpack.config.js index 5f55eeaca..23079f46d 100644 --- a/test/configCases/assets/prevent-related-deletion/webpack.config.js +++ b/test/configCases/assets/prevent-related-deletion/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { Compilation } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/async-commons-chunk/all-selected/webpack.config.js b/test/configCases/async-commons-chunk/all-selected/webpack.config.js index 4224dbc77..35eb1e4d9 100644 --- a/test/configCases/async-commons-chunk/all-selected/webpack.config.js +++ b/test/configCases/async-commons-chunk/all-selected/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/async-commons-chunk/duplicate/webpack.config.js b/test/configCases/async-commons-chunk/duplicate/webpack.config.js index 4224dbc77..35eb1e4d9 100644 --- a/test/configCases/async-commons-chunk/duplicate/webpack.config.js +++ b/test/configCases/async-commons-chunk/duplicate/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/async-commons-chunk/existing-name/webpack.config.js b/test/configCases/async-commons-chunk/existing-name/webpack.config.js index bf5d082bf..bbd9df876 100644 --- a/test/configCases/async-commons-chunk/existing-name/webpack.config.js +++ b/test/configCases/async-commons-chunk/existing-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { performance: { diff --git a/test/configCases/async-commons-chunk/nested/webpack.config.js b/test/configCases/async-commons-chunk/nested/webpack.config.js index 4224dbc77..35eb1e4d9 100644 --- a/test/configCases/async-commons-chunk/nested/webpack.config.js +++ b/test/configCases/async-commons-chunk/nested/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/async-commons-chunk/node/webpack.config.js b/test/configCases/async-commons-chunk/node/webpack.config.js index d25903acd..5f1a08dd3 100644 --- a/test/configCases/async-commons-chunk/node/webpack.config.js +++ b/test/configCases/async-commons-chunk/node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/async-commons-chunk/simple/webpack.config.js b/test/configCases/async-commons-chunk/simple/webpack.config.js index 4224dbc77..35eb1e4d9 100644 --- a/test/configCases/async-commons-chunk/simple/webpack.config.js +++ b/test/configCases/async-commons-chunk/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/async-library/0-create-library/test.config.js b/test/configCases/async-library/0-create-library/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/async-library/0-create-library/test.config.js +++ b/test/configCases/async-library/0-create-library/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/async-library/0-create-library/webpack.config.js b/test/configCases/async-library/0-create-library/webpack.config.js index 0f5270b08..4e6a9a804 100644 --- a/test/configCases/async-library/0-create-library/webpack.config.js +++ b/test/configCases/async-library/0-create-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { entry: "./a.js", diff --git a/test/configCases/async-library/1-use-library/webpack.config.js b/test/configCases/async-library/1-use-library/webpack.config.js index 794b87474..28b81cdb2 100644 --- a/test/configCases/async-library/1-use-library/webpack.config.js +++ b/test/configCases/async-library/1-use-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../types").Configuration} */ diff --git a/test/configCases/async-module/environment-not-support-async-warning/test.filter.js b/test/configCases/async-module/environment-not-support-async-warning/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/async-module/environment-not-support-async-warning/test.filter.js +++ b/test/configCases/async-module/environment-not-support-async-warning/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/async-module/environment-not-support-async-warning/warnings.js b/test/configCases/async-module/environment-not-support-async-warning/warnings.js index e0bb2da70..0ac5a8c9c 100644 --- a/test/configCases/async-module/environment-not-support-async-warning/warnings.js +++ b/test/configCases/async-module/environment-not-support-async-warning/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ { moduleName: /tla\.js/ }, diff --git a/test/configCases/async-module/environment-not-support-async-warning/webpack.config.js b/test/configCases/async-module/environment-not-support-async-warning/webpack.config.js index 81f034c46..d7bae5b55 100644 --- a/test/configCases/async-module/environment-not-support-async-warning/webpack.config.js +++ b/test/configCases/async-module/environment-not-support-async-warning/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js b/test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js index bbf2fa59a..568f4a943 100644 --- a/test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js +++ b/test/configCases/cache-dependencies/managed-items-unsafe-cache/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/cache-dependencies/managed-items/webpack.config.js b/test/configCases/cache-dependencies/managed-items/webpack.config.js index bf1482c73..98dca6365 100644 --- a/test/configCases/cache-dependencies/managed-items/webpack.config.js +++ b/test/configCases/cache-dependencies/managed-items/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js b/test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js index c6828833f..493e8e1c9 100644 --- a/test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js +++ b/test/configCases/cache-filesystem/multicompiler-mode-cache-3/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /Please set unique "cache\.name" option/, /Compiler with name "3rd compiler" doesn't use unique cache name/ diff --git a/test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js b/test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js index d0bff2418..a21fb9714 100644 --- a/test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js +++ b/test/configCases/cache-filesystem/multicompiler-mode-cache-4/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/Please set unique "cache\.name" option/]; diff --git a/test/configCases/chunk-graph/issue-15173/test.config.js b/test/configCases/chunk-graph/issue-15173/test.config.js index 6b83bf351..86d60992f 100644 --- a/test/configCases/chunk-graph/issue-15173/test.config.js +++ b/test/configCases/chunk-graph/issue-15173/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entryA.js"]; diff --git a/test/configCases/chunk-graph/issue-15173/webpack.config.js b/test/configCases/chunk-graph/issue-15173/webpack.config.js index b5e57a94a..b791dd5a7 100644 --- a/test/configCases/chunk-graph/issue-15173/webpack.config.js +++ b/test/configCases/chunk-graph/issue-15173/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { entry: { entryA: "./entries/entryA.js", diff --git a/test/configCases/chunk-graph/issue-17989/test.config.js b/test/configCases/chunk-graph/issue-17989/test.config.js index e03ba4e84..6cf321257 100644 --- a/test/configCases/chunk-graph/issue-17989/test.config.js +++ b/test/configCases/chunk-graph/issue-17989/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js", "b.js"]; diff --git a/test/configCases/chunk-graph/issue-17989/webpack.config.js b/test/configCases/chunk-graph/issue-17989/webpack.config.js index 0410aaf3e..f5c815ce9 100644 --- a/test/configCases/chunk-graph/issue-17989/webpack.config.js +++ b/test/configCases/chunk-graph/issue-17989/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/chunk-graph/issue-9634/test.config.js b/test/configCases/chunk-graph/issue-9634/test.config.js index e03ba4e84..6cf321257 100644 --- a/test/configCases/chunk-graph/issue-9634/test.config.js +++ b/test/configCases/chunk-graph/issue-9634/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js", "b.js"]; diff --git a/test/configCases/chunk-graph/issue-9634/webpack.config.js b/test/configCases/chunk-graph/issue-9634/webpack.config.js index 42a875cba..838716029 100644 --- a/test/configCases/chunk-graph/issue-9634/webpack.config.js +++ b/test/configCases/chunk-graph/issue-9634/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/chunk-graph/rewalk-chunk/test.config.js b/test/configCases/chunk-graph/rewalk-chunk/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/chunk-graph/rewalk-chunk/test.config.js +++ b/test/configCases/chunk-graph/rewalk-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/chunk-graph/rewalk-chunk/webpack.config.js b/test/configCases/chunk-graph/rewalk-chunk/webpack.config.js index 57ec6f715..b3554097a 100644 --- a/test/configCases/chunk-graph/rewalk-chunk/webpack.config.js +++ b/test/configCases/chunk-graph/rewalk-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/chunk-index/issue-18008/test.config.js b/test/configCases/chunk-index/issue-18008/test.config.js index 4e1620b10..ac9427f4b 100644 --- a/test/configCases/chunk-index/issue-18008/test.config.js +++ b/test/configCases/chunk-index/issue-18008/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js", "A.js", "shared.js", "B.js", "B-2.js"]; diff --git a/test/configCases/chunk-index/issue-18008/webpack.config.js b/test/configCases/chunk-index/issue-18008/webpack.config.js index 890cee294..06497a8ec 100644 --- a/test/configCases/chunk-index/issue-18008/webpack.config.js +++ b/test/configCases/chunk-index/issue-18008/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../types").Compilation} Compilation */ /** @typedef {import("../../../../types").Module} Module */ /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/chunk-index/order-multiple-entries/test.config.js b/test/configCases/chunk-index/order-multiple-entries/test.config.js index e4c2d7d4b..c5234ed76 100644 --- a/test/configCases/chunk-index/order-multiple-entries/test.config.js +++ b/test/configCases/chunk-index/order-multiple-entries/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entry1.js", "entry2.js"]; diff --git a/test/configCases/chunk-index/order-multiple-entries/webpack.config.js b/test/configCases/chunk-index/order-multiple-entries/webpack.config.js index 78db29f49..67667ee83 100644 --- a/test/configCases/chunk-index/order-multiple-entries/webpack.config.js +++ b/test/configCases/chunk-index/order-multiple-entries/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Module} Module */ diff --git a/test/configCases/chunk-index/recalc-index/webpack.config.js b/test/configCases/chunk-index/recalc-index/webpack.config.js index 5dd70bdad..b8c597084 100644 --- a/test/configCases/chunk-index/recalc-index/webpack.config.js +++ b/test/configCases/chunk-index/recalc-index/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../types").Compilation} Compilation */ /** @typedef {import("../../../../types").Module} Module */ /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/clean/dry/webpack.config.js b/test/configCases/clean/dry/webpack.config.js index 7a1b1fb1d..227c33bdf 100644 --- a/test/configCases/clean/dry/webpack.config.js +++ b/test/configCases/clean/dry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); diff --git a/test/configCases/clean/enabled/webpack.config.js b/test/configCases/clean/enabled/webpack.config.js index 16575014a..3e1a0946f 100644 --- a/test/configCases/clean/enabled/webpack.config.js +++ b/test/configCases/clean/enabled/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); diff --git a/test/configCases/clean/ignore-fn/webpack.config.js b/test/configCases/clean/ignore-fn/webpack.config.js index 9313802ac..13daf6c5f 100644 --- a/test/configCases/clean/ignore-fn/webpack.config.js +++ b/test/configCases/clean/ignore-fn/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); diff --git a/test/configCases/clean/ignore-hook/webpack.config.js b/test/configCases/clean/ignore-hook/webpack.config.js index 64bd3efde..7bf527d5b 100644 --- a/test/configCases/clean/ignore-hook/webpack.config.js +++ b/test/configCases/clean/ignore-hook/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); diff --git a/test/configCases/clean/ignore-rx/webpack.config.js b/test/configCases/clean/ignore-rx/webpack.config.js index 82623ce62..c0c1e5f1d 100644 --- a/test/configCases/clean/ignore-rx/webpack.config.js +++ b/test/configCases/clean/ignore-rx/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { RawSource } = require("webpack-sources"); diff --git a/test/configCases/clean/lib-manifest-plugin/webpack.config.js b/test/configCases/clean/lib-manifest-plugin/webpack.config.js index fac31f113..c491fd7be 100644 --- a/test/configCases/clean/lib-manifest-plugin/webpack.config.js +++ b/test/configCases/clean/lib-manifest-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); const readDir = require("./readdir"); diff --git a/test/configCases/clean/link/test.filter.js b/test/configCases/clean/link/test.filter.js index e627dbe19..8ba5dc947 100644 --- a/test/configCases/clean/link/test.filter.js +++ b/test/configCases/clean/link/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/clean/link/webpack.config.js b/test/configCases/clean/link/webpack.config.js index 463218c7e..b713ae082 100644 --- a/test/configCases/clean/link/webpack.config.js +++ b/test/configCases/clean/link/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const readDir = require("../enabled/readdir"); diff --git a/test/configCases/code-generation/harmony-pure-default/webpack.config.js b/test/configCases/code-generation/harmony-pure-default/webpack.config.js index 2ec858900..0e3ca7242 100644 --- a/test/configCases/code-generation/harmony-pure-default/webpack.config.js +++ b/test/configCases/code-generation/harmony-pure-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/code-generation/import-export-format-2/webpack.config.js b/test/configCases/code-generation/import-export-format-2/webpack.config.js index 777d038c0..bbcd401f7 100644 --- a/test/configCases/code-generation/import-export-format-2/webpack.config.js +++ b/test/configCases/code-generation/import-export-format-2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/code-generation/import-export-format/webpack.config.js b/test/configCases/code-generation/import-export-format/webpack.config.js index d68b9b7d4..9e7f400a9 100644 --- a/test/configCases/code-generation/import-export-format/webpack.config.js +++ b/test/configCases/code-generation/import-export-format/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/code-generation/re-export-namespace-concat/test.filter.js b/test/configCases/code-generation/re-export-namespace-concat/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/code-generation/re-export-namespace-concat/test.filter.js +++ b/test/configCases/code-generation/re-export-namespace-concat/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/code-generation/re-export-namespace-concat/webpack.config.js b/test/configCases/code-generation/re-export-namespace-concat/webpack.config.js index 7e1057f2f..989e9f705 100644 --- a/test/configCases/code-generation/re-export-namespace-concat/webpack.config.js +++ b/test/configCases/code-generation/re-export-namespace-concat/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/code-generation/re-export-namespace/test.filter.js b/test/configCases/code-generation/re-export-namespace/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/code-generation/re-export-namespace/test.filter.js +++ b/test/configCases/code-generation/re-export-namespace/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/code-generation/re-export-namespace/webpack.config.js b/test/configCases/code-generation/re-export-namespace/webpack.config.js index 5da817461..56c2272fe 100644 --- a/test/configCases/code-generation/re-export-namespace/webpack.config.js +++ b/test/configCases/code-generation/re-export-namespace/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/code-generation/require-context-id/warnings.js b/test/configCases/code-generation/require-context-id/warnings.js index 70fefa270..fdcecb3be 100644 --- a/test/configCases/code-generation/require-context-id/warnings.js +++ b/test/configCases/code-generation/require-context-id/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/hashed/, /deprecated/]]; diff --git a/test/configCases/code-generation/require-context-id/webpack.config.js b/test/configCases/code-generation/require-context-id/webpack.config.js index e3f2e0b3b..ecd9cf88c 100644 --- a/test/configCases/code-generation/require-context-id/webpack.config.js +++ b/test/configCases/code-generation/require-context-id/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/code-generation/use-strict/webpack.config.js b/test/configCases/code-generation/use-strict/webpack.config.js index 877d7411e..50b4230e7 100644 --- a/test/configCases/code-generation/use-strict/webpack.config.js +++ b/test/configCases/code-generation/use-strict/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/compiletime/error-not-found/errors.js b/test/configCases/compiletime/error-not-found/errors.js index 59aab9d5b..fbebeba18 100644 --- a/test/configCases/compiletime/error-not-found/errors.js +++ b/test/configCases/compiletime/error-not-found/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/not found/]; diff --git a/test/configCases/compiletime/error-not-found/webpack.config.js b/test/configCases/compiletime/error-not-found/webpack.config.js index e3128523e..155702226 100644 --- a/test/configCases/compiletime/error-not-found/webpack.config.js +++ b/test/configCases/compiletime/error-not-found/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/compiletime/exports-presence/errors.js b/test/configCases/compiletime/exports-presence/errors.js index 257f69526..ec92a7577 100644 --- a/test/configCases/compiletime/exports-presence/errors.js +++ b/test/configCases/compiletime/exports-presence/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { moduleName: /ccc/, diff --git a/test/configCases/compiletime/exports-presence/warnings.js b/test/configCases/compiletime/exports-presence/warnings.js index ca07ad2aa..b12013bf0 100644 --- a/test/configCases/compiletime/exports-presence/warnings.js +++ b/test/configCases/compiletime/exports-presence/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { moduleName: /bbb/, diff --git a/test/configCases/compiletime/exports-presence/webpack.config.js b/test/configCases/compiletime/exports-presence/webpack.config.js index 7634dfd7a..307b36be0 100644 --- a/test/configCases/compiletime/exports-presence/webpack.config.js +++ b/test/configCases/compiletime/exports-presence/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/compiletime/warn-not-found/warnings.js b/test/configCases/compiletime/warn-not-found/warnings.js index 59aab9d5b..fbebeba18 100644 --- a/test/configCases/compiletime/warn-not-found/warnings.js +++ b/test/configCases/compiletime/warn-not-found/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/not found/]; diff --git a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js b/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js +++ b/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-nested/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js b/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js +++ b/test/configCases/concatenate-modules/destructuring-assignment-with-default-value-and-variable-collision-simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/concatenate-modules/import-module/webpack.config.js b/test/configCases/concatenate-modules/import-module/webpack.config.js index 161c13c0d..1b88ae4d4 100644 --- a/test/configCases/concatenate-modules/import-module/webpack.config.js +++ b/test/configCases/concatenate-modules/import-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/concatenate-modules/issue-13022/webpack.config.js b/test/configCases/concatenate-modules/issue-13022/webpack.config.js index dbbdda7ea..c0653e925 100644 --- a/test/configCases/concatenate-modules/issue-13022/webpack.config.js +++ b/test/configCases/concatenate-modules/issue-13022/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/concatenate-modules/load-chunk-function/test.config.js b/test/configCases/concatenate-modules/load-chunk-function/test.config.js index e4c2d7d4b..c5234ed76 100644 --- a/test/configCases/concatenate-modules/load-chunk-function/test.config.js +++ b/test/configCases/concatenate-modules/load-chunk-function/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entry1.js", "entry2.js"]; diff --git a/test/configCases/concatenate-modules/load-chunk-function/webpack.config.js b/test/configCases/concatenate-modules/load-chunk-function/webpack.config.js index 1a64af2a3..f340b275e 100644 --- a/test/configCases/concatenate-modules/load-chunk-function/webpack.config.js +++ b/test/configCases/concatenate-modules/load-chunk-function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/concatenate-modules/rename-10168/webpack.config.js b/test/configCases/concatenate-modules/rename-10168/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/concatenate-modules/rename-10168/webpack.config.js +++ b/test/configCases/concatenate-modules/rename-10168/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/concatenate-modules/side-effects/webpack.config.js b/test/configCases/concatenate-modules/side-effects/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/concatenate-modules/side-effects/webpack.config.js +++ b/test/configCases/concatenate-modules/side-effects/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js b/test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js index ed54956ea..edc922cf4 100644 --- a/test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js +++ b/test/configCases/concatenate-modules/split-chunk-entry-module/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.js", "common-index_js.js", "main.js"]; diff --git a/test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js b/test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js index 16ed8a8d8..bae7ecf96 100644 --- a/test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js +++ b/test/configCases/concatenate-modules/split-chunk-entry-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/container/0-container-full/test.config.js b/test/configCases/container/0-container-full/test.config.js index acc7d2091..bd1daf1ba 100644 --- a/test/configCases/container/0-container-full/test.config.js +++ b/test/configCases/container/0-container-full/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./main.js" : "./module/main.mjs"; diff --git a/test/configCases/container/0-container-full/webpack.config.js b/test/configCases/container/0-container-full/webpack.config.js index 3fe8d8bab..84a5013a1 100644 --- a/test/configCases/container/0-container-full/webpack.config.js +++ b/test/configCases/container/0-container-full/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {ConstructorParameters[0]} */ diff --git a/test/configCases/container/0-eager-shared/webpack.config.js b/test/configCases/container/0-eager-shared/webpack.config.js index c01af235f..a6e9e60e3 100644 --- a/test/configCases/container/0-eager-shared/webpack.config.js +++ b/test/configCases/container/0-eager-shared/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; const { dependencies } = require("./package.json"); diff --git a/test/configCases/container/0-transitive-overriding/webpack.config.js b/test/configCases/container/0-transitive-overriding/webpack.config.js index 82dd86951..724076dd9 100644 --- a/test/configCases/container/0-transitive-overriding/webpack.config.js +++ b/test/configCases/container/0-transitive-overriding/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/1-container-full/test.config.js b/test/configCases/container/1-container-full/test.config.js index acc7d2091..bd1daf1ba 100644 --- a/test/configCases/container/1-container-full/test.config.js +++ b/test/configCases/container/1-container-full/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./main.js" : "./module/main.mjs"; diff --git a/test/configCases/container/1-container-full/webpack.config.js b/test/configCases/container/1-container-full/webpack.config.js index 0c9d66c16..130d25ac1 100644 --- a/test/configCases/container/1-container-full/webpack.config.js +++ b/test/configCases/container/1-container-full/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; const common = { diff --git a/test/configCases/container/1-transitive-overriding/webpack.config.js b/test/configCases/container/1-transitive-overriding/webpack.config.js index 71b4410b9..c4909db5b 100644 --- a/test/configCases/container/1-transitive-overriding/webpack.config.js +++ b/test/configCases/container/1-transitive-overriding/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/2-container-full/webpack.config.js b/test/configCases/container/2-container-full/webpack.config.js index 5f2872dc8..bbe627a94 100644 --- a/test/configCases/container/2-container-full/webpack.config.js +++ b/test/configCases/container/2-container-full/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/2-transitive-overriding/webpack.config.js b/test/configCases/container/2-transitive-overriding/webpack.config.js index 3d384985c..b0c9812e4 100644 --- a/test/configCases/container/2-transitive-overriding/webpack.config.js +++ b/test/configCases/container/2-transitive-overriding/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/3-container-full/warnings.js b/test/configCases/container/3-container-full/warnings.js index 55cee80a3..43d2a210b 100644 --- a/test/configCases/container/3-container-full/warnings.js +++ b/test/configCases/container/3-container-full/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/No version specified and unable to automatically determine one/] ]; diff --git a/test/configCases/container/3-container-full/webpack.config.js b/test/configCases/container/3-container-full/webpack.config.js index 1d38b82ba..9c694a12d 100644 --- a/test/configCases/container/3-container-full/webpack.config.js +++ b/test/configCases/container/3-container-full/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/circular/test.config.js b/test/configCases/container/circular/test.config.js index c0ec14727..d9a38d25b 100644 --- a/test/configCases/container/circular/test.config.js +++ b/test/configCases/container/circular/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./main.js"; diff --git a/test/configCases/container/circular/webpack.config.js b/test/configCases/container/circular/webpack.config.js index efdae9fc5..1e0e2528a 100644 --- a/test/configCases/container/circular/webpack.config.js +++ b/test/configCases/container/circular/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** diff --git a/test/configCases/container/container-entry-overridables/webpack.config.js b/test/configCases/container/container-entry-overridables/webpack.config.js index 770f5f4de..709ff85a2 100644 --- a/test/configCases/container/container-entry-overridables/webpack.config.js +++ b/test/configCases/container/container-entry-overridables/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ContainerPlugin } = require("../../../../").container; const { ConsumeSharedPlugin } = require("../../../../").sharing; diff --git a/test/configCases/container/container-entry/webpack.config.js b/test/configCases/container/container-entry/webpack.config.js index 414cb69b3..5ab7e37c8 100644 --- a/test/configCases/container/container-entry/webpack.config.js +++ b/test/configCases/container/container-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ContainerPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/container-reference-override/test.config.js b/test/configCases/container/container-reference-override/test.config.js index 28fa0bd58..5006ea774 100644 --- a/test/configCases/container/container-reference-override/test.config.js +++ b/test/configCases/container/container-reference-override/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { let ss; diff --git a/test/configCases/container/container-reference-override/webpack.config.js b/test/configCases/container/container-reference-override/webpack.config.js index 8f76ef90d..2b9285e98 100644 --- a/test/configCases/container/container-reference-override/webpack.config.js +++ b/test/configCases/container/container-reference-override/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ContainerReferencePlugin } = require("../../../../").container; const { ProvideSharedPlugin } = require("../../../../").sharing; diff --git a/test/configCases/container/container-reference/test.config.js b/test/configCases/container/container-reference/test.config.js index 96099b8e5..8af93b270 100644 --- a/test/configCases/container/container-reference/test.config.js +++ b/test/configCases/container/container-reference/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { scope.ABC = { diff --git a/test/configCases/container/container-reference/webpack.config.js b/test/configCases/container/container-reference/webpack.config.js index a73f9f65d..3aa1cad31 100644 --- a/test/configCases/container/container-reference/webpack.config.js +++ b/test/configCases/container/container-reference/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ContainerReferencePlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/eager-shared/webpack.config.js b/test/configCases/container/eager-shared/webpack.config.js index c73f3ade6..ba1b50fd3 100644 --- a/test/configCases/container/eager-shared/webpack.config.js +++ b/test/configCases/container/eager-shared/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; const { dependencies } = require("./package.json"); diff --git a/test/configCases/container/error-handling/webpack.config.js b/test/configCases/container/error-handling/webpack.config.js index 2e9ac09f1..203e3ab21 100644 --- a/test/configCases/container/error-handling/webpack.config.js +++ b/test/configCases/container/error-handling/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/exposed-overridables/webpack.config.js b/test/configCases/container/exposed-overridables/webpack.config.js index 525c2710b..bfc87cb2b 100644 --- a/test/configCases/container/exposed-overridables/webpack.config.js +++ b/test/configCases/container/exposed-overridables/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/module-federation-with-shareScope/test.config.js b/test/configCases/container/module-federation-with-shareScope/test.config.js index acc7d2091..bd1daf1ba 100644 --- a/test/configCases/container/module-federation-with-shareScope/test.config.js +++ b/test/configCases/container/module-federation-with-shareScope/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./main.js" : "./module/main.mjs"; diff --git a/test/configCases/container/module-federation-with-shareScope/webpack.config.js b/test/configCases/container/module-federation-with-shareScope/webpack.config.js index 218ebc25d..319f25f98 100644 --- a/test/configCases/container/module-federation-with-shareScope/webpack.config.js +++ b/test/configCases/container/module-federation-with-shareScope/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; const common = { diff --git a/test/configCases/container/module-federation/test.config.js b/test/configCases/container/module-federation/test.config.js index bd9d9060d..17fbc3ff3 100644 --- a/test/configCases/container/module-federation/test.config.js +++ b/test/configCases/container/module-federation/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/container/module-federation/webpack.config.js b/test/configCases/container/module-federation/webpack.config.js index 1b4c62d6f..66abc2e02 100644 --- a/test/configCases/container/module-federation/webpack.config.js +++ b/test/configCases/container/module-federation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** diff --git a/test/configCases/container/no-shared/webpack.config.js b/test/configCases/container/no-shared/webpack.config.js index bce073f4e..176908407 100644 --- a/test/configCases/container/no-shared/webpack.config.js +++ b/test/configCases/container/no-shared/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/container/reference-hoisting/test.config.js b/test/configCases/container/reference-hoisting/test.config.js index acc7d2091..bd1daf1ba 100644 --- a/test/configCases/container/reference-hoisting/test.config.js +++ b/test/configCases/container/reference-hoisting/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./main.js" : "./module/main.mjs"; diff --git a/test/configCases/container/reference-hoisting/webpack.config.js b/test/configCases/container/reference-hoisting/webpack.config.js index 98e4d1fbc..85191bf44 100644 --- a/test/configCases/container/reference-hoisting/webpack.config.js +++ b/test/configCases/container/reference-hoisting/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {ConstructorParameters[0]} */ diff --git a/test/configCases/container/track-initial-chunks/test.config.js b/test/configCases/container/track-initial-chunks/test.config.js index acc7d2091..bd1daf1ba 100644 --- a/test/configCases/container/track-initial-chunks/test.config.js +++ b/test/configCases/container/track-initial-chunks/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./main.js" : "./module/main.mjs"; diff --git a/test/configCases/container/track-initial-chunks/webpack.config.js b/test/configCases/container/track-initial-chunks/webpack.config.js index 9036608f1..6dcf61a53 100644 --- a/test/configCases/container/track-initial-chunks/webpack.config.js +++ b/test/configCases/container/track-initial-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../../").container; /** @type {ConstructorParameters[0]} */ diff --git a/test/configCases/contenthash/assets/test.config.js b/test/configCases/contenthash/assets/test.config.js index 7523cfa46..890776fa8 100644 --- a/test/configCases/contenthash/assets/test.config.js +++ b/test/configCases/contenthash/assets/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); diff --git a/test/configCases/contenthash/assets/webpack.config.js b/test/configCases/contenthash/assets/webpack.config.js index 1d6fb4197..4bb1f731c 100644 --- a/test/configCases/contenthash/assets/webpack.config.js +++ b/test/configCases/contenthash/assets/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/contenthash/css-generator-options/test.config.js b/test/configCases/contenthash/css-generator-options/test.config.js index 1002051a2..7f09af03c 100644 --- a/test/configCases/contenthash/css-generator-options/test.config.js +++ b/test/configCases/contenthash/css-generator-options/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); const allCss = new Set(); diff --git a/test/configCases/contenthash/css-generator-options/webpack.config.js b/test/configCases/contenthash/css-generator-options/webpack.config.js index 84979d5e7..435b50ff9 100644 --- a/test/configCases/contenthash/css-generator-options/webpack.config.js +++ b/test/configCases/contenthash/css-generator-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ const common = { target: "web", diff --git a/test/configCases/contenthash/include-chunk-id/test.config.js b/test/configCases/contenthash/include-chunk-id/test.config.js index cc45b5094..e013cd48f 100644 --- a/test/configCases/contenthash/include-chunk-id/test.config.js +++ b/test/configCases/contenthash/include-chunk-id/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); const allFilenameHashes = new Set(); diff --git a/test/configCases/contenthash/include-chunk-id/webpack.config.js b/test/configCases/contenthash/include-chunk-id/webpack.config.js index 004bb036c..b280e8df5 100644 --- a/test/configCases/contenthash/include-chunk-id/webpack.config.js +++ b/test/configCases/contenthash/include-chunk-id/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/contenthash/module-ids-size/test.config.js b/test/configCases/contenthash/module-ids-size/test.config.js index 32bb896bf..19bdf046f 100644 --- a/test/configCases/contenthash/module-ids-size/test.config.js +++ b/test/configCases/contenthash/module-ids-size/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); diff --git a/test/configCases/contenthash/module-ids-size/webpack.config.js b/test/configCases/contenthash/module-ids-size/webpack.config.js index 2b7685738..cc9e6a3ed 100644 --- a/test/configCases/contenthash/module-ids-size/webpack.config.js +++ b/test/configCases/contenthash/module-ids-size/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/contenthash/salt/test.config.js b/test/configCases/contenthash/salt/test.config.js index 9328ad9b7..1095e974a 100644 --- a/test/configCases/contenthash/salt/test.config.js +++ b/test/configCases/contenthash/salt/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); const allAssets = new Set(); diff --git a/test/configCases/contenthash/salt/webpack.config.js b/test/configCases/contenthash/salt/webpack.config.js index 1ec1c83b9..8e09ee36d 100644 --- a/test/configCases/contenthash/salt/webpack.config.js +++ b/test/configCases/contenthash/salt/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/context-modules/context-options/webpack.config.js b/test/configCases/context-modules/context-options/webpack.config.js index 3583b70a3..27313115d 100644 --- a/test/configCases/context-modules/context-options/webpack.config.js +++ b/test/configCases/context-modules/context-options/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = {}; diff --git a/test/configCases/context-modules/exclusion/webpack.config.js b/test/configCases/context-modules/exclusion/webpack.config.js index 80ca2b093..f9198e5e8 100644 --- a/test/configCases/context-modules/exclusion/webpack.config.js +++ b/test/configCases/context-modules/exclusion/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/context-modules/replacement-System.import/webpack.config.js b/test/configCases/context-modules/replacement-System.import/webpack.config.js index 102b3879c..6237be1a8 100644 --- a/test/configCases/context-modules/replacement-System.import/webpack.config.js +++ b/test/configCases/context-modules/replacement-System.import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + var path = require("path"); var webpack = require("../../../../"); diff --git a/test/configCases/context-modules/replacement-a/webpack.config.js b/test/configCases/context-modules/replacement-a/webpack.config.js index 8d86fa0a0..013250710 100644 --- a/test/configCases/context-modules/replacement-a/webpack.config.js +++ b/test/configCases/context-modules/replacement-a/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/context-modules/replacement-b/webpack.config.js b/test/configCases/context-modules/replacement-b/webpack.config.js index 9fa2c022f..3877a73ba 100644 --- a/test/configCases/context-modules/replacement-b/webpack.config.js +++ b/test/configCases/context-modules/replacement-b/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/context-modules/replacement-c/webpack.config.js b/test/configCases/context-modules/replacement-c/webpack.config.js index 6c00f0d0b..4a7c9fc4e 100644 --- a/test/configCases/context-modules/replacement-c/webpack.config.js +++ b/test/configCases/context-modules/replacement-c/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/context-modules/replacement-d/webpack.config.js b/test/configCases/context-modules/replacement-d/webpack.config.js index fdc797fc2..f4523d7ef 100644 --- a/test/configCases/context-modules/replacement-d/webpack.config.js +++ b/test/configCases/context-modules/replacement-d/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/context-modules/replacement-e/webpack.config.js b/test/configCases/context-modules/replacement-e/webpack.config.js index 291621800..8e048e9b4 100644 --- a/test/configCases/context-modules/replacement-e/webpack.config.js +++ b/test/configCases/context-modules/replacement-e/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/context-modules/replacement-f/webpack.config.js b/test/configCases/context-modules/replacement-f/webpack.config.js index 84e11a8fd..e1bf78c08 100644 --- a/test/configCases/context-modules/replacement-f/webpack.config.js +++ b/test/configCases/context-modules/replacement-f/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/crossorigin/set-crossorigin/webpack.config.js b/test/configCases/crossorigin/set-crossorigin/webpack.config.js index 10096afbd..82db627da 100644 --- a/test/configCases/crossorigin/set-crossorigin/webpack.config.js +++ b/test/configCases/crossorigin/set-crossorigin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/async-chunk-node/webpack.config.js b/test/configCases/css/async-chunk-node/webpack.config.js index a91e72d27..8cfa4eda6 100644 --- a/test/configCases/css/async-chunk-node/webpack.config.js +++ b/test/configCases/css/async-chunk-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/css/basic-dynamic-only/test.config.js b/test/configCases/css/basic-dynamic-only/test.config.js index 5e4602a59..df2ced03e 100644 --- a/test/configCases/css/basic-dynamic-only/test.config.js +++ b/test/configCases/css/basic-dynamic-only/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["style_css.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/basic-dynamic-only/webpack.config.js b/test/configCases/css/basic-dynamic-only/webpack.config.js index eb8b0ebb1..0525a266f 100644 --- a/test/configCases/css/basic-dynamic-only/webpack.config.js +++ b/test/configCases/css/basic-dynamic-only/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/basic-esm-target-node/webpack.config.js b/test/configCases/css/basic-esm-target-node/webpack.config.js index 91b082607..e24569bec 100644 --- a/test/configCases/css/basic-esm-target-node/webpack.config.js +++ b/test/configCases/css/basic-esm-target-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/css/basic-esm-target-web/test.config.js b/test/configCases/css/basic-esm-target-web/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/basic-esm-target-web/test.config.js +++ b/test/configCases/css/basic-esm-target-web/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/basic-esm-target-web/webpack.config.js b/test/configCases/css/basic-esm-target-web/webpack.config.js index 673fa0ebd..44bb54f49 100644 --- a/test/configCases/css/basic-esm-target-web/webpack.config.js +++ b/test/configCases/css/basic-esm-target-web/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/basic-initial-only/test.config.js b/test/configCases/css/basic-initial-only/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/basic-initial-only/test.config.js +++ b/test/configCases/css/basic-initial-only/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/basic-initial-only/webpack.config.js b/test/configCases/css/basic-initial-only/webpack.config.js index eb8b0ebb1..0525a266f 100644 --- a/test/configCases/css/basic-initial-only/webpack.config.js +++ b/test/configCases/css/basic-initial-only/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/basic-web-async/test.config.js b/test/configCases/css/basic-web-async/test.config.js index 41c0f0a0c..14346f87a 100644 --- a/test/configCases/css/basic-web-async/test.config.js +++ b/test/configCases/css/basic-web-async/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["style2_css.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/basic-web-async/webpack.config.js b/test/configCases/css/basic-web-async/webpack.config.js index eb8b0ebb1..0525a266f 100644 --- a/test/configCases/css/basic-web-async/webpack.config.js +++ b/test/configCases/css/basic-web-async/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/basic/test.config.js b/test/configCases/css/basic/test.config.js index 41c0f0a0c..14346f87a 100644 --- a/test/configCases/css/basic/test.config.js +++ b/test/configCases/css/basic/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["style2_css.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/basic/webpack.config.js b/test/configCases/css/basic/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/basic/webpack.config.js +++ b/test/configCases/css/basic/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/build-http/test.config.js b/test/configCases/css/build-http/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/build-http/test.config.js +++ b/test/configCases/css/build-http/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/build-http/webpack.config.js b/test/configCases/css/build-http/webpack.config.js index b70654f34..c10719bae 100644 --- a/test/configCases/css/build-http/webpack.config.js +++ b/test/configCases/css/build-http/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/cjs-module-syntax/test.config.js b/test/configCases/css/cjs-module-syntax/test.config.js index d8b1cd2e6..0ec2334b5 100644 --- a/test/configCases/css/cjs-module-syntax/test.config.js +++ b/test/configCases/css/cjs-module-syntax/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { if (scope.document) { diff --git a/test/configCases/css/cjs-module-syntax/webpack.config.js b/test/configCases/css/cjs-module-syntax/webpack.config.js index c99de4b1e..006060da2 100644 --- a/test/configCases/css/cjs-module-syntax/webpack.config.js +++ b/test/configCases/css/cjs-module-syntax/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/css/conflicting-order/test.config.js b/test/configCases/css/conflicting-order/test.config.js index 457af6186..cddd59d78 100644 --- a/test/configCases/css/conflicting-order/test.config.js +++ b/test/configCases/css/conflicting-order/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["css.bundle0.js", "lazy4_js.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/conflicting-order/warnings.js b/test/configCases/css/conflicting-order/warnings.js index bf0f21a94..1541f2c5f 100644 --- a/test/configCases/css/conflicting-order/warnings.js +++ b/test/configCases/css/conflicting-order/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Conflicting order between css \.\/b\.css and css \.\/c\.css/] ]; diff --git a/test/configCases/css/conflicting-order/webpack.config.js b/test/configCases/css/conflicting-order/webpack.config.js index a5f3136ea..d761c4353 100644 --- a/test/configCases/css/conflicting-order/webpack.config.js +++ b/test/configCases/css/conflicting-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/contenthash/test.config.js b/test/configCases/css/contenthash/test.config.js index 6a9d21daf..74d11b962 100644 --- a/test/configCases/css/contenthash/test.config.js +++ b/test/configCases/css/contenthash/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); module.exports = { diff --git a/test/configCases/css/contenthash/webpack.config.js b/test/configCases/css/contenthash/webpack.config.js index 2f799e18d..faf9a298b 100644 --- a/test/configCases/css/contenthash/webpack.config.js +++ b/test/configCases/css/contenthash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/css-auto/test.config.js b/test/configCases/css/css-auto/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/css-auto/test.config.js +++ b/test/configCases/css/css-auto/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/css-auto/webpack.config.js b/test/configCases/css/css-auto/webpack.config.js index a9ddb2d85..ffdefdb57 100644 --- a/test/configCases/css/css-auto/webpack.config.js +++ b/test/configCases/css/css-auto/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/css-modules-broken-keyframes/webpack.config.js b/test/configCases/css/css-modules-broken-keyframes/webpack.config.js index 6bc17b023..abf224096 100644 --- a/test/configCases/css/css-modules-broken-keyframes/webpack.config.js +++ b/test/configCases/css/css-modules-broken-keyframes/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/css/css-modules-in-node/warnings.js b/test/configCases/css/css-modules-in-node/warnings.js index 0f96e43f9..5c044f7af 100644 --- a/test/configCases/css/css-modules-in-node/warnings.js +++ b/test/configCases/css/css-modules-in-node/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = require("../css-modules/warnings"); for (const item of module.exports.slice(0, module.exports.length / 2)) { diff --git a/test/configCases/css/css-modules-in-node/webpack.config.js b/test/configCases/css/css-modules-in-node/webpack.config.js index 997e2ebb2..634c5d00f 100644 --- a/test/configCases/css/css-modules-in-node/webpack.config.js +++ b/test/configCases/css/css-modules-in-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/css/css-modules-no-space/warnings.js b/test/configCases/css/css-modules-no-space/warnings.js index 32966cfb2..77b2d53af 100644 --- a/test/configCases/css/css-modules-no-space/warnings.js +++ b/test/configCases/css/css-modules-no-space/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/Missing whitespace after ':global' in ':global\.class \{/], [ diff --git a/test/configCases/css/css-modules-no-space/webpack.config.js b/test/configCases/css/css-modules-no-space/webpack.config.js index 31bf688da..e4515a07c 100644 --- a/test/configCases/css/css-modules-no-space/webpack.config.js +++ b/test/configCases/css/css-modules-no-space/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {() => import("../../../../").Configuration} */ module.exports = () => ({ target: "web", diff --git a/test/configCases/css/css-modules/test.config.js b/test/configCases/css/css-modules/test.config.js index 002bd6add..494e6787f 100644 --- a/test/configCases/css/css-modules/test.config.js +++ b/test/configCases/css/css-modules/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 diff --git a/test/configCases/css/css-modules/warnings.js b/test/configCases/css/css-modules/warnings.js index be7a71b2f..987dcad01 100644 --- a/test/configCases/css/css-modules/warnings.js +++ b/test/configCases/css/css-modules/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/export 'global' \(imported as 'style'\) was not found/], [/export 'nested2' \(imported as 'style'\) was not found/], diff --git a/test/configCases/css/css-modules/webpack.config.js b/test/configCases/css/css-modules/webpack.config.js index c9070ea0c..0e9185729 100644 --- a/test/configCases/css/css-modules/webpack.config.js +++ b/test/configCases/css/css-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/css/css-order-reexport/webpack.config.js b/test/configCases/css/css-order-reexport/webpack.config.js index 4d2ad0fd3..2d328bea8 100644 --- a/test/configCases/css/css-order-reexport/webpack.config.js +++ b/test/configCases/css/css-order-reexport/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/css/css-order/webpack.config.js b/test/configCases/css/css-order/webpack.config.js index d3ee73b99..396be2a51 100644 --- a/test/configCases/css/css-order/webpack.config.js +++ b/test/configCases/css/css-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/css-order2/webpack.config.js b/test/configCases/css/css-order2/webpack.config.js index 4231389fe..c128b4f57 100644 --- a/test/configCases/css/css-order2/webpack.config.js +++ b/test/configCases/css/css-order2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/css-order3/webpack.config.js b/test/configCases/css/css-order3/webpack.config.js index 4231389fe..c128b4f57 100644 --- a/test/configCases/css/css-order3/webpack.config.js +++ b/test/configCases/css/css-order3/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/css-types/test.config.js b/test/configCases/css/css-types/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/css-types/test.config.js +++ b/test/configCases/css/css-types/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/css-types/webpack.config.js b/test/configCases/css/css-types/webpack.config.js index 12ea75460..4157141bf 100644 --- a/test/configCases/css/css-types/webpack.config.js +++ b/test/configCases/css/css-types/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/default-exports-parser-options/webpack.config.js b/test/configCases/css/default-exports-parser-options/webpack.config.js index b7d7852b0..8d39c5a9f 100644 --- a/test/configCases/css/default-exports-parser-options/webpack.config.js +++ b/test/configCases/css/default-exports-parser-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/css/escape-unescape/test.config.js b/test/configCases/css/escape-unescape/test.config.js index 937cd273f..b601ba420 100644 --- a/test/configCases/css/escape-unescape/test.config.js +++ b/test/configCases/css/escape-unescape/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["bundle0.js"]; diff --git a/test/configCases/css/escape-unescape/webpack.config.js b/test/configCases/css/escape-unescape/webpack.config.js index fb903c5cf..199853eba 100644 --- a/test/configCases/css/escape-unescape/webpack.config.js +++ b/test/configCases/css/escape-unescape/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/css/exports-convention/test.config.js b/test/configCases/css/exports-convention/test.config.js index 05db19fcc..a962de5ad 100644 --- a/test/configCases/css/exports-convention/test.config.js +++ b/test/configCases/css/exports-convention/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return [ diff --git a/test/configCases/css/exports-convention/webpack.config.js b/test/configCases/css/exports-convention/webpack.config.js index b05d64aa4..afca53522 100644 --- a/test/configCases/css/exports-convention/webpack.config.js +++ b/test/configCases/css/exports-convention/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @typedef {import("../../../../").GeneratorOptionsByModuleTypeKnown} GeneratorOptionsByModuleTypeKnown */ diff --git a/test/configCases/css/exports-in-node/webpack.config.js b/test/configCases/css/exports-in-node/webpack.config.js index a91e72d27..8cfa4eda6 100644 --- a/test/configCases/css/exports-in-node/webpack.config.js +++ b/test/configCases/css/exports-in-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/css/exports-only-generator-options/test.config.js b/test/configCases/css/exports-only-generator-options/test.config.js index ce962330e..cfe0f9640 100644 --- a/test/configCases/css/exports-only-generator-options/test.config.js +++ b/test/configCases/css/exports-only-generator-options/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/css/exports-only-generator-options/webpack.config.js b/test/configCases/css/exports-only-generator-options/webpack.config.js index c2f9beae7..79d12a893 100644 --- a/test/configCases/css/exports-only-generator-options/webpack.config.js +++ b/test/configCases/css/exports-only-generator-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/css/external-in-node/webpack.config.js b/test/configCases/css/external-in-node/webpack.config.js index 87766dc8d..86bafcea1 100644 --- a/test/configCases/css/external-in-node/webpack.config.js +++ b/test/configCases/css/external-in-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/external/test.config.js b/test/configCases/css/external/test.config.js index 35c79b066..12841901d 100644 --- a/test/configCases/css/external/test.config.js +++ b/test/configCases/css/external/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["125.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/external/webpack.config.js b/test/configCases/css/external/webpack.config.js index 72bc3e86f..1264c1942 100644 --- a/test/configCases/css/external/webpack.config.js +++ b/test/configCases/css/external/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/import-at-middle/test.config.js b/test/configCases/css/import-at-middle/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/import-at-middle/test.config.js +++ b/test/configCases/css/import-at-middle/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/import-at-middle/warnings.js b/test/configCases/css/import-at-middle/warnings.js index dff5dce2b..2144a7273 100644 --- a/test/configCases/css/import-at-middle/warnings.js +++ b/test/configCases/css/import-at-middle/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /Any '@import' rules must precede all other rules/, /Any '@import' rules must precede all other rules/, diff --git a/test/configCases/css/import-at-middle/webpack.config.js b/test/configCases/css/import-at-middle/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/import-at-middle/webpack.config.js +++ b/test/configCases/css/import-at-middle/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/import-different-case/test.config.js b/test/configCases/css/import-different-case/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/import-different-case/test.config.js +++ b/test/configCases/css/import-different-case/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/import-different-case/webpack.config.js b/test/configCases/css/import-different-case/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/import-different-case/webpack.config.js +++ b/test/configCases/css/import-different-case/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/import-module/webpack.config.js b/test/configCases/css/import-module/webpack.config.js index bb3e4a8ef..fd7c39f64 100644 --- a/test/configCases/css/import-module/webpack.config.js +++ b/test/configCases/css/import-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/import/errors.js b/test/configCases/css/import/errors.js index 290655b24..e75f40067 100644 --- a/test/configCases/css/import/errors.js +++ b/test/configCases/css/import/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /Can't resolve 'non-exported-css'/, /Can't resolve '\.\/directory'/, diff --git a/test/configCases/css/import/test.config.js b/test/configCases/css/import/test.config.js index 5014f5795..dbfd43168 100644 --- a/test/configCases/css/import/test.config.js +++ b/test/configCases/css/import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/import/warnings.js b/test/configCases/css/import/warnings.js index b6cc2cf76..da91e8e8e 100644 --- a/test/configCases/css/import/warnings.js +++ b/test/configCases/css/import/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /Expected URL in '@import nourl\(test\.css\);'/, /Expected URL in '@import ;'/, diff --git a/test/configCases/css/import/webpack.config.js b/test/configCases/css/import/webpack.config.js index 440985da6..cee6b5153 100644 --- a/test/configCases/css/import/webpack.config.js +++ b/test/configCases/css/import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/css/large/webpack.config.js b/test/configCases/css/large/webpack.config.js index c6289845d..544806d3b 100644 --- a/test/configCases/css/large/webpack.config.js +++ b/test/configCases/css/large/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/css/local-ident-name/test.config.js b/test/configCases/css/local-ident-name/test.config.js index 207224f51..cf60dd1af 100644 --- a/test/configCases/css/local-ident-name/test.config.js +++ b/test/configCases/css/local-ident-name/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return [ diff --git a/test/configCases/css/local-ident-name/webpack.config.js b/test/configCases/css/local-ident-name/webpack.config.js index 99d0a8346..33dff2c0d 100644 --- a/test/configCases/css/local-ident-name/webpack.config.js +++ b/test/configCases/css/local-ident-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const common = { mode: "development", module: { diff --git a/test/configCases/css/named-exports-parser-options/webpack.config.js b/test/configCases/css/named-exports-parser-options/webpack.config.js index 50b4c7745..9ab994f7f 100644 --- a/test/configCases/css/named-exports-parser-options/webpack.config.js +++ b/test/configCases/css/named-exports-parser-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/css/namespace/test.config.js b/test/configCases/css/namespace/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/namespace/test.config.js +++ b/test/configCases/css/namespace/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/namespace/warnings.js b/test/configCases/css/namespace/warnings.js index b10e066e2..1d2c44544 100644 --- a/test/configCases/css/namespace/warnings.js +++ b/test/configCases/css/namespace/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/'@namespace' is not supported in bundled CSS/]; diff --git a/test/configCases/css/namespace/webpack.config.js b/test/configCases/css/namespace/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/namespace/webpack.config.js +++ b/test/configCases/css/namespace/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/no-extra-js-exports-output/test.config.js b/test/configCases/css/no-extra-js-exports-output/test.config.js index 92836b784..5eae4bcba 100644 --- a/test/configCases/css/no-extra-js-exports-output/test.config.js +++ b/test/configCases/css/no-extra-js-exports-output/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { switch (i) { diff --git a/test/configCases/css/no-extra-js-exports-output/webpack.config.js b/test/configCases/css/no-extra-js-exports-output/webpack.config.js index 4092e96c7..dfe0f6a22 100644 --- a/test/configCases/css/no-extra-js-exports-output/webpack.config.js +++ b/test/configCases/css/no-extra-js-exports-output/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/css/no-extra-runtime-in-js/test.config.js b/test/configCases/css/no-extra-runtime-in-js/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/no-extra-runtime-in-js/test.config.js +++ b/test/configCases/css/no-extra-runtime-in-js/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/no-extra-runtime-in-js/webpack.config.js b/test/configCases/css/no-extra-runtime-in-js/webpack.config.js index aa3c74538..7aae30161 100644 --- a/test/configCases/css/no-extra-runtime-in-js/webpack.config.js +++ b/test/configCases/css/no-extra-runtime-in-js/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/parsing/test.config.js b/test/configCases/css/parsing/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/parsing/test.config.js +++ b/test/configCases/css/parsing/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/parsing/webpack.config.js b/test/configCases/css/parsing/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/parsing/webpack.config.js +++ b/test/configCases/css/parsing/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/pathinfo/test.config.js b/test/configCases/css/pathinfo/test.config.js index 3ec505d42..5029f57ff 100644 --- a/test/configCases/css/pathinfo/test.config.js +++ b/test/configCases/css/pathinfo/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/css/pathinfo/webpack.config.js b/test/configCases/css/pathinfo/webpack.config.js index e2848b6a9..e9040033e 100644 --- a/test/configCases/css/pathinfo/webpack.config.js +++ b/test/configCases/css/pathinfo/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/prefer-relative-css-import/test.config.js b/test/configCases/css/prefer-relative-css-import/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/prefer-relative-css-import/test.config.js +++ b/test/configCases/css/prefer-relative-css-import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/prefer-relative-css-import/webpack.config.js b/test/configCases/css/prefer-relative-css-import/webpack.config.js index b4ebfb3d7..63eb2a165 100644 --- a/test/configCases/css/prefer-relative-css-import/webpack.config.js +++ b/test/configCases/css/prefer-relative-css-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/prefer-relative/test.config.js b/test/configCases/css/prefer-relative/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/prefer-relative/test.config.js +++ b/test/configCases/css/prefer-relative/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/prefer-relative/webpack.config.js b/test/configCases/css/prefer-relative/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/prefer-relative/webpack.config.js +++ b/test/configCases/css/prefer-relative/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/prefetch-preload-module-only-css/webpack.config.js b/test/configCases/css/prefetch-preload-module-only-css/webpack.config.js index 1d4d67a70..3e545f2e4 100644 --- a/test/configCases/css/prefetch-preload-module-only-css/webpack.config.js +++ b/test/configCases/css/prefetch-preload-module-only-css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", diff --git a/test/configCases/css/prefetch-preload-module/webpack.config.js b/test/configCases/css/prefetch-preload-module/webpack.config.js index 1d4d67a70..3e545f2e4 100644 --- a/test/configCases/css/prefetch-preload-module/webpack.config.js +++ b/test/configCases/css/prefetch-preload-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", diff --git a/test/configCases/css/pseudo-export/webpack.config.js b/test/configCases/css/pseudo-export/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/pseudo-export/webpack.config.js +++ b/test/configCases/css/pseudo-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/pseudo-import/test.config.js b/test/configCases/css/pseudo-import/test.config.js index 25a8b9f4d..84026f61e 100644 --- a/test/configCases/css/pseudo-import/test.config.js +++ b/test/configCases/css/pseudo-import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["reexport_modules_css.bundle0.js", "bundle0.js"]; diff --git a/test/configCases/css/pseudo-import/warnings.js b/test/configCases/css/pseudo-import/warnings.js index b9c29247d..d300b3f6b 100644 --- a/test/configCases/css/pseudo-import/warnings.js +++ b/test/configCases/css/pseudo-import/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ // /ICSS import "NONE_IMPORT" has no value./ ]; diff --git a/test/configCases/css/pseudo-import/webpack.config.js b/test/configCases/css/pseudo-import/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/pseudo-import/webpack.config.js +++ b/test/configCases/css/pseudo-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/pure-css/test.config.js b/test/configCases/css/pure-css/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/pure-css/test.config.js +++ b/test/configCases/css/pure-css/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/pure-css/webpack.config.js b/test/configCases/css/pure-css/webpack.config.js index 53df0bf1f..1955d3808 100644 --- a/test/configCases/css/pure-css/webpack.config.js +++ b/test/configCases/css/pure-css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/runtime-data-webpack/test.config.js b/test/configCases/css/runtime-data-webpack/test.config.js index a24512f1a..36c3327df 100644 --- a/test/configCases/css/runtime-data-webpack/test.config.js +++ b/test/configCases/css/runtime-data-webpack/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/runtime-data-webpack/webpack.config.js b/test/configCases/css/runtime-data-webpack/webpack.config.js index 336fd9f9f..a8ec0c7f8 100644 --- a/test/configCases/css/runtime-data-webpack/webpack.config.js +++ b/test/configCases/css/runtime-data-webpack/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/runtime-document-head-get-computed-style/test.config.js b/test/configCases/css/runtime-document-head-get-computed-style/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/runtime-document-head-get-computed-style/test.config.js +++ b/test/configCases/css/runtime-document-head-get-computed-style/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/runtime-document-head-get-computed-style/webpack.config.js b/test/configCases/css/runtime-document-head-get-computed-style/webpack.config.js index 7fb1039d0..0f364991f 100644 --- a/test/configCases/css/runtime-document-head-get-computed-style/webpack.config.js +++ b/test/configCases/css/runtime-document-head-get-computed-style/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/runtime-issue/test.config.js b/test/configCases/css/runtime-issue/test.config.js index b4dce7584..839bb36ff 100644 --- a/test/configCases/css/runtime-issue/test.config.js +++ b/test/configCases/css/runtime-issue/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link1 = scope.window.document.createElement("link"); diff --git a/test/configCases/css/runtime-issue/webpack.config.js b/test/configCases/css/runtime-issue/webpack.config.js index 8937b822a..ccd5e2dcc 100644 --- a/test/configCases/css/runtime-issue/webpack.config.js +++ b/test/configCases/css/runtime-issue/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/css/universal/test.config.js b/test/configCases/css/universal/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/universal/test.config.js +++ b/test/configCases/css/universal/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/universal/test.filter.js b/test/configCases/css/universal/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/css/universal/test.filter.js +++ b/test/configCases/css/universal/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/css/universal/webpack.config.js b/test/configCases/css/universal/webpack.config.js index 18c6fd147..71348e2f9 100644 --- a/test/configCases/css/universal/webpack.config.js +++ b/test/configCases/css/universal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["web", "node"], diff --git a/test/configCases/css/url-and-asset-module-filename/test.config.js b/test/configCases/css/url-and-asset-module-filename/test.config.js index f3049c55a..d588de9f1 100644 --- a/test/configCases/css/url-and-asset-module-filename/test.config.js +++ b/test/configCases/css/url-and-asset-module-filename/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return [`index_css.bundle${i}.js`, `bundle${i}.js`]; diff --git a/test/configCases/css/url-and-asset-module-filename/webpack.config.js b/test/configCases/css/url-and-asset-module-filename/webpack.config.js index 3d6979860..a4ab9c102 100644 --- a/test/configCases/css/url-and-asset-module-filename/webpack.config.js +++ b/test/configCases/css/url-and-asset-module-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ const common = { target: "web", diff --git a/test/configCases/css/url/errors.js b/test/configCases/css/url/errors.js index 0b3629f38..29b195bd7 100644 --- a/test/configCases/css/url/errors.js +++ b/test/configCases/css/url/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/Can't resolve 'unresolved.png'/]; diff --git a/test/configCases/css/url/test.config.js b/test/configCases/css/url/test.config.js index 5014f5795..dbfd43168 100644 --- a/test/configCases/css/url/test.config.js +++ b/test/configCases/css/url/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/url/webpack.config.js b/test/configCases/css/url/webpack.config.js index 6f0cf2090..b74f5f43e 100644 --- a/test/configCases/css/url/webpack.config.js +++ b/test/configCases/css/url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/css/webpack-ignore/test.config.js b/test/configCases/css/webpack-ignore/test.config.js index 059075728..eaabc0c0c 100644 --- a/test/configCases/css/webpack-ignore/test.config.js +++ b/test/configCases/css/webpack-ignore/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/css/webpack-ignore/warnings.js b/test/configCases/css/webpack-ignore/warnings.js index 52aba8cc7..41d91ac48 100644 --- a/test/configCases/css/webpack-ignore/warnings.js +++ b/test/configCases/css/webpack-ignore/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /Compilation error while processing magic comment\(-s\): \/\*\*\*\*webpackIgnore: false\*\*\*\//, /Compilation error while processing magic comment\(-s\): \/\* {3}\* {3}\* {3}\* {3}webpackIgnore: {3}false {3}\* {3}\* {3}\*\//, diff --git a/test/configCases/css/webpack-ignore/webpack.config.js b/test/configCases/css/webpack-ignore/webpack.config.js index cfb8e5c03..3cc31116d 100644 --- a/test/configCases/css/webpack-ignore/webpack.config.js +++ b/test/configCases/css/webpack-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/custom-hash-function/debug-hash/webpack.config.js b/test/configCases/custom-hash-function/debug-hash/webpack.config.js index ee9e650c7..b79e6c19a 100644 --- a/test/configCases/custom-hash-function/debug-hash/webpack.config.js +++ b/test/configCases/custom-hash-function/debug-hash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/custom-hash-function/xxhash/webpack.config.js b/test/configCases/custom-hash-function/xxhash/webpack.config.js index 66e792708..4cbb3afda 100644 --- a/test/configCases/custom-hash-function/xxhash/webpack.config.js +++ b/test/configCases/custom-hash-function/xxhash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/custom-modules/json-custom/webpack.config.js b/test/configCases/custom-modules/json-custom/webpack.config.js index 2825987f4..893ead921 100644 --- a/test/configCases/custom-modules/json-custom/webpack.config.js +++ b/test/configCases/custom-modules/json-custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const toml = require("toml"); /** @typedef {import("../../../../").ParserOptionsByModuleTypeKnown} ParserOptionsByModuleTypeKnown */ diff --git a/test/configCases/custom-source-type/localization/deprecations.js b/test/configCases/custom-source-type/localization/deprecations.js index 44a05b2a7..854cc588e 100644 --- a/test/configCases/custom-source-type/localization/deprecations.js +++ b/test/configCases/custom-source-type/localization/deprecations.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [{ code: /DEP_WEBPACK_CHUNK_TEMPLATE_RENDER_MANIFEST/ }]; diff --git a/test/configCases/custom-source-type/localization/webpack.config.js b/test/configCases/custom-source-type/localization/webpack.config.js index 36ae26ec2..abd3bd2f7 100644 --- a/test/configCases/custom-source-type/localization/webpack.config.js +++ b/test/configCases/custom-source-type/localization/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { RawSource } = require("webpack-sources"); const Generator = require("../../../../").Generator; const RuntimeModule = require("../../../../").RuntimeModule; diff --git a/test/configCases/deep-scope-analysis/remove-export-scope-hoisting/webpack.config.js b/test/configCases/deep-scope-analysis/remove-export-scope-hoisting/webpack.config.js index 02610e9e2..3fbee2391 100644 --- a/test/configCases/deep-scope-analysis/remove-export-scope-hoisting/webpack.config.js +++ b/test/configCases/deep-scope-analysis/remove-export-scope-hoisting/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Module} Module */ diff --git a/test/configCases/deep-scope-analysis/remove-export/webpack.config.js b/test/configCases/deep-scope-analysis/remove-export/webpack.config.js index 1981cb7a0..7a18c143b 100644 --- a/test/configCases/deep-scope-analysis/remove-export/webpack.config.js +++ b/test/configCases/deep-scope-analysis/remove-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Module} Module */ diff --git a/test/configCases/defaulter/immutable-config/webpack.config.js b/test/configCases/defaulter/immutable-config/webpack.config.js index 6d3016604..d9f963a8c 100644 --- a/test/configCases/defaulter/immutable-config/webpack.config.js +++ b/test/configCases/defaulter/immutable-config/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { resolve: Object.freeze({}) diff --git a/test/configCases/defer-import/async-in-graph/webpack.config.js b/test/configCases/defer-import/async-in-graph/webpack.config.js index 64d7b07d3..7ffe9a13f 100644 --- a/test/configCases/defer-import/async-in-graph/webpack.config.js +++ b/test/configCases/defer-import/async-in-graph/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/comment-error/errors.js b/test/configCases/defer-import/comment-error/errors.js index 7daeddc2b..e8663e87c 100644 --- a/test/configCases/defer-import/comment-error/errors.js +++ b/test/configCases/defer-import/comment-error/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/used with `import \* as namespace from '...'`/], [/used with `import \* as namespace from '...'`/], diff --git a/test/configCases/defer-import/comment-error/webpack.config.js b/test/configCases/defer-import/comment-error/webpack.config.js index b1d898a6d..05e45ee81 100644 --- a/test/configCases/defer-import/comment-error/webpack.config.js +++ b/test/configCases/defer-import/comment-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-but-sync-order/webpack.config.js b/test/configCases/defer-import/defer-but-sync-order/webpack.config.js index e72757af7..c3897eb50 100644 --- a/test/configCases/defer-import/defer-but-sync-order/webpack.config.js +++ b/test/configCases/defer-import/defer-but-sync-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js b/test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js index 4c47b6105..434326f43 100644 --- a/test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js +++ b/test/configCases/defer-import/defer-runtime-concat-strict/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-runtime-concat/webpack.config.js b/test/configCases/defer-import/defer-runtime-concat/webpack.config.js index 9bc9efa7e..bd136e3b4 100644 --- a/test/configCases/defer-import/defer-runtime-concat/webpack.config.js +++ b/test/configCases/defer-import/defer-runtime-concat/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js b/test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js index 86a95ddad..6c5815151 100644 --- a/test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js +++ b/test/configCases/defer-import/defer-runtime-native-syntax/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-runtime-strict/webpack.config.js b/test/configCases/defer-import/defer-runtime-strict/webpack.config.js index cb106c8b3..668d2a3f2 100644 --- a/test/configCases/defer-import/defer-runtime-strict/webpack.config.js +++ b/test/configCases/defer-import/defer-runtime-strict/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-runtime/webpack.config.js b/test/configCases/defer-import/defer-runtime/webpack.config.js index 953151172..d7b3258a4 100644 --- a/test/configCases/defer-import/defer-runtime/webpack.config.js +++ b/test/configCases/defer-import/defer-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-then-non-defer/webpack.config.js b/test/configCases/defer-import/defer-then-non-defer/webpack.config.js index 9915d3d59..981c84a29 100644 --- a/test/configCases/defer-import/defer-then-non-defer/webpack.config.js +++ b/test/configCases/defer-import/defer-then-non-defer/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/defer-used-in-async/webpack.config.js b/test/configCases/defer-import/defer-used-in-async/webpack.config.js index b1d898a6d..05e45ee81 100644 --- a/test/configCases/defer-import/defer-used-in-async/webpack.config.js +++ b/test/configCases/defer-import/defer-used-in-async/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/defer-import/harmony-import-mixed/webpack.config.js b/test/configCases/defer-import/harmony-import-mixed/webpack.config.js index b9ffe036a..5d29f61d4 100644 --- a/test/configCases/defer-import/harmony-import-mixed/webpack.config.js +++ b/test/configCases/defer-import/harmony-import-mixed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: [`async-node${process.versions.node.split(".").map(Number)[0]}`], diff --git a/test/configCases/delegated-hash/simple/warnings.js b/test/configCases/delegated-hash/simple/warnings.js index 70fefa270..fdcecb3be 100644 --- a/test/configCases/delegated-hash/simple/warnings.js +++ b/test/configCases/delegated-hash/simple/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/hashed/, /deprecated/]]; diff --git a/test/configCases/delegated-hash/simple/webpack.config.js b/test/configCases/delegated-hash/simple/webpack.config.js index d9e01efb3..8fa1ba8b3 100644 --- a/test/configCases/delegated-hash/simple/webpack.config.js +++ b/test/configCases/delegated-hash/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DelegatedPlugin = require("../../../../").DelegatedPlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/delegated/simple/webpack.config.js b/test/configCases/delegated/simple/webpack.config.js index 655614cc1..ae47bc66b 100644 --- a/test/configCases/delegated/simple/webpack.config.js +++ b/test/configCases/delegated/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DelegatedPlugin = require("../../../../").DelegatedPlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/deprecations/chunk-and-module/deprecations.js b/test/configCases/deprecations/chunk-and-module/deprecations.js index 6f776e232..8dff62679 100644 --- a/test/configCases/deprecations/chunk-and-module/deprecations.js +++ b/test/configCases/deprecations/chunk-and-module/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_CHUNK_ADD_MODULE/ }, { code: /DEP_WEBPACK_CHUNK_CONTAINS_MODULE/ }, diff --git a/test/configCases/deprecations/chunk-and-module/webpack.config.js b/test/configCases/deprecations/chunk-and-module/webpack.config.js index f0519bd26..36bbf2ea4 100644 --- a/test/configCases/deprecations/chunk-and-module/webpack.config.js +++ b/test/configCases/deprecations/chunk-and-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ChunkGraph, ExternalModule } = require("../../../../"); /** @typedef {import("../../../../").Module} Module */ diff --git a/test/configCases/deprecations/chunk-files/deprecations.js b/test/configCases/deprecations/chunk-files/deprecations.js index 99016892f..f3e917a89 100644 --- a/test/configCases/deprecations/chunk-files/deprecations.js +++ b/test/configCases/deprecations/chunk-files/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET/ }, { code: /DEP_WEBPACK_DEPRECATION_ARRAY_TO_SET_INDEXER/ }, diff --git a/test/configCases/deprecations/chunk-files/webpack.config.js b/test/configCases/deprecations/chunk-files/webpack.config.js index 8d34f6744..b64154006 100644 --- a/test/configCases/deprecations/chunk-files/webpack.config.js +++ b/test/configCases/deprecations/chunk-files/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ diff --git a/test/configCases/deprecations/config/deprecations.js b/test/configCases/deprecations/config/deprecations.js index 51cb32875..fe3b56bfc 100644 --- a/test/configCases/deprecations/config/deprecations.js +++ b/test/configCases/deprecations/config/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_CONFIGURATION_OPTIMIZATION_NO_EMIT_ON_ERRORS/ } ]; diff --git a/test/configCases/deprecations/config/webpack.config.js b/test/configCases/deprecations/config/webpack.config.js index 8542bc3b9..493a1feda 100644 --- a/test/configCases/deprecations/config/webpack.config.js +++ b/test/configCases/deprecations/config/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/deprecations/invalid-dependencies/warnings.js b/test/configCases/deprecations/invalid-dependencies/warnings.js index 6debc7757..137b91c0d 100644 --- a/test/configCases/deprecations/invalid-dependencies/warnings.js +++ b/test/configCases/deprecations/invalid-dependencies/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ { moduleName: /\.\/index\.js/ }, diff --git a/test/configCases/deprecations/invalid-dependencies/webpack.config.js b/test/configCases/deprecations/invalid-dependencies/webpack.config.js index 3722875d8..8df1a7140 100644 --- a/test/configCases/deprecations/invalid-dependencies/webpack.config.js +++ b/test/configCases/deprecations/invalid-dependencies/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/deprecations/non-unique-hash/deprecations.js b/test/configCases/deprecations/non-unique-hash/deprecations.js index 8a3adf146..7b23f6495 100644 --- a/test/configCases/deprecations/non-unique-hash/deprecations.js +++ b/test/configCases/deprecations/non-unique-hash/deprecations.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [{ code: /DEP_WEBPACK_MODULE_HASH/ }]; diff --git a/test/configCases/deprecations/non-unique-hash/webpack.config.js b/test/configCases/deprecations/non-unique-hash/webpack.config.js index d5db5c222..ef7f8aa4e 100644 --- a/test/configCases/deprecations/non-unique-hash/webpack.config.js +++ b/test/configCases/deprecations/non-unique-hash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin-entry/0-create-dll/test.config.js b/test/configCases/dll-plugin-entry/0-create-dll/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin-entry/0-create-dll/test.config.js +++ b/test/configCases/dll-plugin-entry/0-create-dll/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin-entry/0-create-dll/webpack.config.js b/test/configCases/dll-plugin-entry/0-create-dll/webpack.config.js index 6a358cd66..b9707095b 100644 --- a/test/configCases/dll-plugin-entry/0-create-dll/webpack.config.js +++ b/test/configCases/dll-plugin-entry/0-create-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin-entry/1-use-dll/webpack.config.js b/test/configCases/dll-plugin-entry/1-use-dll/webpack.config.js index be916ac44..fb1096191 100644 --- a/test/configCases/dll-plugin-entry/1-use-dll/webpack.config.js +++ b/test/configCases/dll-plugin-entry/1-use-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin-entry/2-error-non-entry/errors.js b/test/configCases/dll-plugin-entry/2-error-non-entry/errors.js index 857282ec9..595149cef 100644 --- a/test/configCases/dll-plugin-entry/2-error-non-entry/errors.js +++ b/test/configCases/dll-plugin-entry/2-error-non-entry/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Can't resolve 'dll\/dep2'/]]; diff --git a/test/configCases/dll-plugin-entry/2-error-non-entry/webpack.config.js b/test/configCases/dll-plugin-entry/2-error-non-entry/webpack.config.js index be916ac44..fb1096191 100644 --- a/test/configCases/dll-plugin-entry/2-error-non-entry/webpack.config.js +++ b/test/configCases/dll-plugin-entry/2-error-non-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin-format/0-create-dll/test.config.js b/test/configCases/dll-plugin-format/0-create-dll/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin-format/0-create-dll/test.config.js +++ b/test/configCases/dll-plugin-format/0-create-dll/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin-format/0-create-dll/webpack.config.js b/test/configCases/dll-plugin-format/0-create-dll/webpack.config.js index eb75dc1c1..2bf320ed1 100644 --- a/test/configCases/dll-plugin-format/0-create-dll/webpack.config.js +++ b/test/configCases/dll-plugin-format/0-create-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin-side-effects/0-create-dll/test.config.js b/test/configCases/dll-plugin-side-effects/0-create-dll/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin-side-effects/0-create-dll/test.config.js +++ b/test/configCases/dll-plugin-side-effects/0-create-dll/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin-side-effects/0-create-dll/webpack.config.js b/test/configCases/dll-plugin-side-effects/0-create-dll/webpack.config.js index 2fab4e471..01edc8de5 100644 --- a/test/configCases/dll-plugin-side-effects/0-create-dll/webpack.config.js +++ b/test/configCases/dll-plugin-side-effects/0-create-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin-side-effects/1-use-dll/webpack.config.js b/test/configCases/dll-plugin-side-effects/1-use-dll/webpack.config.js index e4efbfe5f..ecbc5423f 100644 --- a/test/configCases/dll-plugin-side-effects/1-use-dll/webpack.config.js +++ b/test/configCases/dll-plugin-side-effects/1-use-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin/0-create-dll-with-contenthash/test.config.js b/test/configCases/dll-plugin/0-create-dll-with-contenthash/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin/0-create-dll-with-contenthash/test.config.js +++ b/test/configCases/dll-plugin/0-create-dll-with-contenthash/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin/0-create-dll-with-contenthash/webpack.config.js b/test/configCases/dll-plugin/0-create-dll-with-contenthash/webpack.config.js index 11e52fffc..8e28f6d8c 100644 --- a/test/configCases/dll-plugin/0-create-dll-with-contenthash/webpack.config.js +++ b/test/configCases/dll-plugin/0-create-dll-with-contenthash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin/0-create-dll/test.config.js b/test/configCases/dll-plugin/0-create-dll/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin/0-create-dll/test.config.js +++ b/test/configCases/dll-plugin/0-create-dll/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin/0-create-dll/webpack.config.js b/test/configCases/dll-plugin/0-create-dll/webpack.config.js index 1983141cd..0f392cd35 100644 --- a/test/configCases/dll-plugin/0-create-dll/webpack.config.js +++ b/test/configCases/dll-plugin/0-create-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin/0-issue-10475/test.config.js b/test/configCases/dll-plugin/0-issue-10475/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/dll-plugin/0-issue-10475/test.config.js +++ b/test/configCases/dll-plugin/0-issue-10475/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/dll-plugin/0-issue-10475/webpack.config.js b/test/configCases/dll-plugin/0-issue-10475/webpack.config.js index 7ea13a7ce..6f492c1ab 100644 --- a/test/configCases/dll-plugin/0-issue-10475/webpack.config.js +++ b/test/configCases/dll-plugin/0-issue-10475/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin/1-issue-10475/webpack.config.js b/test/configCases/dll-plugin/1-issue-10475/webpack.config.js index cd2640f87..184ecd19b 100644 --- a/test/configCases/dll-plugin/1-issue-10475/webpack.config.js +++ b/test/configCases/dll-plugin/1-issue-10475/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin/1-use-dll/webpack.config.js b/test/configCases/dll-plugin/1-use-dll/webpack.config.js index 27906ea6f..a73ae3c59 100644 --- a/test/configCases/dll-plugin/1-use-dll/webpack.config.js +++ b/test/configCases/dll-plugin/1-use-dll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin/2-use-dll-without-scope/webpack.config.js b/test/configCases/dll-plugin/2-use-dll-without-scope/webpack.config.js index ce7262fa4..def6b4af7 100644 --- a/test/configCases/dll-plugin/2-use-dll-without-scope/webpack.config.js +++ b/test/configCases/dll-plugin/2-use-dll-without-scope/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin/3-use-dll-with-hashid/warnings.js b/test/configCases/dll-plugin/3-use-dll-with-hashid/warnings.js index 70fefa270..fdcecb3be 100644 --- a/test/configCases/dll-plugin/3-use-dll-with-hashid/warnings.js +++ b/test/configCases/dll-plugin/3-use-dll-with-hashid/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/hashed/, /deprecated/]]; diff --git a/test/configCases/dll-plugin/3-use-dll-with-hashid/webpack.config.js b/test/configCases/dll-plugin/3-use-dll-with-hashid/webpack.config.js index 7039a3c5a..8d0f2b8da 100644 --- a/test/configCases/dll-plugin/3-use-dll-with-hashid/webpack.config.js +++ b/test/configCases/dll-plugin/3-use-dll-with-hashid/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/dll-plugin/4-use-dll-with-contenthash/webpack.config.js b/test/configCases/dll-plugin/4-use-dll-with-contenthash/webpack.config.js index 5b88d83b0..5aa52cf25 100644 --- a/test/configCases/dll-plugin/4-use-dll-with-contenthash/webpack.config.js +++ b/test/configCases/dll-plugin/4-use-dll-with-contenthash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/dll-plugin/5-issue-18200/errors.js b/test/configCases/dll-plugin/5-issue-18200/errors.js index 48720d5cb..69e6a6b09 100644 --- a/test/configCases/dll-plugin/5-issue-18200/errors.js +++ b/test/configCases/dll-plugin/5-issue-18200/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/each chunk must have a unique path/]]; diff --git a/test/configCases/dll-plugin/5-issue-18200/webpack.config.js b/test/configCases/dll-plugin/5-issue-18200/webpack.config.js index a34ec1693..fc75e6d3b 100644 --- a/test/configCases/dll-plugin/5-issue-18200/webpack.config.js +++ b/test/configCases/dll-plugin/5-issue-18200/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/ecmaVersion/2015/webpack.config.js b/test/configCases/ecmaVersion/2015/webpack.config.js index 989d5457b..5ca5c19de 100644 --- a/test/configCases/ecmaVersion/2015/webpack.config.js +++ b/test/configCases/ecmaVersion/2015/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es2015"] diff --git a/test/configCases/ecmaVersion/2020/webpack.config.js b/test/configCases/ecmaVersion/2020/webpack.config.js index a4c801f0a..bbc841484 100644 --- a/test/configCases/ecmaVersion/2020/webpack.config.js +++ b/test/configCases/ecmaVersion/2020/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es2020"] diff --git a/test/configCases/ecmaVersion/5/webpack.config.js b/test/configCases/ecmaVersion/5/webpack.config.js index 12f3d9f65..11351a0ba 100644 --- a/test/configCases/ecmaVersion/5/webpack.config.js +++ b/test/configCases/ecmaVersion/5/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es5"] diff --git a/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js b/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js index 47b717ab3..14d737371 100644 --- a/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js +++ b/test/configCases/ecmaVersion/browserslist-config-env/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/ecmaVersion/browserslist-config/webpack.config.js b/test/configCases/ecmaVersion/browserslist-config/webpack.config.js index 6772fe114..1ff200a0c 100644 --- a/test/configCases/ecmaVersion/browserslist-config/webpack.config.js +++ b/test/configCases/ecmaVersion/browserslist-config/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/ecmaVersion/browserslist-missing/errors.js b/test/configCases/ecmaVersion/browserslist-missing/errors.js index a02f9820e..fab8478dd 100644 --- a/test/configCases/ecmaVersion/browserslist-missing/errors.js +++ b/test/configCases/ecmaVersion/browserslist-missing/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/No browserslist config found/]]; diff --git a/test/configCases/ecmaVersion/browserslist-missing/test.filter.js b/test/configCases/ecmaVersion/browserslist-missing/test.filter.js index d5852188b..a0e90a191 100644 --- a/test/configCases/ecmaVersion/browserslist-missing/test.filter.js +++ b/test/configCases/ecmaVersion/browserslist-missing/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.cache; diff --git a/test/configCases/ecmaVersion/browserslist-missing/webpack.config.js b/test/configCases/ecmaVersion/browserslist-missing/webpack.config.js index 57dbb3363..6ceb9d1a7 100644 --- a/test/configCases/ecmaVersion/browserslist-missing/webpack.config.js +++ b/test/configCases/ecmaVersion/browserslist-missing/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["browserslist"] diff --git a/test/configCases/ecmaVersion/browserslist-query/webpack.config.js b/test/configCases/ecmaVersion/browserslist-query/webpack.config.js index 5a2b52a97..fa4e2b863 100644 --- a/test/configCases/ecmaVersion/browserslist-query/webpack.config.js +++ b/test/configCases/ecmaVersion/browserslist-query/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "browserslist: ie 9", diff --git a/test/configCases/ecmaVersion/browserslist/webpack.config.js b/test/configCases/ecmaVersion/browserslist/webpack.config.js index cbaaab50e..1885bdfaa 100644 --- a/test/configCases/ecmaVersion/browserslist/webpack.config.js +++ b/test/configCases/ecmaVersion/browserslist/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["browserslist"], diff --git a/test/configCases/ecmaVersion/custom/webpack.config.js b/test/configCases/ecmaVersion/custom/webpack.config.js index 53945cfba..4c66e4e39 100644 --- a/test/configCases/ecmaVersion/custom/webpack.config.js +++ b/test/configCases/ecmaVersion/custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/ecmaVersion/loader-context/webpack.config.js b/test/configCases/ecmaVersion/loader-context/webpack.config.js index 72cbad754..0f3785aac 100644 --- a/test/configCases/ecmaVersion/loader-context/webpack.config.js +++ b/test/configCases/ecmaVersion/loader-context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: ["node", "es2020"], diff --git a/test/configCases/emit-asset/different-source/errors.js b/test/configCases/emit-asset/different-source/errors.js index 4ca3183d5..9f1227f09 100644 --- a/test/configCases/emit-asset/different-source/errors.js +++ b/test/configCases/emit-asset/different-source/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Conflict/, diff --git a/test/configCases/emit-asset/different-source/webpack.config.js b/test/configCases/emit-asset/different-source/webpack.config.js index c124af721..641c6b8bf 100644 --- a/test/configCases/emit-asset/different-source/webpack.config.js +++ b/test/configCases/emit-asset/different-source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/emit-asset/equal-source/webpack.config.js b/test/configCases/emit-asset/equal-source/webpack.config.js index c124af721..641c6b8bf 100644 --- a/test/configCases/emit-asset/equal-source/webpack.config.js +++ b/test/configCases/emit-asset/equal-source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/entry/adding-multiple-entry-points/test.config.js b/test/configCases/entry/adding-multiple-entry-points/test.config.js index 1a96fecb1..a4d8d86ae 100644 --- a/test/configCases/entry/adding-multiple-entry-points/test.config.js +++ b/test/configCases/entry/adding-multiple-entry-points/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime~main.js", "./main.js"]; diff --git a/test/configCases/entry/adding-multiple-entry-points/webpack.config.js b/test/configCases/entry/adding-multiple-entry-points/webpack.config.js index 6c71cfb80..8184f4b19 100644 --- a/test/configCases/entry/adding-multiple-entry-points/webpack.config.js +++ b/test/configCases/entry/adding-multiple-entry-points/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const EntryPlugin = require("../../../../").EntryPlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/entry/depend-on-advanced/test.config.js b/test/configCases/entry/depend-on-advanced/test.config.js index e4418ec81..50a41ac8a 100644 --- a/test/configCases/entry/depend-on-advanced/test.config.js +++ b/test/configCases/entry/depend-on-advanced/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/entry/depend-on-advanced/webpack.config.js b/test/configCases/entry/depend-on-advanced/webpack.config.js index f503e4e83..c38883dc9 100644 --- a/test/configCases/entry/depend-on-advanced/webpack.config.js +++ b/test/configCases/entry/depend-on-advanced/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Configuration} Configuration */ diff --git a/test/configCases/entry/depend-on-bug/test.config.js b/test/configCases/entry/depend-on-bug/test.config.js index f0f5067ae..49a5cbdac 100644 --- a/test/configCases/entry/depend-on-bug/test.config.js +++ b/test/configCases/entry/depend-on-bug/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./other-vendors.js", "./page1.js", "./app.js"]; diff --git a/test/configCases/entry/depend-on-bug/webpack.config.js b/test/configCases/entry/depend-on-bug/webpack.config.js index e55145af4..ada19ab53 100644 --- a/test/configCases/entry/depend-on-bug/webpack.config.js +++ b/test/configCases/entry/depend-on-bug/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Configuration} Configuration */ diff --git a/test/configCases/entry/depend-on-non-js/test.config.js b/test/configCases/entry/depend-on-non-js/test.config.js index bb4a0a53e..fb58244b6 100644 --- a/test/configCases/entry/depend-on-non-js/test.config.js +++ b/test/configCases/entry/depend-on-non-js/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./a.js", "./b.js"]; diff --git a/test/configCases/entry/depend-on-non-js/webpack.config.js b/test/configCases/entry/depend-on-non-js/webpack.config.js index 1d85d3a86..07bc8a1e8 100644 --- a/test/configCases/entry/depend-on-non-js/webpack.config.js +++ b/test/configCases/entry/depend-on-non-js/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/entry/depend-on-simple/test.config.js b/test/configCases/entry/depend-on-simple/test.config.js index 49dc848d7..2288cff59 100644 --- a/test/configCases/entry/depend-on-simple/test.config.js +++ b/test/configCases/entry/depend-on-simple/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./app.js", "./react-vendors.js"]; diff --git a/test/configCases/entry/depend-on-simple/webpack.config.js b/test/configCases/entry/depend-on-simple/webpack.config.js index d8f6017e1..723dc6c5a 100644 --- a/test/configCases/entry/depend-on-simple/webpack.config.js +++ b/test/configCases/entry/depend-on-simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @typedef {import("../../../../").Compilation} Compilation */ /** @typedef {import("../../../../").Chunk} Chunk */ diff --git a/test/configCases/entry/descriptor/test.config.js b/test/configCases/entry/descriptor/test.config.js index 212b2e5fc..af2075ac8 100644 --- a/test/configCases/entry/descriptor/test.config.js +++ b/test/configCases/entry/descriptor/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js"]; diff --git a/test/configCases/entry/descriptor/webpack.config.js b/test/configCases/entry/descriptor/webpack.config.js index d6e64eb6e..b9c6363e1 100644 --- a/test/configCases/entry/descriptor/webpack.config.js +++ b/test/configCases/entry/descriptor/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry() { diff --git a/test/configCases/entry/entry-base-uri/webpack.config.js b/test/configCases/entry/entry-base-uri/webpack.config.js index 283ccf45e..41979b909 100644 --- a/test/configCases/entry/entry-base-uri/webpack.config.js +++ b/test/configCases/entry/entry-base-uri/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/function-promise/test.config.js b/test/configCases/entry/function-promise/test.config.js index 212b2e5fc..af2075ac8 100644 --- a/test/configCases/entry/function-promise/test.config.js +++ b/test/configCases/entry/function-promise/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js"]; diff --git a/test/configCases/entry/function-promise/webpack.config.js b/test/configCases/entry/function-promise/webpack.config.js index 50d4e4308..896edd15b 100644 --- a/test/configCases/entry/function-promise/webpack.config.js +++ b/test/configCases/entry/function-promise/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry() { diff --git a/test/configCases/entry/function/test.config.js b/test/configCases/entry/function/test.config.js index 212b2e5fc..af2075ac8 100644 --- a/test/configCases/entry/function/test.config.js +++ b/test/configCases/entry/function/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js"]; diff --git a/test/configCases/entry/function/webpack.config.js b/test/configCases/entry/function/webpack.config.js index b7bf7cdd8..a55d9325f 100644 --- a/test/configCases/entry/function/webpack.config.js +++ b/test/configCases/entry/function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry() { diff --git a/test/configCases/entry/issue-1068/webpack.config.js b/test/configCases/entry/issue-1068/webpack.config.js index e1229c307..db676c98c 100644 --- a/test/configCases/entry/issue-1068/webpack.config.js +++ b/test/configCases/entry/issue-1068/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: [ diff --git a/test/configCases/entry/issue-12562/test.config.js b/test/configCases/entry/issue-12562/test.config.js index b1fbb4ba6..3091b7d6f 100644 --- a/test/configCases/entry/issue-12562/test.config.js +++ b/test/configCases/entry/issue-12562/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./app.js", "./home.js"]; diff --git a/test/configCases/entry/issue-12562/webpack.config.js b/test/configCases/entry/issue-12562/webpack.config.js index 2e0423bbc..e96ea1955 100644 --- a/test/configCases/entry/issue-12562/webpack.config.js +++ b/test/configCases/entry/issue-12562/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/issue-13637/test.config.js b/test/configCases/entry/issue-13637/test.config.js index 89dad6d83..e9077fd3e 100644 --- a/test/configCases/entry/issue-13637/test.config.js +++ b/test/configCases/entry/issue-13637/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/entry/issue-13637/webpack.config.js b/test/configCases/entry/issue-13637/webpack.config.js index ba3c6618c..74410018e 100644 --- a/test/configCases/entry/issue-13637/webpack.config.js +++ b/test/configCases/entry/issue-13637/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/issue-8110/webpack.config.js b/test/configCases/entry/issue-8110/webpack.config.js index 1954865e2..c86e62278 100644 --- a/test/configCases/entry/issue-8110/webpack.config.js +++ b/test/configCases/entry/issue-8110/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/no-chunking/test.config.js b/test/configCases/entry/no-chunking/test.config.js index 81a03d4c3..cd9efc4d6 100644 --- a/test/configCases/entry/no-chunking/test.config.js +++ b/test/configCases/entry/no-chunking/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js", "./c.js", "./runtime.js", "./d.js"]; diff --git a/test/configCases/entry/no-chunking/webpack.config.js b/test/configCases/entry/no-chunking/webpack.config.js index 3becbc09b..523f76de4 100644 --- a/test/configCases/entry/no-chunking/webpack.config.js +++ b/test/configCases/entry/no-chunking/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/require-entry-point/webpack.config.js b/test/configCases/entry/require-entry-point/webpack.config.js index f8d4436d2..915e708d5 100644 --- a/test/configCases/entry/require-entry-point/webpack.config.js +++ b/test/configCases/entry/require-entry-point/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/entry/single-entry-point/webpack.config.js b/test/configCases/entry/single-entry-point/webpack.config.js index 777b9f6bd..eb5e23c15 100644 --- a/test/configCases/entry/single-entry-point/webpack.config.js +++ b/test/configCases/entry/single-entry-point/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./single-entry-point" diff --git a/test/configCases/entry/usage-info-in-multiple-entry-points/webpack.config.js b/test/configCases/entry/usage-info-in-multiple-entry-points/webpack.config.js index 294adb67d..8dcbfa586 100644 --- a/test/configCases/entry/usage-info-in-multiple-entry-points/webpack.config.js +++ b/test/configCases/entry/usage-info-in-multiple-entry-points/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: ["./a", "./b"] diff --git a/test/configCases/entry/weird-names/test.config.js b/test/configCases/entry/weird-names/test.config.js index f6819f8a1..e4cf41ca7 100644 --- a/test/configCases/entry/weird-names/test.config.js +++ b/test/configCases/entry/weird-names/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i, options) { return [ diff --git a/test/configCases/entry/weird-names/webpack.config.js b/test/configCases/entry/weird-names/webpack.config.js index 6d3833d49..82da45ccd 100644 --- a/test/configCases/entry/weird-names/webpack.config.js +++ b/test/configCases/entry/weird-names/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const entry = { "././../entry/point/./../": "./index.js", "/////": "./index.js", diff --git a/test/configCases/entry/weird-names2/test.config.js b/test/configCases/entry/weird-names2/test.config.js index d54f564d2..c5b6d32c1 100644 --- a/test/configCases/entry/weird-names2/test.config.js +++ b/test/configCases/entry/weird-names2/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i, options) { return [ diff --git a/test/configCases/entry/weird-names2/webpack.config.js b/test/configCases/entry/weird-names2/webpack.config.js index 831cc48f4..14afcd93b 100644 --- a/test/configCases/entry/weird-names2/webpack.config.js +++ b/test/configCases/entry/weird-names2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const entry = { "././../weird-names2-out/entry/point/./../entry": "./index.js", "..//weird-names2-out////entry": "./index.js" diff --git a/test/configCases/errors/asset-options-validation/errors.js b/test/configCases/errors/asset-options-validation/errors.js index cc7b138a3..974dd6069 100644 --- a/test/configCases/errors/asset-options-validation/errors.js +++ b/test/configCases/errors/asset-options-validation/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Invalid generator object\. Asset Modules Plugin has been initialized using a generator object that does not match the API schema/, diff --git a/test/configCases/errors/asset-options-validation/webpack.config.js b/test/configCases/errors/asset-options-validation/webpack.config.js index 6a2069d8c..db05dda25 100644 --- a/test/configCases/errors/asset-options-validation/webpack.config.js +++ b/test/configCases/errors/asset-options-validation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/errors/case-emit/errors.js b/test/configCases/errors/case-emit/errors.js index 0e4de2461..05131a63e 100644 --- a/test/configCases/errors/case-emit/errors.js +++ b/test/configCases/errors/case-emit/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/only differs in casing/, /a\.js/, /A\.js/]]; diff --git a/test/configCases/errors/case-emit/webpack.config.js b/test/configCases/errors/case-emit/webpack.config.js index 9b771c254..811857876 100644 --- a/test/configCases/errors/case-emit/webpack.config.js +++ b/test/configCases/errors/case-emit/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/errors/depend-on-and-runtime/errors.js b/test/configCases/errors/depend-on-and-runtime/errors.js index 30fed4667..d7012cb9f 100644 --- a/test/configCases/errors/depend-on-and-runtime/errors.js +++ b/test/configCases/errors/depend-on-and-runtime/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Entrypoint 'b1' has a 'runtime' option which points to another entrypoint named 'a1'/ diff --git a/test/configCases/errors/depend-on-and-runtime/webpack.config.js b/test/configCases/errors/depend-on-and-runtime/webpack.config.js index 964c679dc..c4cdc14f4 100644 --- a/test/configCases/errors/depend-on-and-runtime/webpack.config.js +++ b/test/configCases/errors/depend-on-and-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/errors/depend-on-error/errors.js b/test/configCases/errors/depend-on-error/errors.js index 190bf41d5..cc54ee51a 100644 --- a/test/configCases/errors/depend-on-error/errors.js +++ b/test/configCases/errors/depend-on-error/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Can't resolve '\.\/file-does-not-exist\.js'/]]; diff --git a/test/configCases/errors/depend-on-error/webpack.config.js b/test/configCases/errors/depend-on-error/webpack.config.js index 967e70817..b36e731c4 100644 --- a/test/configCases/errors/depend-on-error/webpack.config.js +++ b/test/configCases/errors/depend-on-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/errors/entry-not-found/errors.js b/test/configCases/errors/entry-not-found/errors.js index 648b41f3f..fe6443acc 100644 --- a/test/configCases/errors/entry-not-found/errors.js +++ b/test/configCases/errors/entry-not-found/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/^Module not found/, /.\/index\.js/]]; diff --git a/test/configCases/errors/entry-not-found/webpack.config.js b/test/configCases/errors/entry-not-found/webpack.config.js index 3583b70a3..27313115d 100644 --- a/test/configCases/errors/entry-not-found/webpack.config.js +++ b/test/configCases/errors/entry-not-found/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = {}; diff --git a/test/configCases/errors/exception-in-chunk-renderer/errors.js b/test/configCases/errors/exception-in-chunk-renderer/errors.js index 695255863..0bc6c5af3 100644 --- a/test/configCases/errors/exception-in-chunk-renderer/errors.js +++ b/test/configCases/errors/exception-in-chunk-renderer/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Test exception/]]; diff --git a/test/configCases/errors/exception-in-chunk-renderer/webpack.config.js b/test/configCases/errors/exception-in-chunk-renderer/webpack.config.js index d769e2c6e..640f63f32 100644 --- a/test/configCases/errors/exception-in-chunk-renderer/webpack.config.js +++ b/test/configCases/errors/exception-in-chunk-renderer/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ class ThrowsExceptionInRender { diff --git a/test/configCases/errors/generator-generate-error/errors.js b/test/configCases/errors/generator-generate-error/errors.js index 5cc27fc19..265073eab 100644 --- a/test/configCases/errors/generator-generate-error/errors.js +++ b/test/configCases/errors/generator-generate-error/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /javascript\/auto error message/, /asset\/inline error message/, diff --git a/test/configCases/errors/generator-generate-error/infrastructure-log.js b/test/configCases/errors/generator-generate-error/infrastructure-log.js index 10532afb6..b687f5038 100644 --- a/test/configCases/errors/generator-generate-error/infrastructure-log.js +++ b/test/configCases/errors/generator-generate-error/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = options => { if (options.cache && options.cache.type === "filesystem") { return [/Pack got invalid because of write to/]; diff --git a/test/configCases/errors/generator-generate-error/test.config.js b/test/configCases/errors/generator-generate-error/test.config.js index ac2a9c3a4..28c3d22f5 100644 --- a/test/configCases/errors/generator-generate-error/test.config.js +++ b/test/configCases/errors/generator-generate-error/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); module.exports = { diff --git a/test/configCases/errors/generator-generate-error/test.filter.js b/test/configCases/errors/generator-generate-error/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/errors/generator-generate-error/test.filter.js +++ b/test/configCases/errors/generator-generate-error/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/errors/generator-generate-error/webpack.config.js b/test/configCases/errors/generator-generate-error/webpack.config.js index ac63555dc..85c772c36 100644 --- a/test/configCases/errors/generator-generate-error/webpack.config.js +++ b/test/configCases/errors/generator-generate-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/errors/import-missing/errors.js b/test/configCases/errors/import-missing/errors.js index d85236a2c..3c4e17e88 100644 --- a/test/configCases/errors/import-missing/errors.js +++ b/test/configCases/errors/import-missing/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/]]; diff --git a/test/configCases/errors/import-missing/webpack.config.js b/test/configCases/errors/import-missing/webpack.config.js index 61694bc09..ac887dc07 100644 --- a/test/configCases/errors/import-missing/webpack.config.js +++ b/test/configCases/errors/import-missing/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { bail: true diff --git a/test/configCases/errors/multi-entry-missing-module/test.config.js b/test/configCases/errors/multi-entry-missing-module/test.config.js index 700b7acb6..212ce63ec 100644 --- a/test/configCases/errors/multi-entry-missing-module/test.config.js +++ b/test/configCases/errors/multi-entry-missing-module/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js", "./bundle0.js"]; diff --git a/test/configCases/errors/multi-entry-missing-module/webpack.config.js b/test/configCases/errors/multi-entry-missing-module/webpack.config.js index e832f4a8c..91e207bd5 100644 --- a/test/configCases/errors/multi-entry-missing-module/webpack.config.js +++ b/test/configCases/errors/multi-entry-missing-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const IgnorePlugin = require("../../../../").IgnorePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/errors/self-reexport/webpack.config.js b/test/configCases/errors/self-reexport/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/configCases/errors/self-reexport/webpack.config.js +++ b/test/configCases/errors/self-reexport/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/configCases/externals/async-externals/webpack.config.js b/test/configCases/externals/async-externals/webpack.config.js index 68ccc42a6..034362633 100644 --- a/test/configCases/externals/async-externals/webpack.config.js +++ b/test/configCases/externals/async-externals/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: ["web", "es2020"], output: { diff --git a/test/configCases/externals/concatenated-module/test.filter.js b/test/configCases/externals/concatenated-module/test.filter.js index 4afe691c9..831073aef 100644 --- a/test/configCases/externals/concatenated-module/test.filter.js +++ b/test/configCases/externals/concatenated-module/test.filter.js @@ -1,2 +1,4 @@ +"use strict"; + module.exports = () => !process.version.startsWith("v10.") && !process.version.startsWith("v12."); diff --git a/test/configCases/externals/concatenated-module/webpack.config.js b/test/configCases/externals/concatenated-module/webpack.config.js index 302e048f3..6b2d95536 100644 --- a/test/configCases/externals/concatenated-module/webpack.config.js +++ b/test/configCases/externals/concatenated-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {(variant: boolean) => import("../../../../").Configuration} */ const config = o => ({ externals: { diff --git a/test/configCases/externals/concatenated/webpack.config.js b/test/configCases/externals/concatenated/webpack.config.js index 281919c8c..c247dd6a3 100644 --- a/test/configCases/externals/concatenated/webpack.config.js +++ b/test/configCases/externals/concatenated/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/export-fn-cjs/webpack.config.js b/test/configCases/externals/export-fn-cjs/webpack.config.js index 564d7c859..4484e6fe3 100644 --- a/test/configCases/externals/export-fn-cjs/webpack.config.js +++ b/test/configCases/externals/export-fn-cjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/export-fn-esm/webpack.config.js b/test/configCases/externals/export-fn-esm/webpack.config.js index 564d7c859..4484e6fe3 100644 --- a/test/configCases/externals/export-fn-esm/webpack.config.js +++ b/test/configCases/externals/export-fn-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/externals-array/webpack.config.js b/test/configCases/externals/externals-array/webpack.config.js index 8d0520334..9d1789952 100644 --- a/test/configCases/externals/externals-array/webpack.config.js +++ b/test/configCases/externals/externals-array/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration[]} */ diff --git a/test/configCases/externals/externals-in-chunk/webpack.config.js b/test/configCases/externals/externals-in-chunk/webpack.config.js index f147c9f5b..85828e313 100644 --- a/test/configCases/externals/externals-in-chunk/webpack.config.js +++ b/test/configCases/externals/externals-in-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/externals-in-commons-chunk/test.config.js b/test/configCases/externals/externals-in-commons-chunk/test.config.js index 33095374f..10f6e39f7 100644 --- a/test/configCases/externals/externals-in-commons-chunk/test.config.js +++ b/test/configCases/externals/externals-in-commons-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./common.js", "./main.js"]; diff --git a/test/configCases/externals/externals-in-commons-chunk/webpack.config.js b/test/configCases/externals/externals-in-commons-chunk/webpack.config.js index 85305d390..0690856e0 100644 --- a/test/configCases/externals/externals-in-commons-chunk/webpack.config.js +++ b/test/configCases/externals/externals-in-commons-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/externals/externals-system-custom/test.config.js b/test/configCases/externals/externals-system-custom/test.config.js index bbe84a331..e63e63ade 100644 --- a/test/configCases/externals/externals-system-custom/test.config.js +++ b/test/configCases/externals/externals-system-custom/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/externals/externals-system-custom/webpack.config.js b/test/configCases/externals/externals-system-custom/webpack.config.js index 16c4b3f9d..c8a1aca05 100644 --- a/test/configCases/externals/externals-system-custom/webpack.config.js +++ b/test/configCases/externals/externals-system-custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/externals-system/test.config.js b/test/configCases/externals/externals-system/test.config.js index 5520b1dae..39826c307 100644 --- a/test/configCases/externals/externals-system/test.config.js +++ b/test/configCases/externals/externals-system/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/externals/externals-system/webpack.config.js b/test/configCases/externals/externals-system/webpack.config.js index 7d3ab88f0..0744e8a80 100644 --- a/test/configCases/externals/externals-system/webpack.config.js +++ b/test/configCases/externals/externals-system/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/global/webpack.config.js b/test/configCases/externals/global/webpack.config.js index 0396bdef9..d44abc718 100644 --- a/test/configCases/externals/global/webpack.config.js +++ b/test/configCases/externals/global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/harmony/webpack.config.js b/test/configCases/externals/harmony/webpack.config.js index 471b2a5ce..6333facfd 100644 --- a/test/configCases/externals/harmony/webpack.config.js +++ b/test/configCases/externals/harmony/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { externals: { diff --git a/test/configCases/externals/import-assertion/test.filter.js b/test/configCases/externals/import-assertion/test.filter.js index 50efa4454..8b36f73c4 100644 --- a/test/configCases/externals/import-assertion/test.filter.js +++ b/test/configCases/externals/import-assertion/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => /^v(1[6-9]|21)/.test(process.version); diff --git a/test/configCases/externals/import-assertion/webpack.config.js b/test/configCases/externals/import-assertion/webpack.config.js index b73df70a5..d4a4306b1 100644 --- a/test/configCases/externals/import-assertion/webpack.config.js +++ b/test/configCases/externals/import-assertion/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { diff --git a/test/configCases/externals/import-attributes/test.filter.js b/test/configCases/externals/import-attributes/test.filter.js index 2ce4d1c33..c2a0580e7 100644 --- a/test/configCases/externals/import-attributes/test.filter.js +++ b/test/configCases/externals/import-attributes/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => /^v(2[2-9])/.test(process.version); diff --git a/test/configCases/externals/import-attributes/webpack.config.js b/test/configCases/externals/import-attributes/webpack.config.js index b73df70a5..d4a4306b1 100644 --- a/test/configCases/externals/import-attributes/webpack.config.js +++ b/test/configCases/externals/import-attributes/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const { diff --git a/test/configCases/externals/module-import/test.config.js b/test/configCases/externals/module-import/test.config.js index 8280b4d30..8fd6a346c 100644 --- a/test/configCases/externals/module-import/test.config.js +++ b/test/configCases/externals/module-import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle: () => ["main.js"] }; diff --git a/test/configCases/externals/module-import/webpack.config.js b/test/configCases/externals/module-import/webpack.config.js index eee267f89..ddf3515be 100644 --- a/test/configCases/externals/module-import/webpack.config.js +++ b/test/configCases/externals/module-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: ["web", "es2020"], diff --git a/test/configCases/externals/node-require/webpack.config.js b/test/configCases/externals/node-require/webpack.config.js index 5d99e0317..5559bacdc 100644 --- a/test/configCases/externals/node-require/webpack.config.js +++ b/test/configCases/externals/node-require/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/externals/non-amd-externals-amd/test.config.js b/test/configCases/externals/non-amd-externals-amd/test.config.js index 680a119a5..25b040f0d 100644 --- a/test/configCases/externals/non-amd-externals-amd/test.config.js +++ b/test/configCases/externals/non-amd-externals-amd/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { modules: { external0: "module 0" diff --git a/test/configCases/externals/non-amd-externals-amd/webpack.config.js b/test/configCases/externals/non-amd-externals-amd/webpack.config.js index 6014360c8..ed60900c2 100644 --- a/test/configCases/externals/non-amd-externals-amd/webpack.config.js +++ b/test/configCases/externals/non-amd-externals-amd/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/externals/non-umd-externals-umd/test.config.js b/test/configCases/externals/non-umd-externals-umd/test.config.js index 680a119a5..25b040f0d 100644 --- a/test/configCases/externals/non-umd-externals-umd/test.config.js +++ b/test/configCases/externals/non-umd-externals-umd/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { modules: { external0: "module 0" diff --git a/test/configCases/externals/non-umd-externals-umd/webpack.config.js b/test/configCases/externals/non-umd-externals-umd/webpack.config.js index bbb4c9b03..8a6266b37 100644 --- a/test/configCases/externals/non-umd-externals-umd/webpack.config.js +++ b/test/configCases/externals/non-umd-externals-umd/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/non-umd-externals-umd2/test.config.js b/test/configCases/externals/non-umd-externals-umd2/test.config.js index 680a119a5..25b040f0d 100644 --- a/test/configCases/externals/non-umd-externals-umd2/test.config.js +++ b/test/configCases/externals/non-umd-externals-umd2/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { modules: { external0: "module 0" diff --git a/test/configCases/externals/non-umd-externals-umd2/webpack.config.js b/test/configCases/externals/non-umd-externals-umd2/webpack.config.js index 423ba3992..736d61e6d 100644 --- a/test/configCases/externals/non-umd-externals-umd2/webpack.config.js +++ b/test/configCases/externals/non-umd-externals-umd2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/optional-externals-cjs/webpack.config.js b/test/configCases/externals/optional-externals-cjs/webpack.config.js index 59b592cac..a508493e9 100644 --- a/test/configCases/externals/optional-externals-cjs/webpack.config.js +++ b/test/configCases/externals/optional-externals-cjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/optional-externals-root/webpack.config.js b/test/configCases/externals/optional-externals-root/webpack.config.js index cb1a0c126..50962ea6d 100644 --- a/test/configCases/externals/optional-externals-root/webpack.config.js +++ b/test/configCases/externals/optional-externals-root/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { externalsType: "var", diff --git a/test/configCases/externals/optional-externals-umd/webpack.config.js b/test/configCases/externals/optional-externals-umd/webpack.config.js index ec8b33938..f7debc17d 100644 --- a/test/configCases/externals/optional-externals-umd/webpack.config.js +++ b/test/configCases/externals/optional-externals-umd/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/optional-externals-umd2-mixed/webpack.config.js b/test/configCases/externals/optional-externals-umd2-mixed/webpack.config.js index f27ef3ea2..6e640555b 100644 --- a/test/configCases/externals/optional-externals-umd2-mixed/webpack.config.js +++ b/test/configCases/externals/optional-externals-umd2-mixed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/optional-externals-umd2/webpack.config.js b/test/configCases/externals/optional-externals-umd2/webpack.config.js index d8f15c437..823a99923 100644 --- a/test/configCases/externals/optional-externals-umd2/webpack.config.js +++ b/test/configCases/externals/optional-externals-umd2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/externals/prefer-provided-over-built-in/webpack.config.js b/test/configCases/externals/prefer-provided-over-built-in/webpack.config.js index 29caaf138..40d38782c 100644 --- a/test/configCases/externals/prefer-provided-over-built-in/webpack.config.js +++ b/test/configCases/externals/prefer-provided-over-built-in/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "node", externals: { diff --git a/test/configCases/externals/resolve-callback/webpack.config.js b/test/configCases/externals/resolve-callback/webpack.config.js index 6590f0040..697ce2351 100644 --- a/test/configCases/externals/resolve-callback/webpack.config.js +++ b/test/configCases/externals/resolve-callback/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */ /** @typedef {import("../../../../").ExternalItemFunctionData} ExternalItemFunctionData */ diff --git a/test/configCases/externals/resolve/webpack.config.js b/test/configCases/externals/resolve/webpack.config.js index b712d132d..d2d8497e8 100644 --- a/test/configCases/externals/resolve/webpack.config.js +++ b/test/configCases/externals/resolve/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").ExternalItemFunctionData} ExternalItemFunctionData */ /** @typedef {import("../../../../").ExternalItemFunctionPromise} ExternalItemFunctionPromise */ /** @typedef {import("../../../../").ExternalItemFunctionDataGetResolve} ExternalItemFunctionDataGetResolve */ diff --git a/test/configCases/externals/this/webpack.config.js b/test/configCases/externals/this/webpack.config.js index 3e9153e51..bbd810cdf 100644 --- a/test/configCases/externals/this/webpack.config.js +++ b/test/configCases/externals/this/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/filename-template/filename-function/test.config.js b/test/configCases/filename-template/filename-function/test.config.js index 57cc4f4b2..cdc829f68 100644 --- a/test/configCases/filename-template/filename-function/test.config.js +++ b/test/configCases/filename-template/filename-function/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["11.js", "22.js", "aa.js", "bbb.js"]; diff --git a/test/configCases/filename-template/filename-function/webpack.config.js b/test/configCases/filename-template/filename-function/webpack.config.js index 9ce08f8c2..f221e314d 100644 --- a/test/configCases/filename-template/filename-function/webpack.config.js +++ b/test/configCases/filename-template/filename-function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk & { name: string }} Chunk */ /** @typedef {import("../../../../").PathData & { chunk: Chunk }} PathData */ diff --git a/test/configCases/filename-template/module-filename-template/webpack.config.js b/test/configCases/filename-template/module-filename-template/webpack.config.js index 80a78521c..0b1246421 100644 --- a/test/configCases/filename-template/module-filename-template/webpack.config.js +++ b/test/configCases/filename-template/module-filename-template/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/filename-template/script-src-filename/webpack.config.js b/test/configCases/filename-template/script-src-filename/webpack.config.js index 8152f6c76..c19d15e8f 100644 --- a/test/configCases/filename-template/script-src-filename/webpack.config.js +++ b/test/configCases/filename-template/script-src-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development" diff --git a/test/configCases/filename-template/split-chunks-filename/webpack.config.js b/test/configCases/filename-template/split-chunks-filename/webpack.config.js index b86d3f1b1..2558fd11f 100644 --- a/test/configCases/filename-template/split-chunks-filename/webpack.config.js +++ b/test/configCases/filename-template/split-chunks-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/finish-modules/simple/webpack.config.js b/test/configCases/finish-modules/simple/webpack.config.js index 0b14696c4..dda9d6f10 100644 --- a/test/configCases/finish-modules/simple/webpack.config.js +++ b/test/configCases/finish-modules/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** * @this {import("../../../../").Compiler} the compiler */ diff --git a/test/configCases/graph/conditional-ensure/webpack.config.js b/test/configCases/graph/conditional-ensure/webpack.config.js index c4cca6107..0ba7441fa 100644 --- a/test/configCases/graph/conditional-ensure/webpack.config.js +++ b/test/configCases/graph/conditional-ensure/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/graph/conditional-reexport/test.config.js b/test/configCases/graph/conditional-reexport/test.config.js index a7d5e3572..bb9448005 100644 --- a/test/configCases/graph/conditional-reexport/test.config.js +++ b/test/configCases/graph/conditional-reexport/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./lib.js", "./a.js", "./b.js"]; diff --git a/test/configCases/graph/conditional-reexport/webpack.config.js b/test/configCases/graph/conditional-reexport/webpack.config.js index b8cd3217e..ab46ede46 100644 --- a/test/configCases/graph/conditional-reexport/webpack.config.js +++ b/test/configCases/graph/conditional-reexport/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("webpack").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/graph/issue-11770/test.config.js b/test/configCases/graph/issue-11770/test.config.js index ee8eace4e..b23385953 100644 --- a/test/configCases/graph/issue-11770/test.config.js +++ b/test/configCases/graph/issue-11770/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/graph/issue-11770/webpack.config.js b/test/configCases/graph/issue-11770/webpack.config.js index 737dc9196..723157811 100644 --- a/test/configCases/graph/issue-11770/webpack.config.js +++ b/test/configCases/graph/issue-11770/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/graph/issue-11856.2/test.config.js b/test/configCases/graph/issue-11856.2/test.config.js index 989a7739d..f5d3f02d8 100644 --- a/test/configCases/graph/issue-11856.2/test.config.js +++ b/test/configCases/graph/issue-11856.2/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle: function (i, options) { return ["shared.js", "a.js", "b.js"]; diff --git a/test/configCases/graph/issue-11856.2/webpack.config.js b/test/configCases/graph/issue-11856.2/webpack.config.js index aa924728c..059dc0d2d 100644 --- a/test/configCases/graph/issue-11856.2/webpack.config.js +++ b/test/configCases/graph/issue-11856.2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/graph/issue-11856/test.config.js b/test/configCases/graph/issue-11856/test.config.js index 5162706af..346f1fb1b 100644 --- a/test/configCases/graph/issue-11856/test.config.js +++ b/test/configCases/graph/issue-11856/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["shared.js", "a.js", "b.js"]; diff --git a/test/configCases/graph/issue-11856/webpack.config.js b/test/configCases/graph/issue-11856/webpack.config.js index aa924728c..059dc0d2d 100644 --- a/test/configCases/graph/issue-11856/webpack.config.js +++ b/test/configCases/graph/issue-11856/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/graph/issue-11863/test.config.js b/test/configCases/graph/issue-11863/test.config.js index 5f56a3e6c..fb30d2a64 100644 --- a/test/configCases/graph/issue-11863/test.config.js +++ b/test/configCases/graph/issue-11863/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/graph/issue-11863/webpack.config.js b/test/configCases/graph/issue-11863/webpack.config.js index e0616bcaa..8d5e7475a 100644 --- a/test/configCases/graph/issue-11863/webpack.config.js +++ b/test/configCases/graph/issue-11863/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/hash-length/deterministic-module-ids/webpack.config.js b/test/configCases/hash-length/deterministic-module-ids/webpack.config.js index 089540e1b..4ae156146 100644 --- a/test/configCases/hash-length/deterministic-module-ids/webpack.config.js +++ b/test/configCases/hash-length/deterministic-module-ids/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/hash-length/hashed-module-ids/webpack.config.js b/test/configCases/hash-length/hashed-module-ids/webpack.config.js index 7898abf38..5f5eea96a 100644 --- a/test/configCases/hash-length/hashed-module-ids/webpack.config.js +++ b/test/configCases/hash-length/hashed-module-ids/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/hash-length/output-filename/test.config.js b/test/configCases/hash-length/output-filename/test.config.js index 63519c281..c395e88b2 100644 --- a/test/configCases/hash-length/output-filename/test.config.js +++ b/test/configCases/hash-length/output-filename/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const findFile = (files, regex) => diff --git a/test/configCases/hash-length/output-filename/webpack.config.js b/test/configCases/hash-length/output-filename/webpack.config.js index ae8679697..ecc76472e 100644 --- a/test/configCases/hash-length/output-filename/webpack.config.js +++ b/test/configCases/hash-length/output-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/inner-graph/altaskitButton/webpack.config.js b/test/configCases/inner-graph/altaskitButton/webpack.config.js index 0855084e7..7d491ffc8 100644 --- a/test/configCases/inner-graph/altaskitButton/webpack.config.js +++ b/test/configCases/inner-graph/altaskitButton/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/basic/webpack.config.js b/test/configCases/inner-graph/basic/webpack.config.js index 5afb92430..3246abfbd 100644 --- a/test/configCases/inner-graph/basic/webpack.config.js +++ b/test/configCases/inner-graph/basic/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/blockScopes/webpack.config.js b/test/configCases/inner-graph/blockScopes/webpack.config.js index 192562029..8e5dc3f2a 100644 --- a/test/configCases/inner-graph/blockScopes/webpack.config.js +++ b/test/configCases/inner-graph/blockScopes/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/class/test.filter.js b/test/configCases/inner-graph/class/test.filter.js index 138d99564..aa94ec7b4 100644 --- a/test/configCases/inner-graph/class/test.filter.js +++ b/test/configCases/inner-graph/class/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassFields = require("../../../helpers/supportsClassFields"); module.exports = () => supportsClassFields(); diff --git a/test/configCases/inner-graph/class/webpack.config.js b/test/configCases/inner-graph/class/webpack.config.js index 8b9ff9c97..954d50511 100644 --- a/test/configCases/inner-graph/class/webpack.config.js +++ b/test/configCases/inner-graph/class/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); const base = ["getNameA", "getNameB"]; diff --git a/test/configCases/inner-graph/const/webpack.config.js b/test/configCases/inner-graph/const/webpack.config.js index 2500b9980..711ba875a 100644 --- a/test/configCases/inner-graph/const/webpack.config.js +++ b/test/configCases/inner-graph/const/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultArrow/webpack.config.js b/test/configCases/inner-graph/defaultArrow/webpack.config.js index 1f88aa09d..8cf708c7b 100644 --- a/test/configCases/inner-graph/defaultArrow/webpack.config.js +++ b/test/configCases/inner-graph/defaultArrow/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultClass/webpack.config.js b/test/configCases/inner-graph/defaultClass/webpack.config.js index 25bbfa8dc..f7cc24d14 100644 --- a/test/configCases/inner-graph/defaultClass/webpack.config.js +++ b/test/configCases/inner-graph/defaultClass/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultExpression/webpack.config.js b/test/configCases/inner-graph/defaultExpression/webpack.config.js index a13106559..670a83715 100644 --- a/test/configCases/inner-graph/defaultExpression/webpack.config.js +++ b/test/configCases/inner-graph/defaultExpression/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultFunction/webpack.config.js b/test/configCases/inner-graph/defaultFunction/webpack.config.js index 8fbe41b2f..52b9cdd86 100644 --- a/test/configCases/inner-graph/defaultFunction/webpack.config.js +++ b/test/configCases/inner-graph/defaultFunction/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultFunctionExpression/webpack.config.js b/test/configCases/inner-graph/defaultFunctionExpression/webpack.config.js index 8fbe41b2f..52b9cdd86 100644 --- a/test/configCases/inner-graph/defaultFunctionExpression/webpack.config.js +++ b/test/configCases/inner-graph/defaultFunctionExpression/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultId/webpack.config.js b/test/configCases/inner-graph/defaultId/webpack.config.js index 8fbe41b2f..52b9cdd86 100644 --- a/test/configCases/inner-graph/defaultId/webpack.config.js +++ b/test/configCases/inner-graph/defaultId/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultNamedFunction/webpack.config.js b/test/configCases/inner-graph/defaultNamedFunction/webpack.config.js index 8fbe41b2f..52b9cdd86 100644 --- a/test/configCases/inner-graph/defaultNamedFunction/webpack.config.js +++ b/test/configCases/inner-graph/defaultNamedFunction/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/defaultNamedFunctionExpression/webpack.config.js b/test/configCases/inner-graph/defaultNamedFunctionExpression/webpack.config.js index 8fbe41b2f..52b9cdd86 100644 --- a/test/configCases/inner-graph/defaultNamedFunctionExpression/webpack.config.js +++ b/test/configCases/inner-graph/defaultNamedFunctionExpression/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/eval-bailout/webpack.config.js b/test/configCases/inner-graph/eval-bailout/webpack.config.js index 92a87dd7d..f140b4f06 100644 --- a/test/configCases/inner-graph/eval-bailout/webpack.config.js +++ b/test/configCases/inner-graph/eval-bailout/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/export/webpack.config.js b/test/configCases/inner-graph/export/webpack.config.js index 72e7846c2..9b3f37049 100644 --- a/test/configCases/inner-graph/export/webpack.config.js +++ b/test/configCases/inner-graph/export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/importAll/webpack.config.js b/test/configCases/inner-graph/importAll/webpack.config.js index 56826cc2b..b3275c0fe 100644 --- a/test/configCases/inner-graph/importAll/webpack.config.js +++ b/test/configCases/inner-graph/importAll/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/issue-11678/webpack.config.js b/test/configCases/inner-graph/issue-11678/webpack.config.js index 400bb0b68..1f6ca505c 100644 --- a/test/configCases/inner-graph/issue-11678/webpack.config.js +++ b/test/configCases/inner-graph/issue-11678/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/issue-12669-mini/webpack.config.js b/test/configCases/inner-graph/issue-12669-mini/webpack.config.js index 879caaf7f..0760c5635 100644 --- a/test/configCases/inner-graph/issue-12669-mini/webpack.config.js +++ b/test/configCases/inner-graph/issue-12669-mini/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/issue-12669/webpack.config.js b/test/configCases/inner-graph/issue-12669/webpack.config.js index 735f61d3f..d837bb975 100644 --- a/test/configCases/inner-graph/issue-12669/webpack.config.js +++ b/test/configCases/inner-graph/issue-12669/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/issue-17565/test.filter.js b/test/configCases/inner-graph/issue-17565/test.filter.js index 138d99564..aa94ec7b4 100644 --- a/test/configCases/inner-graph/issue-17565/test.filter.js +++ b/test/configCases/inner-graph/issue-17565/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsClassFields = require("../../../helpers/supportsClassFields"); module.exports = () => supportsClassFields(); diff --git a/test/configCases/inner-graph/issue-17565/webpack.config.js b/test/configCases/inner-graph/issue-17565/webpack.config.js index 8f29d9f87..3c8fed58b 100644 --- a/test/configCases/inner-graph/issue-17565/webpack.config.js +++ b/test/configCases/inner-graph/issue-17565/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/localReference/webpack.config.js b/test/configCases/inner-graph/localReference/webpack.config.js index 030ae45e0..a29fd1edf 100644 --- a/test/configCases/inner-graph/localReference/webpack.config.js +++ b/test/configCases/inner-graph/localReference/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/nested/webpack.config.js b/test/configCases/inner-graph/nested/webpack.config.js index 86ac4f223..f7b22af99 100644 --- a/test/configCases/inner-graph/nested/webpack.config.js +++ b/test/configCases/inner-graph/nested/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/pr-18342/test.config.js b/test/configCases/inner-graph/pr-18342/test.config.js index ce98c463c..ffa7d375e 100644 --- a/test/configCases/inner-graph/pr-18342/test.config.js +++ b/test/configCases/inner-graph/pr-18342/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const findOutputFiles = require("../../../helpers/findOutputFiles"); module.exports = { diff --git a/test/configCases/inner-graph/pr-18342/webpack.config.js b/test/configCases/inner-graph/pr-18342/webpack.config.js index 2d487f51d..13e42680b 100644 --- a/test/configCases/inner-graph/pr-18342/webpack.config.js +++ b/test/configCases/inner-graph/pr-18342/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: ["node"], entry: { diff --git a/test/configCases/inner-graph/pure/webpack.config.js b/test/configCases/inner-graph/pure/webpack.config.js index ee9fe7e33..cde8d1c79 100644 --- a/test/configCases/inner-graph/pure/webpack.config.js +++ b/test/configCases/inner-graph/pure/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/ramdaIdentical/webpack.config.js b/test/configCases/inner-graph/ramdaIdentical/webpack.config.js index 902433dda..19d73ddb1 100644 --- a/test/configCases/inner-graph/ramdaIdentical/webpack.config.js +++ b/test/configCases/inner-graph/ramdaIdentical/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/specifier/webpack.config.js b/test/configCases/inner-graph/specifier/webpack.config.js index aab43f7f1..1a1c78b40 100644 --- a/test/configCases/inner-graph/specifier/webpack.config.js +++ b/test/configCases/inner-graph/specifier/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/varNotWritten/webpack.config.js b/test/configCases/inner-graph/varNotWritten/webpack.config.js index 38f287630..989472826 100644 --- a/test/configCases/inner-graph/varNotWritten/webpack.config.js +++ b/test/configCases/inner-graph/varNotWritten/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/inner-graph/varWritten/webpack.config.js b/test/configCases/inner-graph/varWritten/webpack.config.js index 38f287630..989472826 100644 --- a/test/configCases/inner-graph/varWritten/webpack.config.js +++ b/test/configCases/inner-graph/varWritten/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const createTestCases = require("../_helpers/createTestCases"); module.exports = createTestCases({ diff --git a/test/configCases/issues/issue-12993/test.config.js b/test/configCases/issues/issue-12993/test.config.js index 7e3084c7b..41ca01361 100644 --- a/test/configCases/issues/issue-12993/test.config.js +++ b/test/configCases/issues/issue-12993/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { afterExecute() { delete global.lib; diff --git a/test/configCases/issues/issue-12993/webpack.config.js b/test/configCases/issues/issue-12993/webpack.config.js index f462f7e49..8819fe800 100644 --- a/test/configCases/issues/issue-12993/webpack.config.js +++ b/test/configCases/issues/issue-12993/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { mode: "development", diff --git a/test/configCases/issues/issue-14974/test.filter.js b/test/configCases/issues/issue-14974/test.filter.js index e4bb7db30..b88fedb74 100644 --- a/test/configCases/issues/issue-14974/test.filter.js +++ b/test/configCases/issues/issue-14974/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => process.version.slice(0, 4) !== "v10."; diff --git a/test/configCases/issues/issue-14974/webpack.config.js b/test/configCases/issues/issue-14974/webpack.config.js index 24a115726..061495631 100644 --- a/test/configCases/issues/issue-14974/webpack.config.js +++ b/test/configCases/issues/issue-14974/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { HotModuleReplacementPlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/issues/issue-17459/webpack.config.js b/test/configCases/issues/issue-17459/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/configCases/issues/issue-17459/webpack.config.js +++ b/test/configCases/issues/issue-17459/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/configCases/issues/issue-3596/webpack.config.js b/test/configCases/issues/issue-3596/webpack.config.js index cd23171cf..cedab8509 100644 --- a/test/configCases/issues/issue-3596/webpack.config.js +++ b/test/configCases/issues/issue-3596/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/issues/issue-7563/test.config.js b/test/configCases/issues/issue-7563/test.config.js index 8199264de..b7d31a34e 100644 --- a/test/configCases/issues/issue-7563/test.config.js +++ b/test/configCases/issues/issue-7563/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); module.exports = { diff --git a/test/configCases/json/bailout-flag-dep-export-perf/webpack.config.js b/test/configCases/json/bailout-flag-dep-export-perf/webpack.config.js index 22f491d99..ea739dd44 100644 --- a/test/configCases/json/bailout-flag-dep-export-perf/webpack.config.js +++ b/test/configCases/json/bailout-flag-dep-export-perf/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/json/flag-dep-export-perf/webpack.config.js b/test/configCases/json/flag-dep-export-perf/webpack.config.js index 8152f6c76..c19d15e8f 100644 --- a/test/configCases/json/flag-dep-export-perf/webpack.config.js +++ b/test/configCases/json/flag-dep-export-perf/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development" diff --git a/test/configCases/json/generator-json-parse-false/webpack.config.js b/test/configCases/json/generator-json-parse-false/webpack.config.js index f687f8406..67388be43 100644 --- a/test/configCases/json/generator-json-parse-false/webpack.config.js +++ b/test/configCases/json/generator-json-parse-false/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, diff --git a/test/configCases/json/generator-json-parse-true/webpack.config.js b/test/configCases/json/generator-json-parse-true/webpack.config.js index 93230914b..20bea40d2 100644 --- a/test/configCases/json/generator-json-parse-true/webpack.config.js +++ b/test/configCases/json/generator-json-parse-true/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, diff --git a/test/configCases/json/only-null/webpack.config.js b/test/configCases/json/only-null/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/configCases/json/only-null/webpack.config.js +++ b/test/configCases/json/only-null/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/configCases/json/only-string/webpack.config.js b/test/configCases/json/only-string/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/configCases/json/only-string/webpack.config.js +++ b/test/configCases/json/only-string/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/configCases/json/proto/webpack.config.js b/test/configCases/json/proto/webpack.config.js index dd53b2878..9b5e111fd 100644 --- a/test/configCases/json/proto/webpack.config.js +++ b/test/configCases/json/proto/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: false, diff --git a/test/configCases/json/top-level-json-parser/webpack.config.js b/test/configCases/json/top-level-json-parser/webpack.config.js index 1b6409812..e550c66a2 100644 --- a/test/configCases/json/top-level-json-parser/webpack.config.js +++ b/test/configCases/json/top-level-json-parser/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const toml = require("toml"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/json/tree-shaking-default/warnings.js b/test/configCases/json/tree-shaking-default/warnings.js index 6857cae53..783501293 100644 --- a/test/configCases/json/tree-shaking-default/warnings.js +++ b/test/configCases/json/tree-shaking-default/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Should not import the named export/]]; diff --git a/test/configCases/json/tree-shaking-default/webpack.config.js b/test/configCases/json/tree-shaking-default/webpack.config.js index 5e6a2dea4..6dd5d4e3e 100644 --- a/test/configCases/json/tree-shaking-default/webpack.config.js +++ b/test/configCases/json/tree-shaking-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/layer/context-and-css/test.config.js b/test/configCases/layer/context-and-css/test.config.js index c4561c568..f9d83d5fd 100644 --- a/test/configCases/layer/context-and-css/test.config.js +++ b/test/configCases/layer/context-and-css/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const light = scope.window.document.createElement("link"); diff --git a/test/configCases/layer/context-and-css/webpack.config.js b/test/configCases/layer/context-and-css/webpack.config.js index 838b847cc..585657883 100644 --- a/test/configCases/layer/context-and-css/webpack.config.js +++ b/test/configCases/layer/context-and-css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/layer/context/test.config.js b/test/configCases/layer/context/test.config.js index c6cd71fd2..48a298849 100644 --- a/test/configCases/layer/context/test.config.js +++ b/test/configCases/layer/context/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./light.js", "./dark.js"]; diff --git a/test/configCases/layer/context/webpack.config.js b/test/configCases/layer/context/webpack.config.js index 41ed5eb13..ef301edd9 100644 --- a/test/configCases/layer/context/webpack.config.js +++ b/test/configCases/layer/context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/layer/define-multiple-entries/test.config.js b/test/configCases/layer/define-multiple-entries/test.config.js index fc2fea5bf..36330ba44 100644 --- a/test/configCases/layer/define-multiple-entries/test.config.js +++ b/test/configCases/layer/define-multiple-entries/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./common.js", "./free.js", "./paid.js"]; diff --git a/test/configCases/layer/define-multiple-entries/webpack.config.js b/test/configCases/layer/define-multiple-entries/webpack.config.js index 6a95dd7de..3f811347d 100644 --- a/test/configCases/layer/define-multiple-entries/webpack.config.js +++ b/test/configCases/layer/define-multiple-entries/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/layer/define-single-entry/test.config.js b/test/configCases/layer/define-single-entry/test.config.js index 458bcba5f..57eceaa94 100644 --- a/test/configCases/layer/define-single-entry/test.config.js +++ b/test/configCases/layer/define-single-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./free.js", "./paid.js"]; diff --git a/test/configCases/layer/define-single-entry/webpack.config.js b/test/configCases/layer/define-single-entry/webpack.config.js index cbeb7c222..72d532eb4 100644 --- a/test/configCases/layer/define-single-entry/webpack.config.js +++ b/test/configCases/layer/define-single-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/layer/rules/webpack.config.js b/test/configCases/layer/rules/webpack.config.js index a1dc2986b..41dd12643 100644 --- a/test/configCases/layer/rules/webpack.config.js +++ b/test/configCases/layer/rules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/library/0-create-library/test.config.js b/test/configCases/library/0-create-library/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/library/0-create-library/test.config.js +++ b/test/configCases/library/0-create-library/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/library/0-create-library/webpack.config.js b/test/configCases/library/0-create-library/webpack.config.js index cef2e1a93..13d9f9db0 100644 --- a/test/configCases/library/0-create-library/webpack.config.js +++ b/test/configCases/library/0-create-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); const supportsAsync = require("../../../helpers/supportsAsync"); diff --git a/test/configCases/library/1-use-library/test.config.js b/test/configCases/library/1-use-library/test.config.js index ac11abf42..dcbe73872 100644 --- a/test/configCases/library/1-use-library/test.config.js +++ b/test/configCases/library/1-use-library/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { scope.define = factory => { diff --git a/test/configCases/library/1-use-library/webpack.config.js b/test/configCases/library/1-use-library/webpack.config.js index 6e6b2665e..e28b8c106 100644 --- a/test/configCases/library/1-use-library/webpack.config.js +++ b/test/configCases/library/1-use-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @typedef {import("../../../../").Compilation} Compilation */ diff --git a/test/configCases/library/a/webpack.config.js b/test/configCases/library/a/webpack.config.js index d6284c7ac..0fd9032f9 100644 --- a/test/configCases/library/a/webpack.config.js +++ b/test/configCases/library/a/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/array-global/webpack.config.js b/test/configCases/library/array-global/webpack.config.js index 2e6d8a1e2..3f21390e8 100644 --- a/test/configCases/library/array-global/webpack.config.js +++ b/test/configCases/library/array-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/array-window/webpack.config.js b/test/configCases/library/array-window/webpack.config.js index 0a58ae241..477deeeb3 100644 --- a/test/configCases/library/array-window/webpack.config.js +++ b/test/configCases/library/array-window/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/library/assign-properties/webpack.config.js b/test/configCases/library/assign-properties/webpack.config.js index 4e398b454..ab95a11d2 100644 --- a/test/configCases/library/assign-properties/webpack.config.js +++ b/test/configCases/library/assign-properties/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/b/webpack.config.js b/test/configCases/library/b/webpack.config.js index e2f1eaa2d..d48766fa5 100644 --- a/test/configCases/library/b/webpack.config.js +++ b/test/configCases/library/b/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/cjs-static/webpack.config.js b/test/configCases/library/cjs-static/webpack.config.js index 68425c7fa..4bcfff4a2 100644 --- a/test/configCases/library/cjs-static/webpack.config.js +++ b/test/configCases/library/cjs-static/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/library/disable-provided-export/test.filter.js b/test/configCases/library/disable-provided-export/test.filter.js index 0d61a0f08..3185ff623 100644 --- a/test/configCases/library/disable-provided-export/test.filter.js +++ b/test/configCases/library/disable-provided-export/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = () => supportsRequireInModule(); diff --git a/test/configCases/library/disable-provided-export/webpack.config.js b/test/configCases/library/disable-provided-export/webpack.config.js index 235c0a2de..d78d32fa2 100644 --- a/test/configCases/library/disable-provided-export/webpack.config.js +++ b/test/configCases/library/disable-provided-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/library/invalid-name/errors.js b/test/configCases/library/invalid-name/errors.js index 465d98f64..4251390f5 100644 --- a/test/configCases/library/invalid-name/errors.js +++ b/test/configCases/library/invalid-name/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Library name base \(123-hello world\) must be a valid identifier/, diff --git a/test/configCases/library/invalid-name/webpack.config.js b/test/configCases/library/invalid-name/webpack.config.js index 78ca5ab1c..679c16f56 100644 --- a/test/configCases/library/invalid-name/webpack.config.js +++ b/test/configCases/library/invalid-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/issue-18932/webpack.config.js b/test/configCases/library/issue-18932/webpack.config.js index 74ee19646..ec4848349 100644 --- a/test/configCases/library/issue-18932/webpack.config.js +++ b/test/configCases/library/issue-18932/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/library/issue-18951/test.config.js b/test/configCases/library/issue-18951/test.config.js index bc434b87b..9100dc599 100644 --- a/test/configCases/library/issue-18951/test.config.js +++ b/test/configCases/library/issue-18951/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.mjs"]; diff --git a/test/configCases/library/issue-18951/webpack.config.js b/test/configCases/library/issue-18951/webpack.config.js index 1739a67b6..de0480293 100644 --- a/test/configCases/library/issue-18951/webpack.config.js +++ b/test/configCases/library/issue-18951/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { outputModule: true }, diff --git a/test/configCases/library/issue-19664/webpack.config.js b/test/configCases/library/issue-19664/webpack.config.js index 9150aa175..93c8cc12c 100644 --- a/test/configCases/library/issue-19664/webpack.config.js +++ b/test/configCases/library/issue-19664/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/module-and-child-compilation/webpack.config.js b/test/configCases/library/module-and-child-compilation/webpack.config.js index 663dc2b70..b431c353a 100644 --- a/test/configCases/library/module-and-child-compilation/webpack.config.js +++ b/test/configCases/library/module-and-child-compilation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/library/module-reexport-external/test.config.js b/test/configCases/library/module-reexport-external/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/library/module-reexport-external/test.config.js +++ b/test/configCases/library/module-reexport-external/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/library/module-reexport-external/webpack.config.js b/test/configCases/library/module-reexport-external/webpack.config.js index 53abd054e..0c8aabde2 100644 --- a/test/configCases/library/module-reexport-external/webpack.config.js +++ b/test/configCases/library/module-reexport-external/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compilation} Compilation */ /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/library/module-reexport-type/test.filter.js b/test/configCases/library/module-reexport-type/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/library/module-reexport-type/test.filter.js +++ b/test/configCases/library/module-reexport-type/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/library/module-reexport-type/webpack.config.js b/test/configCases/library/module-reexport-type/webpack.config.js index ed134a4c2..8954135f8 100644 --- a/test/configCases/library/module-reexport-type/webpack.config.js +++ b/test/configCases/library/module-reexport-type/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compilation} Compilation */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/library/module-terminal-binding/webpack.config.js b/test/configCases/library/module-terminal-binding/webpack.config.js index 68e94532f..464be0004 100644 --- a/test/configCases/library/module-terminal-binding/webpack.config.js +++ b/test/configCases/library/module-terminal-binding/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { mode: "production", target: "web", diff --git a/test/configCases/library/type-assign-properties/test.config.js b/test/configCases/library/type-assign-properties/test.config.js index 0c592459f..3e5651912 100644 --- a/test/configCases/library/type-assign-properties/test.config.js +++ b/test/configCases/library/type-assign-properties/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { afterExecute() { delete global.MyLibraryProperties; diff --git a/test/configCases/library/type-assign-properties/webpack.config.js b/test/configCases/library/type-assign-properties/webpack.config.js index efde945c9..70df54415 100644 --- a/test/configCases/library/type-assign-properties/webpack.config.js +++ b/test/configCases/library/type-assign-properties/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/type-assign-runtime-chunk/test.config.js b/test/configCases/library/type-assign-runtime-chunk/test.config.js index 1a96fecb1..a4d8d86ae 100644 --- a/test/configCases/library/type-assign-runtime-chunk/test.config.js +++ b/test/configCases/library/type-assign-runtime-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime~main.js", "./main.js"]; diff --git a/test/configCases/library/type-assign-runtime-chunk/webpack.config.js b/test/configCases/library/type-assign-runtime-chunk/webpack.config.js index 1dac23424..96160a748 100644 --- a/test/configCases/library/type-assign-runtime-chunk/webpack.config.js +++ b/test/configCases/library/type-assign-runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/type-assign/test.config.js b/test/configCases/library/type-assign/test.config.js index 79a079487..501be908d 100644 --- a/test/configCases/library/type-assign/test.config.js +++ b/test/configCases/library/type-assign/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { afterExecute() { delete global.MyLibrary; diff --git a/test/configCases/library/type-assign/webpack.config.js b/test/configCases/library/type-assign/webpack.config.js index 56889af06..35dc0209d 100644 --- a/test/configCases/library/type-assign/webpack.config.js +++ b/test/configCases/library/type-assign/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/umd-array/webpack.config.js b/test/configCases/library/umd-array/webpack.config.js index 73b14934a..0b7a695ab 100644 --- a/test/configCases/library/umd-array/webpack.config.js +++ b/test/configCases/library/umd-array/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/library/umd/webpack.config.js b/test/configCases/library/umd/webpack.config.js index 815908500..e0c2d832d 100644 --- a/test/configCases/library/umd/webpack.config.js +++ b/test/configCases/library/umd/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/loader-import-module/css/webpack.config.js b/test/configCases/loader-import-module/css/webpack.config.js index 3704a547e..cdee8c284 100644 --- a/test/configCases/loader-import-module/css/webpack.config.js +++ b/test/configCases/loader-import-module/css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js b/test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js index 226726b93..22efe7529 100644 --- a/test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js +++ b/test/configCases/loaders-and-plugins-falsy/basic/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DefinePlugin = require("../../../../").DefinePlugin; const nullValue = null; diff --git a/test/configCases/loaders/#-issue-14755-#/webpack.config.js b/test/configCases/loaders/#-issue-14755-#/webpack.config.js index a88285526..64a40d1d9 100644 --- a/test/configCases/loaders/#-issue-14755-#/webpack.config.js +++ b/test/configCases/loaders/#-issue-14755-#/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/async-loader/webpack.config.js b/test/configCases/loaders/async-loader/webpack.config.js index 9e8192959..1894d8551 100644 --- a/test/configCases/loaders/async-loader/webpack.config.js +++ b/test/configCases/loaders/async-loader/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/loaders/generate-ident/webpack.config.js b/test/configCases/loaders/generate-ident/webpack.config.js index fd5982717..56699c191 100644 --- a/test/configCases/loaders/generate-ident/webpack.config.js +++ b/test/configCases/loaders/generate-ident/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/hash-in-context/webpack.config.js b/test/configCases/loaders/hash-in-context/webpack.config.js index 140fdce3a..afd84802e 100644 --- a/test/configCases/loaders/hash-in-context/webpack.config.js +++ b/test/configCases/loaders/hash-in-context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = { output: { diff --git a/test/configCases/loaders/hot-in-context/webpack.config.js b/test/configCases/loaders/hot-in-context/webpack.config.js index 322b76c0f..8cafeb0aa 100644 --- a/test/configCases/loaders/hot-in-context/webpack.config.js +++ b/test/configCases/loaders/hot-in-context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/loaders/import-attributes-and-assertion/webpack.config.js b/test/configCases/loaders/import-attributes-and-assertion/webpack.config.js index 05fd19f2f..b13566831 100644 --- a/test/configCases/loaders/import-attributes-and-assertion/webpack.config.js +++ b/test/configCases/loaders/import-attributes-and-assertion/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/import-attributes-and-reexport/webpack.config.js b/test/configCases/loaders/import-attributes-and-reexport/webpack.config.js index c7e07d2b5..c35c4f481 100644 --- a/test/configCases/loaders/import-attributes-and-reexport/webpack.config.js +++ b/test/configCases/loaders/import-attributes-and-reexport/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/issue-3320/deprecations.js b/test/configCases/loaders/issue-3320/deprecations.js index f05114b93..417adc900 100644 --- a/test/configCases/loaders/issue-3320/deprecations.js +++ b/test/configCases/loaders/issue-3320/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, diff --git a/test/configCases/loaders/issue-3320/webpack.config.js b/test/configCases/loaders/issue-3320/webpack.config.js index f943c051e..c6b2c88bf 100644 --- a/test/configCases/loaders/issue-3320/webpack.config.js +++ b/test/configCases/loaders/issue-3320/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { resolveLoader: { diff --git a/test/configCases/loaders/issue-9053/webpack.config.js b/test/configCases/loaders/issue-9053/webpack.config.js index fc77b7765..288f819bd 100644 --- a/test/configCases/loaders/issue-9053/webpack.config.js +++ b/test/configCases/loaders/issue-9053/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/mode-default/webpack.config.js b/test/configCases/loaders/mode-default/webpack.config.js index b991738c0..490c18b76 100644 --- a/test/configCases/loaders/mode-default/webpack.config.js +++ b/test/configCases/loaders/mode-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/mode-development/webpack.config.js b/test/configCases/loaders/mode-development/webpack.config.js index 7184f5d44..190d66904 100644 --- a/test/configCases/loaders/mode-development/webpack.config.js +++ b/test/configCases/loaders/mode-development/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/loaders/mode-none/webpack.config.js b/test/configCases/loaders/mode-none/webpack.config.js index a0b076d51..09a281fe5 100644 --- a/test/configCases/loaders/mode-none/webpack.config.js +++ b/test/configCases/loaders/mode-none/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/loaders/mode-production/webpack.config.js b/test/configCases/loaders/mode-production/webpack.config.js index 09b14d843..4d7975ce1 100644 --- a/test/configCases/loaders/mode-production/webpack.config.js +++ b/test/configCases/loaders/mode-production/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/loaders/options/deprecations.js b/test/configCases/loaders/options/deprecations.js index 6c3c0c2f1..f7e3114b5 100644 --- a/test/configCases/loaders/options/deprecations.js +++ b/test/configCases/loaders/options/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/ }, { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/ }, diff --git a/test/configCases/loaders/options/errors.js b/test/configCases/loaders/options/errors.js index 3ea737410..a602f644c 100644 --- a/test/configCases/loaders/options/errors.js +++ b/test/configCases/loaders/options/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /\.\/loader-1\.js/, diff --git a/test/configCases/loaders/options/infrastructure-log.js b/test/configCases/loaders/options/infrastructure-log.js index 8ef4be52e..93b1b75de 100644 --- a/test/configCases/loaders/options/infrastructure-log.js +++ b/test/configCases/loaders/options/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ // We use (1|2), because both contain the problems, but due asynchronous nature the first module can be `error1` or `error2` /^Pack got invalid because of write to: Compilation\/modules.+loaders[/\\]options[/\\]error(1|2)\.js$/ diff --git a/test/configCases/loaders/options/webpack.config.js b/test/configCases/loaders/options/webpack.config.js index 6b5d57233..f61b89616 100644 --- a/test/configCases/loaders/options/webpack.config.js +++ b/test/configCases/loaders/options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/loaders/pr-14384/webpack.config.js b/test/configCases/loaders/pr-14384/webpack.config.js index a8faf09f3..66130f9b7 100644 --- a/test/configCases/loaders/pr-14384/webpack.config.js +++ b/test/configCases/loaders/pr-14384/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const PluginWithLoader = require("./PluginWithLoader"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/loaders/pre-post-loader/webpack.config.js b/test/configCases/loaders/pre-post-loader/webpack.config.js index c460255ce..2ad00d8a5 100644 --- a/test/configCases/loaders/pre-post-loader/webpack.config.js +++ b/test/configCases/loaders/pre-post-loader/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/loaders/remaining-request/webpack.config.js b/test/configCases/loaders/remaining-request/webpack.config.js index a4a7d3e84..65e416b36 100644 --- a/test/configCases/loaders/remaining-request/webpack.config.js +++ b/test/configCases/loaders/remaining-request/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/managedPaths/futureDefaults/webpack.config.js b/test/configCases/managedPaths/futureDefaults/webpack.config.js index bf94f1dd4..b37a74972 100644 --- a/test/configCases/managedPaths/futureDefaults/webpack.config.js +++ b/test/configCases/managedPaths/futureDefaults/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { diff --git a/test/configCases/mangle/exports-info-can-mangle/webpack.config.js b/test/configCases/mangle/exports-info-can-mangle/webpack.config.js index 3d405a2e2..a31a5193b 100644 --- a/test/configCases/mangle/exports-info-can-mangle/webpack.config.js +++ b/test/configCases/mangle/exports-info-can-mangle/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/mangle/mangle-with-destructuring-assignment/webpack.config.js b/test/configCases/mangle/mangle-with-destructuring-assignment/webpack.config.js index 67e35d061..083f7913a 100644 --- a/test/configCases/mangle/mangle-with-destructuring-assignment/webpack.config.js +++ b/test/configCases/mangle/mangle-with-destructuring-assignment/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("webpack-sources").Source} Source */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/mangle/mangle-with-object-prop/test.config.js b/test/configCases/mangle/mangle-with-object-prop/test.config.js index e47827d56..a8f47aaf1 100644 --- a/test/configCases/mangle/mangle-with-object-prop/test.config.js +++ b/test/configCases/mangle/mangle-with-object-prop/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./deterministic.js", "./size.js"]; diff --git a/test/configCases/mangle/mangle-with-object-prop/webpack.config.js b/test/configCases/mangle/mangle-with-object-prop/webpack.config.js index 80d543f78..f74290543 100644 --- a/test/configCases/mangle/mangle-with-object-prop/webpack.config.js +++ b/test/configCases/mangle/mangle-with-object-prop/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/mangle/mangle-with-re-export-as-default/webpack.config.js b/test/configCases/mangle/mangle-with-re-export-as-default/webpack.config.js index 1826c4c65..8f8b84b57 100644 --- a/test/configCases/mangle/mangle-with-re-export-as-default/webpack.config.js +++ b/test/configCases/mangle/mangle-with-re-export-as-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/module-name/different-issuers-for-same-module/webpack.config.js b/test/configCases/module-name/different-issuers-for-same-module/webpack.config.js index e86db6268..c3d1a4c12 100644 --- a/test/configCases/module-name/different-issuers-for-same-module/webpack.config.js +++ b/test/configCases/module-name/different-issuers-for-same-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/module/check-defaults/errors.js b/test/configCases/module/check-defaults/errors.js index 1d4e2ba01..db651f871 100644 --- a/test/configCases/module/check-defaults/errors.js +++ b/test/configCases/module/check-defaults/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/For the selected environment is no default ESM chunk format available/] ]; diff --git a/test/configCases/module/check-defaults/test.filter.js b/test/configCases/module/check-defaults/test.filter.js index d5852188b..a0e90a191 100644 --- a/test/configCases/module/check-defaults/test.filter.js +++ b/test/configCases/module/check-defaults/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => !config.cache; diff --git a/test/configCases/module/check-defaults/webpack.config.js b/test/configCases/module/check-defaults/webpack.config.js index d45f42ed8..b40afb545 100644 --- a/test/configCases/module/check-defaults/webpack.config.js +++ b/test/configCases/module/check-defaults/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/module/chunk-format-fallback/test.config.js b/test/configCases/module/chunk-format-fallback/test.config.js index 051597fef..75989e216 100644 --- a/test/configCases/module/chunk-format-fallback/test.config.js +++ b/test/configCases/module/chunk-format-fallback/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.mjs", "./main.mjs"]; diff --git a/test/configCases/module/chunk-format-fallback/webpack.config.js b/test/configCases/module/chunk-format-fallback/webpack.config.js index 5d5fc00fa..fb84665e2 100644 --- a/test/configCases/module/chunk-format-fallback/webpack.config.js +++ b/test/configCases/module/chunk-format-fallback/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/module/circular-externals/test.config.js b/test/configCases/module/circular-externals/test.config.js index 1192a7afc..04d5e6a4b 100644 --- a/test/configCases/module/circular-externals/test.config.js +++ b/test/configCases/module/circular-externals/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./main.mjs"; diff --git a/test/configCases/module/circular-externals/webpack.config.js b/test/configCases/module/circular-externals/webpack.config.js index bbc92fd43..afe834ef6 100644 --- a/test/configCases/module/circular-externals/webpack.config.js +++ b/test/configCases/module/circular-externals/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/module/duplicate-export/test.config.js b/test/configCases/module/duplicate-export/test.config.js index 9d2aabb1e..07b840416 100644 --- a/test/configCases/module/duplicate-export/test.config.js +++ b/test/configCases/module/duplicate-export/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./main.mjs"]; diff --git a/test/configCases/module/duplicate-export/webpack.config.js b/test/configCases/module/duplicate-export/webpack.config.js index 576a99ee2..ab636c6d2 100644 --- a/test/configCases/module/duplicate-export/webpack.config.js +++ b/test/configCases/module/duplicate-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/module/externals/test.config.js b/test/configCases/module/externals/test.config.js index 1192a7afc..04d5e6a4b 100644 --- a/test/configCases/module/externals/test.config.js +++ b/test/configCases/module/externals/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./main.mjs"; diff --git a/test/configCases/module/externals/webpack.config.js b/test/configCases/module/externals/webpack.config.js index 78ad7d63d..3ae7981db 100644 --- a/test/configCases/module/externals/webpack.config.js +++ b/test/configCases/module/externals/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/module/iife-entry-module-with-others/test.config.js b/test/configCases/module/iife-entry-module-with-others/test.config.js index 53042d86f..07e6d9b8d 100644 --- a/test/configCases/module/iife-entry-module-with-others/test.config.js +++ b/test/configCases/module/iife-entry-module-with-others/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/module/iife-entry-module-with-others/webpack.config.js b/test/configCases/module/iife-entry-module-with-others/webpack.config.js index 5d6eccc0d..e0582f00f 100644 --- a/test/configCases/module/iife-entry-module-with-others/webpack.config.js +++ b/test/configCases/module/iife-entry-module-with-others/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ const base = { output: { diff --git a/test/configCases/module/iife-innter-strict/test.config.js b/test/configCases/module/iife-innter-strict/test.config.js index f48f8b79d..6f661b3d1 100644 --- a/test/configCases/module/iife-innter-strict/test.config.js +++ b/test/configCases/module/iife-innter-strict/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["test.js"]; diff --git a/test/configCases/module/iife-innter-strict/webpack.config.js b/test/configCases/module/iife-innter-strict/webpack.config.js index a5d002ed8..61255739b 100644 --- a/test/configCases/module/iife-innter-strict/webpack.config.js +++ b/test/configCases/module/iife-innter-strict/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/module/iife-multiple-entry-modules/test.config.js b/test/configCases/module/iife-multiple-entry-modules/test.config.js index bb3de309b..af8b74287 100644 --- a/test/configCases/module/iife-multiple-entry-modules/test.config.js +++ b/test/configCases/module/iife-multiple-entry-modules/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["bundle0.mjs", "test.js"]; diff --git a/test/configCases/module/iife-multiple-entry-modules/webpack.config.js b/test/configCases/module/iife-multiple-entry-modules/webpack.config.js index ee452f232..c469337b0 100644 --- a/test/configCases/module/iife-multiple-entry-modules/webpack.config.js +++ b/test/configCases/module/iife-multiple-entry-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/module/issue-16040/test.config.js b/test/configCases/module/issue-16040/test.config.js index 194e05220..120246cda 100644 --- a/test/configCases/module/issue-16040/test.config.js +++ b/test/configCases/module/issue-16040/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.mjs", "vendor.mjs", "runtime.mjs"]; diff --git a/test/configCases/module/issue-16040/test.filter.js b/test/configCases/module/issue-16040/test.filter.js index 0d61a0f08..3185ff623 100644 --- a/test/configCases/module/issue-16040/test.filter.js +++ b/test/configCases/module/issue-16040/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = () => supportsRequireInModule(); diff --git a/test/configCases/module/issue-16040/webpack.config.js b/test/configCases/module/issue-16040/webpack.config.js index 275e36a52..08e20f525 100644 --- a/test/configCases/module/issue-16040/webpack.config.js +++ b/test/configCases/module/issue-16040/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); module.exports = { diff --git a/test/configCases/module/issue-17014-split-chunks/test.config.js b/test/configCases/module/issue-17014-split-chunks/test.config.js index 573e3dabc..e9186c677 100644 --- a/test/configCases/module/issue-17014-split-chunks/test.config.js +++ b/test/configCases/module/issue-17014-split-chunks/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./common.mjs", "./bundle0.mjs"]; diff --git a/test/configCases/module/issue-17014-split-chunks/webpack.config.js b/test/configCases/module/issue-17014-split-chunks/webpack.config.js index 4a5d18e54..49162fd39 100644 --- a/test/configCases/module/issue-17014-split-chunks/webpack.config.js +++ b/test/configCases/module/issue-17014-split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/module/issue-17014-webworker/test.config.js b/test/configCases/module/issue-17014-webworker/test.config.js index 7c59f2b5e..9b6cacaa4 100644 --- a/test/configCases/module/issue-17014-webworker/test.config.js +++ b/test/configCases/module/issue-17014-webworker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { // findBundle() { // return ["./common.mjs", "./bundle0.mjs"]; diff --git a/test/configCases/module/issue-17014-webworker/test.filter.js b/test/configCases/module/issue-17014-webworker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/module/issue-17014-webworker/test.filter.js +++ b/test/configCases/module/issue-17014-webworker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/module/issue-17014-webworker/webpack.config.js b/test/configCases/module/issue-17014-webworker/webpack.config.js index b56e3a37c..c277942a2 100644 --- a/test/configCases/module/issue-17014-webworker/webpack.config.js +++ b/test/configCases/module/issue-17014-webworker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/module/node-globals/test.config.js b/test/configCases/module/node-globals/test.config.js index 1192a7afc..04d5e6a4b 100644 --- a/test/configCases/module/node-globals/test.config.js +++ b/test/configCases/module/node-globals/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./main.mjs"; diff --git a/test/configCases/module/node-globals/webpack.config.js b/test/configCases/module/node-globals/webpack.config.js index aac123421..69d1c1337 100644 --- a/test/configCases/module/node-globals/webpack.config.js +++ b/test/configCases/module/node-globals/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/module/non-webpack-require/test.filter.js b/test/configCases/module/non-webpack-require/test.filter.js index 0d61a0f08..3185ff623 100644 --- a/test/configCases/module/non-webpack-require/test.filter.js +++ b/test/configCases/module/non-webpack-require/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsRequireInModule = require("../../../helpers/supportsRequireInModule"); module.exports = () => supportsRequireInModule(); diff --git a/test/configCases/module/non-webpack-require/webpack.config.js b/test/configCases/module/non-webpack-require/webpack.config.js index 22f06b6ee..3a6d55cf9 100644 --- a/test/configCases/module/non-webpack-require/webpack.config.js +++ b/test/configCases/module/non-webpack-require/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/module/public-path/test.config.js b/test/configCases/module/public-path/test.config.js index 83d80a64a..dca19db0e 100644 --- a/test/configCases/module/public-path/test.config.js +++ b/test/configCases/module/public-path/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); module.exports = { diff --git a/test/configCases/module/public-path/webpack.config.js b/test/configCases/module/public-path/webpack.config.js index 92c2cfd0e..42fb32384 100644 --- a/test/configCases/module/public-path/webpack.config.js +++ b/test/configCases/module/public-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration[]} */ diff --git a/test/configCases/module/reuse-webpack-esm-library/webpack.config.js b/test/configCases/module/reuse-webpack-esm-library/webpack.config.js index 714354b80..6a81a7a2f 100644 --- a/test/configCases/module/reuse-webpack-esm-library/webpack.config.js +++ b/test/configCases/module/reuse-webpack-esm-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/module/runtime-chunk/test.config.js b/test/configCases/module/runtime-chunk/test.config.js index cb1a8be8b..843709015 100644 --- a/test/configCases/module/runtime-chunk/test.config.js +++ b/test/configCases/module/runtime-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.mjs", "./main.mjs"]; diff --git a/test/configCases/module/runtime-chunk/webpack.config.js b/test/configCases/module/runtime-chunk/webpack.config.js index b1bdf750f..eacfbbc5f 100644 --- a/test/configCases/module/runtime-chunk/webpack.config.js +++ b/test/configCases/module/runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/module/simple/webpack.config.js b/test/configCases/module/simple/webpack.config.js index b8e5da8c1..7c22e9021 100644 --- a/test/configCases/module/simple/webpack.config.js +++ b/test/configCases/module/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { diff --git a/test/configCases/module/split-chunks-issue-19657/test.config.js b/test/configCases/module/split-chunks-issue-19657/test.config.js index ab6930549..c49de5dd0 100644 --- a/test/configCases/module/split-chunks-issue-19657/test.config.js +++ b/test/configCases/module/split-chunks-issue-19657/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i, options) { return ["main.mjs"]; diff --git a/test/configCases/module/split-chunks-issue-19657/webpack.config.js b/test/configCases/module/split-chunks-issue-19657/webpack.config.js index 56d61cdf6..c51aad536 100644 --- a/test/configCases/module/split-chunks-issue-19657/webpack.config.js +++ b/test/configCases/module/split-chunks-issue-19657/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/module/split-chunks-without-externals/test.config.js b/test/configCases/module/split-chunks-without-externals/test.config.js index 6dfa44861..a9d0af8cd 100644 --- a/test/configCases/module/split-chunks-without-externals/test.config.js +++ b/test/configCases/module/split-chunks-without-externals/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.mjs", "testModule1.mjs", "testModule2.mjs"]; diff --git a/test/configCases/module/split-chunks-without-externals/webpack.config.js b/test/configCases/module/split-chunks-without-externals/webpack.config.js index 56d61cdf6..c51aad536 100644 --- a/test/configCases/module/split-chunks-without-externals/webpack.config.js +++ b/test/configCases/module/split-chunks-without-externals/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/module/split-chunks/test.config.js b/test/configCases/module/split-chunks/test.config.js index e2664c9b2..ed5826c53 100644 --- a/test/configCases/module/split-chunks/test.config.js +++ b/test/configCases/module/split-chunks/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.mjs", "./separate.mjs", "./main.mjs"]; diff --git a/test/configCases/module/split-chunks/webpack.config.js b/test/configCases/module/split-chunks/webpack.config.js index e8a91725c..458ab5046 100644 --- a/test/configCases/module/split-chunks/webpack.config.js +++ b/test/configCases/module/split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/no-parse/module.exports/webpack.config.js b/test/configCases/no-parse/module.exports/webpack.config.js index b63c4511a..72d119f93 100644 --- a/test/configCases/no-parse/module.exports/webpack.config.js +++ b/test/configCases/no-parse/module.exports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/no-parse/no-parse-function/webpack.config.js b/test/configCases/no-parse/no-parse-function/webpack.config.js index c1e2ece23..07408be3c 100644 --- a/test/configCases/no-parse/no-parse-function/webpack.config.js +++ b/test/configCases/no-parse/no-parse-function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/node/node-prefix/webpack.config.js b/test/configCases/node/node-prefix/webpack.config.js index 029181fbe..b82488942 100644 --- a/test/configCases/node/node-prefix/webpack.config.js +++ b/test/configCases/node/node-prefix/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node" diff --git a/test/configCases/node/prefix-in-runtime/test.filter.js b/test/configCases/node/prefix-in-runtime/test.filter.js index 30573896b..974a47767 100644 --- a/test/configCases/node/prefix-in-runtime/test.filter.js +++ b/test/configCases/node/prefix-in-runtime/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => !process.version.startsWith("v10."); diff --git a/test/configCases/node/prefix-in-runtime/webpack.config.js b/test/configCases/node/prefix-in-runtime/webpack.config.js index c7da21b83..c2725de2d 100644 --- a/test/configCases/node/prefix-in-runtime/webpack.config.js +++ b/test/configCases/node/prefix-in-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/optimization/chunk/webpack.config.js b/test/configCases/optimization/chunk/webpack.config.js index e47672c74..544c81340 100644 --- a/test/configCases/optimization/chunk/webpack.config.js +++ b/test/configCases/optimization/chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/optimization/depend-on-runtimes/test.config.js b/test/configCases/optimization/depend-on-runtimes/test.config.js index 908653524..b4e7057cd 100644 --- a/test/configCases/optimization/depend-on-runtimes/test.config.js +++ b/test/configCases/optimization/depend-on-runtimes/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js", "./runtime-c.js", "./c.js"]; diff --git a/test/configCases/optimization/depend-on-runtimes/webpack.config.js b/test/configCases/optimization/depend-on-runtimes/webpack.config.js index 251e8fccc..7929fe6f3 100644 --- a/test/configCases/optimization/depend-on-runtimes/webpack.config.js +++ b/test/configCases/optimization/depend-on-runtimes/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/optimization/hashed-module-ids/warnings.js b/test/configCases/optimization/hashed-module-ids/warnings.js index 70fefa270..fdcecb3be 100644 --- a/test/configCases/optimization/hashed-module-ids/warnings.js +++ b/test/configCases/optimization/hashed-module-ids/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/hashed/, /deprecated/]]; diff --git a/test/configCases/optimization/hashed-module-ids/webpack.config.js b/test/configCases/optimization/hashed-module-ids/webpack.config.js index e3f2e0b3b..ecd9cf88c 100644 --- a/test/configCases/optimization/hashed-module-ids/webpack.config.js +++ b/test/configCases/optimization/hashed-module-ids/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/optimization/issue-19184/warnings.js b/test/configCases/optimization/issue-19184/warnings.js index 70fefa270..fdcecb3be 100644 --- a/test/configCases/optimization/issue-19184/warnings.js +++ b/test/configCases/optimization/issue-19184/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/hashed/, /deprecated/]]; diff --git a/test/configCases/optimization/issue-19184/webpack.config.js b/test/configCases/optimization/issue-19184/webpack.config.js index f77b0884f..2b822a3d9 100644 --- a/test/configCases/optimization/issue-19184/webpack.config.js +++ b/test/configCases/optimization/issue-19184/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/optimization/minimizer/webpack.config.js b/test/configCases/optimization/minimizer/webpack.config.js index 554aca055..ade134bdd 100644 --- a/test/configCases/optimization/minimizer/webpack.config.js +++ b/test/configCases/optimization/minimizer/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const Compiler = require("../../../../").Compiler; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/optimization/named-modules/webpack.config.js b/test/configCases/optimization/named-modules/webpack.config.js index 15fb81f1b..e14acb1a1 100644 --- a/test/configCases/optimization/named-modules/webpack.config.js +++ b/test/configCases/optimization/named-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/optimization/runtime-specific-used-exports/test.config.js b/test/configCases/optimization/runtime-specific-used-exports/test.config.js index 212b2e5fc..af2075ac8 100644 --- a/test/configCases/optimization/runtime-specific-used-exports/test.config.js +++ b/test/configCases/optimization/runtime-specific-used-exports/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js"]; diff --git a/test/configCases/optimization/runtime-specific-used-exports/webpack.config.js b/test/configCases/optimization/runtime-specific-used-exports/webpack.config.js index 6cf012a34..11ec9666d 100644 --- a/test/configCases/optimization/runtime-specific-used-exports/webpack.config.js +++ b/test/configCases/optimization/runtime-specific-used-exports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/optimization/runtime-specific-used-exports2/test.config.js b/test/configCases/optimization/runtime-specific-used-exports2/test.config.js index 322f05c6b..0b07c625c 100644 --- a/test/configCases/optimization/runtime-specific-used-exports2/test.config.js +++ b/test/configCases/optimization/runtime-specific-used-exports2/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js", "./c.js"]; diff --git a/test/configCases/optimization/runtime-specific-used-exports2/webpack.config.js b/test/configCases/optimization/runtime-specific-used-exports2/webpack.config.js index c15fc77a8..166cf8c6b 100644 --- a/test/configCases/optimization/runtime-specific-used-exports2/webpack.config.js +++ b/test/configCases/optimization/runtime-specific-used-exports2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/output/charset/test.config.js b/test/configCases/output/charset/test.config.js index d338a4c02..f17cba79f 100644 --- a/test/configCases/output/charset/test.config.js +++ b/test/configCases/output/charset/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/configCases/output/charset/webpack.config.js b/test/configCases/output/charset/webpack.config.js index 15df7b6fa..73a38a828 100644 --- a/test/configCases/output/charset/webpack.config.js +++ b/test/configCases/output/charset/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/output/chunk-format-with-runtimeChunk/test.config.js b/test/configCases/output/chunk-format-with-runtimeChunk/test.config.js index 8614239c7..2147b0a0b 100644 --- a/test/configCases/output/chunk-format-with-runtimeChunk/test.config.js +++ b/test/configCases/output/chunk-format-with-runtimeChunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.mjs", "main.mjs"]; diff --git a/test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js b/test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js index 4779769a3..bfef95fa8 100644 --- a/test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js +++ b/test/configCases/output/chunk-format-with-runtimeChunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { mode: "production", entry: { diff --git a/test/configCases/output/function/test.config.js b/test/configCases/output/function/test.config.js index 212b2e5fc..af2075ac8 100644 --- a/test/configCases/output/function/test.config.js +++ b/test/configCases/output/function/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./b.js"]; diff --git a/test/configCases/output/function/webpack.config.js b/test/configCases/output/function/webpack.config.js index ca4e0c7aa..fa6bf5597 100644 --- a/test/configCases/output/function/webpack.config.js +++ b/test/configCases/output/function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/output/import-meta-name/test.config.js b/test/configCases/output/import-meta-name/test.config.js index 3b7d70896..68de5d74a 100644 --- a/test/configCases/output/import-meta-name/test.config.js +++ b/test/configCases/output/import-meta-name/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { scope.pseudoImport = { meta: { url: "http://test.co/path/index.js" } }; diff --git a/test/configCases/output/import-meta-name/webpack.config.js b/test/configCases/output/import-meta-name/webpack.config.js index 5d9667ad4..45061f52e 100644 --- a/test/configCases/output/import-meta-name/webpack.config.js +++ b/test/configCases/output/import-meta-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/output/inner-dirs-entries/test.config.js b/test/configCases/output/inner-dirs-entries/test.config.js index 18b3e20b6..7309eedcf 100644 --- a/test/configCases/output/inner-dirs-entries/test.config.js +++ b/test/configCases/output/inner-dirs-entries/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js", "./inner-dir/b.js", "./inner-dir/deep/deep/c.js"]; diff --git a/test/configCases/output/inner-dirs-entries/webpack.config.js b/test/configCases/output/inner-dirs-entries/webpack.config.js index 74d71fbfc..c016f2ea7 100644 --- a/test/configCases/output/inner-dirs-entries/webpack.config.js +++ b/test/configCases/output/inner-dirs-entries/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/output/publicPath-node/webpack.config.js b/test/configCases/output/publicPath-node/webpack.config.js index 546fe977d..489e00368 100644 --- a/test/configCases/output/publicPath-node/webpack.config.js +++ b/test/configCases/output/publicPath-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/output/publicPath-scriptType-module/test.config.js b/test/configCases/output/publicPath-scriptType-module/test.config.js index dd5df860f..46e07d929 100644 --- a/test/configCases/output/publicPath-scriptType-module/test.config.js +++ b/test/configCases/output/publicPath-scriptType-module/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./index.mjs"]; diff --git a/test/configCases/output/publicPath-scriptType-module/webpack.config.js b/test/configCases/output/publicPath-scriptType-module/webpack.config.js index e5a0a0a57..0f6cc1948 100644 --- a/test/configCases/output/publicPath-scriptType-module/webpack.config.js +++ b/test/configCases/output/publicPath-scriptType-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/output/publicPath-web/test.config.js b/test/configCases/output/publicPath-web/test.config.js index b4e1084ee..7c4830cda 100644 --- a/test/configCases/output/publicPath-web/test.config.js +++ b/test/configCases/output/publicPath-web/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./inner1/inner2/a.js", "./b.js"]; diff --git a/test/configCases/output/publicPath-web/webpack.config.js b/test/configCases/output/publicPath-web/webpack.config.js index c11ed1e26..4420c7b70 100644 --- a/test/configCases/output/publicPath-web/webpack.config.js +++ b/test/configCases/output/publicPath-web/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/output/string/test.config.js b/test/configCases/output/string/test.config.js index a214e6a94..32b916759 100644 --- a/test/configCases/output/string/test.config.js +++ b/test/configCases/output/string/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./a.js"]; diff --git a/test/configCases/output/string/webpack.config.js b/test/configCases/output/string/webpack.config.js index d96ec181e..c9461bd23 100644 --- a/test/configCases/output/string/webpack.config.js +++ b/test/configCases/output/string/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry() { diff --git a/test/configCases/output/worker-public-path/test.config.js b/test/configCases/output/worker-public-path/test.config.js index 0e721ca14..2059a3f89 100644 --- a/test/configCases/output/worker-public-path/test.config.js +++ b/test/configCases/output/worker-public-path/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./main.js"]; diff --git a/test/configCases/output/worker-public-path/test.filter.js b/test/configCases/output/worker-public-path/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/output/worker-public-path/test.filter.js +++ b/test/configCases/output/worker-public-path/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/output/worker-public-path/webpack.config.js b/test/configCases/output/worker-public-path/webpack.config.js index a141441d3..7a31865c0 100644 --- a/test/configCases/output/worker-public-path/webpack.config.js +++ b/test/configCases/output/worker-public-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/configCases/parsing/bom/test.config.js b/test/configCases/parsing/bom/test.config.js index cceab9643..0421a9008 100644 --- a/test/configCases/parsing/bom/test.config.js +++ b/test/configCases/parsing/bom/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/parsing/bom/webpack.config.js b/test/configCases/parsing/bom/webpack.config.js index cb633c001..d26e01456 100644 --- a/test/configCases/parsing/bom/webpack.config.js +++ b/test/configCases/parsing/bom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/context/errors.js b/test/configCases/parsing/context/errors.js index ab18d4d54..779f16992 100644 --- a/test/configCases/parsing/context/errors.js +++ b/test/configCases/parsing/context/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module parse failed/, diff --git a/test/configCases/parsing/context/infrastructure-log.js b/test/configCases/parsing/context/infrastructure-log.js index e458f8528..fe6c3fa6e 100644 --- a/test/configCases/parsing/context/infrastructure-log.js +++ b/test/configCases/parsing/context/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules|.+dump-file\.txt/ ]; diff --git a/test/configCases/parsing/context/webpack.config.js b/test/configCases/parsing/context/webpack.config.js index 91e80ba3b..497cd1228 100644 --- a/test/configCases/parsing/context/webpack.config.js +++ b/test/configCases/parsing/context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/dead-code-elimination-require-ensure/webpack.config.js b/test/configCases/parsing/dead-code-elimination-require-ensure/webpack.config.js index e30e85e93..504d6edc3 100644 --- a/test/configCases/parsing/dead-code-elimination-require-ensure/webpack.config.js +++ b/test/configCases/parsing/dead-code-elimination-require-ensure/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/parsing/dead-code-elimination/test.config.js b/test/configCases/parsing/dead-code-elimination/test.config.js index 69937cfcb..58a0ac314 100644 --- a/test/configCases/parsing/dead-code-elimination/test.config.js +++ b/test/configCases/parsing/dead-code-elimination/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["test.js", "bundle0.js"]; diff --git a/test/configCases/parsing/dead-code-elimination/webpack.config.js b/test/configCases/parsing/dead-code-elimination/webpack.config.js index e99e2537c..e171abc51 100644 --- a/test/configCases/parsing/dead-code-elimination/webpack.config.js +++ b/test/configCases/parsing/dead-code-elimination/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/parsing/destructuring-computed-property/webpack.config.js b/test/configCases/parsing/destructuring-computed-property/webpack.config.js index 2f7f833fa..ac8e5f982 100644 --- a/test/configCases/parsing/destructuring-computed-property/webpack.config.js +++ b/test/configCases/parsing/destructuring-computed-property/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/parsing/destructuring-namespace-import/webpack.config.js b/test/configCases/parsing/destructuring-namespace-import/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/parsing/destructuring-namespace-import/webpack.config.js +++ b/test/configCases/parsing/destructuring-namespace-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/parsing/destructuring-rest/webpack.config.js b/test/configCases/parsing/destructuring-rest/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/parsing/destructuring-rest/webpack.config.js +++ b/test/configCases/parsing/destructuring-rest/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/parsing/harmony-global/webpack.config.js b/test/configCases/parsing/harmony-global/webpack.config.js index 7bb5f004c..6718d29b4 100644 --- a/test/configCases/parsing/harmony-global/webpack.config.js +++ b/test/configCases/parsing/harmony-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/harmony-this-concat/webpack.config.js b/test/configCases/parsing/harmony-this-concat/webpack.config.js index 8c13599c6..0310d5448 100644 --- a/test/configCases/parsing/harmony-this-concat/webpack.config.js +++ b/test/configCases/parsing/harmony-this-concat/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/harmony-this/webpack.config.js b/test/configCases/parsing/harmony-this/webpack.config.js index 2423e135e..4983396e4 100644 --- a/test/configCases/parsing/harmony-this/webpack.config.js +++ b/test/configCases/parsing/harmony-this/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/import-ignore/webpack.config.js b/test/configCases/parsing/import-ignore/webpack.config.js index a824d9201..61f7c859b 100644 --- a/test/configCases/parsing/import-ignore/webpack.config.js +++ b/test/configCases/parsing/import-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/parsing/issue-11619/webpack.config.js b/test/configCases/parsing/issue-11619/webpack.config.js index e7c39588c..5d05f5f38 100644 --- a/test/configCases/parsing/issue-11619/webpack.config.js +++ b/test/configCases/parsing/issue-11619/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const ProvidePlugin = require("../../../../").ProvidePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/parsing/issue-14545/webpack.config.js b/test/configCases/parsing/issue-14545/webpack.config.js index 91e80ba3b..497cd1228 100644 --- a/test/configCases/parsing/issue-14545/webpack.config.js +++ b/test/configCases/parsing/issue-14545/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/issue-14720/webpack.config.js b/test/configCases/parsing/issue-14720/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/configCases/parsing/issue-14720/webpack.config.js +++ b/test/configCases/parsing/issue-14720/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/configCases/parsing/issue-19514/webpack.config.js b/test/configCases/parsing/issue-19514/webpack.config.js index f2b98bcca..ec51b60af 100644 --- a/test/configCases/parsing/issue-19514/webpack.config.js +++ b/test/configCases/parsing/issue-19514/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/parsing/issue-2942/warnings.js b/test/configCases/parsing/issue-2942/warnings.js index b9d048752..f28c5900d 100644 --- a/test/configCases/parsing/issue-2942/warnings.js +++ b/test/configCases/parsing/issue-2942/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/System.register is not supported by webpack/], [/System.get is not supported by webpack/], diff --git a/test/configCases/parsing/issue-2942/webpack.config.js b/test/configCases/parsing/issue-2942/webpack.config.js index cb87a26bb..a0d3feb7c 100644 --- a/test/configCases/parsing/issue-2942/webpack.config.js +++ b/test/configCases/parsing/issue-2942/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/issue-336/webpack.config.js b/test/configCases/parsing/issue-336/webpack.config.js index ea4f97ab1..b29facb84 100644 --- a/test/configCases/parsing/issue-336/webpack.config.js +++ b/test/configCases/parsing/issue-336/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const ProvidePlugin = require("../../../../").ProvidePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/parsing/issue-4857/webpack.config.js b/test/configCases/parsing/issue-4857/webpack.config.js index e30e85e93..504d6edc3 100644 --- a/test/configCases/parsing/issue-4857/webpack.config.js +++ b/test/configCases/parsing/issue-4857/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/parsing/issue-5624/webpack.config.js b/test/configCases/parsing/issue-5624/webpack.config.js index 8c13599c6..0310d5448 100644 --- a/test/configCases/parsing/issue-5624/webpack.config.js +++ b/test/configCases/parsing/issue-5624/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/issue-8293/webpack.config.js b/test/configCases/parsing/issue-8293/webpack.config.js index 09541e8dc..00e58d61b 100644 --- a/test/configCases/parsing/issue-8293/webpack.config.js +++ b/test/configCases/parsing/issue-8293/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/parsing/issue-9042/test.config.js b/test/configCases/parsing/issue-9042/test.config.js index 997667fd5..c0a2708ab 100644 --- a/test/configCases/parsing/issue-9042/test.config.js +++ b/test/configCases/parsing/issue-9042/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { delete scope.__dirname; diff --git a/test/configCases/parsing/issue-9042/webpack.config.js b/test/configCases/parsing/issue-9042/webpack.config.js index 0a96337dc..0f4a52eef 100644 --- a/test/configCases/parsing/issue-9042/webpack.config.js +++ b/test/configCases/parsing/issue-9042/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/issue-9156/webpack.config.js b/test/configCases/parsing/issue-9156/webpack.config.js index 0c8b672e3..6b2808750 100644 --- a/test/configCases/parsing/issue-9156/webpack.config.js +++ b/test/configCases/parsing/issue-9156/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/node-source-plugin-off/webpack.config.js b/test/configCases/parsing/node-source-plugin-off/webpack.config.js index 0c8b672e3..6b2808750 100644 --- a/test/configCases/parsing/node-source-plugin-off/webpack.config.js +++ b/test/configCases/parsing/node-source-plugin-off/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/node-stuff-plugin-off/test.config.js b/test/configCases/parsing/node-stuff-plugin-off/test.config.js index 997667fd5..c0a2708ab 100644 --- a/test/configCases/parsing/node-stuff-plugin-off/test.config.js +++ b/test/configCases/parsing/node-stuff-plugin-off/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { delete scope.__dirname; diff --git a/test/configCases/parsing/node-stuff-plugin-off/webpack.config.js b/test/configCases/parsing/node-stuff-plugin-off/webpack.config.js index 0c8b672e3..6b2808750 100644 --- a/test/configCases/parsing/node-stuff-plugin-off/webpack.config.js +++ b/test/configCases/parsing/node-stuff-plugin-off/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/parsing/optional-chaining/test.filter.js b/test/configCases/parsing/optional-chaining/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/parsing/optional-chaining/test.filter.js +++ b/test/configCases/parsing/optional-chaining/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/parsing/optional-chaining/webpack.config.js b/test/configCases/parsing/optional-chaining/webpack.config.js index e805aa39e..74f485664 100644 --- a/test/configCases/parsing/optional-chaining/webpack.config.js +++ b/test/configCases/parsing/optional-chaining/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/parsing/optional/warnings.js b/test/configCases/parsing/optional/warnings.js index e011edaca..b7d814d8c 100644 --- a/test/configCases/parsing/optional/warnings.js +++ b/test/configCases/parsing/optional/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /Module not found/, diff --git a/test/configCases/parsing/optional/webpack.config.js b/test/configCases/parsing/optional/webpack.config.js index 61694bc09..ac887dc07 100644 --- a/test/configCases/parsing/optional/webpack.config.js +++ b/test/configCases/parsing/optional/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { bail: true diff --git a/test/configCases/parsing/override-strict/webpack.config.js b/test/configCases/parsing/override-strict/webpack.config.js index d92a10890..246bef7b3 100644 --- a/test/configCases/parsing/override-strict/webpack.config.js +++ b/test/configCases/parsing/override-strict/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/parsing/relative-filedirname/webpack.config.js b/test/configCases/parsing/relative-filedirname/webpack.config.js index 14316147f..993501a19 100644 --- a/test/configCases/parsing/relative-filedirname/webpack.config.js +++ b/test/configCases/parsing/relative-filedirname/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/parsing/require-ignore/webpack.config.js b/test/configCases/parsing/require-ignore/webpack.config.js index 4323daf6d..cfce94604 100644 --- a/test/configCases/parsing/require-ignore/webpack.config.js +++ b/test/configCases/parsing/require-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/parsing/require-resolve-ignore/webpack.config.js b/test/configCases/parsing/require-resolve-ignore/webpack.config.js index 4323daf6d..cfce94604 100644 --- a/test/configCases/parsing/require-resolve-ignore/webpack.config.js +++ b/test/configCases/parsing/require-resolve-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/parsing/require.main/webpack.config.js b/test/configCases/parsing/require.main/webpack.config.js index 3583b70a3..27313115d 100644 --- a/test/configCases/parsing/require.main/webpack.config.js +++ b/test/configCases/parsing/require.main/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = {}; diff --git a/test/configCases/parsing/requirejs/webpack.config.js b/test/configCases/parsing/requirejs/webpack.config.js index 8da4d0ff7..7edee3f73 100644 --- a/test/configCases/parsing/requirejs/webpack.config.js +++ b/test/configCases/parsing/requirejs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/parsing/system.import/warnings.js b/test/configCases/parsing/system.import/warnings.js index 87f704247..d27a39dc0 100644 --- a/test/configCases/parsing/system.import/warnings.js +++ b/test/configCases/parsing/system.import/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [{compilerPath: /system_true/}, /System\.import\(\) is deprecated/] ]; diff --git a/test/configCases/parsing/system.import/webpack.config.js b/test/configCases/parsing/system.import/webpack.config.js index ba03c038b..9bebce7ad 100644 --- a/test/configCases/parsing/system.import/webpack.config.js +++ b/test/configCases/parsing/system.import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** diff --git a/test/configCases/parsing/url-ignore/warnings.js b/test/configCases/parsing/url-ignore/warnings.js index 3e31c655b..4730466a4 100644 --- a/test/configCases/parsing/url-ignore/warnings.js +++ b/test/configCases/parsing/url-ignore/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [/`webpackIgnore` expected a boolean, but received: test./]; diff --git a/test/configCases/parsing/url-ignore/webpack.config.js b/test/configCases/parsing/url-ignore/webpack.config.js index 9787b026d..a5b3cb94c 100644 --- a/test/configCases/parsing/url-ignore/webpack.config.js +++ b/test/configCases/parsing/url-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/performance/many-async-imports/test.config.js b/test/configCases/performance/many-async-imports/test.config.js index 3f84fd04e..cef84ace5 100644 --- a/test/configCases/performance/many-async-imports/test.config.js +++ b/test/configCases/performance/many-async-imports/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { timeout: 10000 }; diff --git a/test/configCases/performance/many-async-imports/webpack.config.js b/test/configCases/performance/many-async-imports/webpack.config.js index e30e85e93..504d6edc3 100644 --- a/test/configCases/performance/many-async-imports/webpack.config.js +++ b/test/configCases/performance/many-async-imports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/performance/many-exports/test.config.js b/test/configCases/performance/many-exports/test.config.js index 3f84fd04e..cef84ace5 100644 --- a/test/configCases/performance/many-exports/test.config.js +++ b/test/configCases/performance/many-exports/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { timeout: 10000 }; diff --git a/test/configCases/performance/many-exports/webpack.config.js b/test/configCases/performance/many-exports/webpack.config.js index e30e85e93..504d6edc3 100644 --- a/test/configCases/performance/many-exports/webpack.config.js +++ b/test/configCases/performance/many-exports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/plugins/banner-plugin-hashing/test.config.js b/test/configCases/plugins/banner-plugin-hashing/test.config.js index 72f2bf28c..afa4e17c9 100644 --- a/test/configCases/plugins/banner-plugin-hashing/test.config.js +++ b/test/configCases/plugins/banner-plugin-hashing/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./dist/banner.js"; diff --git a/test/configCases/plugins/banner-plugin/webpack.config.js b/test/configCases/plugins/banner-plugin/webpack.config.js index 559182132..037636476 100644 --- a/test/configCases/plugins/banner-plugin/webpack.config.js +++ b/test/configCases/plugins/banner-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/define-plugin-bigint/webpack.config.js b/test/configCases/plugins/define-plugin-bigint/webpack.config.js index 47d5f7379..b2593599a 100644 --- a/test/configCases/plugins/define-plugin-bigint/webpack.config.js +++ b/test/configCases/plugins/define-plugin-bigint/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DefinePlugin = require("../../../../").DefinePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/define-plugin-process-env/webpack.config.js b/test/configCases/plugins/define-plugin-process-env/webpack.config.js index 9b5277c52..9e6995d13 100644 --- a/test/configCases/plugins/define-plugin-process-env/webpack.config.js +++ b/test/configCases/plugins/define-plugin-process-env/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DefinePlugin = require("../../../../").DefinePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/define-plugin-sub-key/webpack.config.js b/test/configCases/plugins/define-plugin-sub-key/webpack.config.js index 8655194c0..f2d5952d8 100644 --- a/test/configCases/plugins/define-plugin-sub-key/webpack.config.js +++ b/test/configCases/plugins/define-plugin-sub-key/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DefinePlugin = require("../../../../").DefinePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/define-plugin/webpack.config.js b/test/configCases/plugins/define-plugin/webpack.config.js index b73c8b9b1..0307a01e3 100644 --- a/test/configCases/plugins/define-plugin/webpack.config.js +++ b/test/configCases/plugins/define-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const DefinePlugin = require("../../../../").DefinePlugin; const Module = require("../../../../").Module; diff --git a/test/configCases/plugins/environment-plugin/errors.js b/test/configCases/plugins/environment-plugin/errors.js index b393e2ba6..bd5671bdd 100644 --- a/test/configCases/plugins/environment-plugin/errors.js +++ b/test/configCases/plugins/environment-plugin/errors.js @@ -1,3 +1,5 @@ +"use strict"; + const variables = [ "aaa", "bbb", diff --git a/test/configCases/plugins/lib-manifest-plugin/webpack.config.js b/test/configCases/plugins/lib-manifest-plugin/webpack.config.js index e409f2852..5bcf77805 100644 --- a/test/configCases/plugins/lib-manifest-plugin/webpack.config.js +++ b/test/configCases/plugins/lib-manifest-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const LibManifestPlugin = require("../../../../").LibManifestPlugin; diff --git a/test/configCases/plugins/limit-chunk-count-plugin/test.config.js b/test/configCases/plugins/limit-chunk-count-plugin/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/plugins/limit-chunk-count-plugin/test.config.js +++ b/test/configCases/plugins/limit-chunk-count-plugin/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/plugins/limit-chunk-count-plugin/webpack.config.js b/test/configCases/plugins/limit-chunk-count-plugin/webpack.config.js index d4d76bcc2..b99432722 100644 --- a/test/configCases/plugins/limit-chunk-count-plugin/webpack.config.js +++ b/test/configCases/plugins/limit-chunk-count-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/loader-options-plugin/webpack.config.js b/test/configCases/plugins/loader-options-plugin/webpack.config.js index be4a90d7f..d274e65fd 100644 --- a/test/configCases/plugins/loader-options-plugin/webpack.config.js +++ b/test/configCases/plugins/loader-options-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/min-chunk-size/webpack.config.js b/test/configCases/plugins/min-chunk-size/webpack.config.js index f9dd2f4ed..3c472ac98 100644 --- a/test/configCases/plugins/min-chunk-size/webpack.config.js +++ b/test/configCases/plugins/min-chunk-size/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/mini-css-extract-plugin/test.config.js b/test/configCases/plugins/mini-css-extract-plugin/test.config.js index 41eeb395b..c0e2d2dc7 100644 --- a/test/configCases/plugins/mini-css-extract-plugin/test.config.js +++ b/test/configCases/plugins/mini-css-extract-plugin/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return [`${i}_a.js`, `${i}_b.js`, `${i}_c.js`]; diff --git a/test/configCases/plugins/mini-css-extract-plugin/webpack.config.js b/test/configCases/plugins/mini-css-extract-plugin/webpack.config.js index 4c30ac887..8505b5baa 100644 --- a/test/configCases/plugins/mini-css-extract-plugin/webpack.config.js +++ b/test/configCases/plugins/mini-css-extract-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MCEP = require("mini-css-extract-plugin"); /** @typedef {import("../../../../").StatsCompilation} StatsCompilation */ diff --git a/test/configCases/plugins/profiling-plugin/deprecations.js b/test/configCases/plugins/profiling-plugin/deprecations.js index dee16addc..368f9474d 100644 --- a/test/configCases/plugins/profiling-plugin/deprecations.js +++ b/test/configCases/plugins/profiling-plugin/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK/ } ]; diff --git a/test/configCases/plugins/profiling-plugin/test.config.js b/test/configCases/plugins/profiling-plugin/test.config.js index 5ef314060..55bea19ac 100644 --- a/test/configCases/plugins/profiling-plugin/test.config.js +++ b/test/configCases/plugins/profiling-plugin/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { timeout: 60000 }; diff --git a/test/configCases/plugins/profiling-plugin/test.filter.js b/test/configCases/plugins/profiling-plugin/test.filter.js index 1338bc1e7..f1925767d 100644 --- a/test/configCases/plugins/profiling-plugin/test.filter.js +++ b/test/configCases/plugins/profiling-plugin/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => !process.env.CI; diff --git a/test/configCases/plugins/profiling-plugin/webpack.config.js b/test/configCases/plugins/profiling-plugin/webpack.config.js index 07035fd73..cf446e39d 100644 --- a/test/configCases/plugins/profiling-plugin/webpack.config.js +++ b/test/configCases/plugins/profiling-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const rootPath = "../../../../"; const webpack = require(rootPath); diff --git a/test/configCases/plugins/progress-plugin/test.config.js b/test/configCases/plugins/progress-plugin/test.config.js index 57d3499a5..f6ef5272c 100644 --- a/test/configCases/plugins/progress-plugin/test.config.js +++ b/test/configCases/plugins/progress-plugin/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); module.exports = { diff --git a/test/configCases/plugins/progress-plugin/webpack.config.js b/test/configCases/plugins/progress-plugin/webpack.config.js index a02a4fa2a..32e252d18 100644 --- a/test/configCases/plugins/progress-plugin/webpack.config.js +++ b/test/configCases/plugins/progress-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); const data = require("./data"); diff --git a/test/configCases/plugins/provide-plugin/webpack.config.js b/test/configCases/plugins/provide-plugin/webpack.config.js index 877c451c9..2b3e669e3 100644 --- a/test/configCases/plugins/provide-plugin/webpack.config.js +++ b/test/configCases/plugins/provide-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const ProvidePlugin = require("../../../../").ProvidePlugin; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js b/test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js index 316da3e88..2fc1f3a57 100644 --- a/test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js +++ b/test/configCases/plugins/source-map-dev-tool-plugin-append-function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("../../../../"); diff --git a/test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js b/test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js index 6ca950d3f..82961a1ea 100644 --- a/test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js +++ b/test/configCases/plugins/source-map-dev-tool-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("../../../../"); diff --git a/test/configCases/plugins/source-map-dev-tool-plugin~append/webpack.config.js b/test/configCases/plugins/source-map-dev-tool-plugin~append/webpack.config.js index b230e682b..d82b41fcb 100644 --- a/test/configCases/plugins/source-map-dev-tool-plugin~append/webpack.config.js +++ b/test/configCases/plugins/source-map-dev-tool-plugin~append/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); const webpack = require("../../../../"); diff --git a/test/configCases/plugins/terser-plugin/webpack.config.js b/test/configCases/plugins/terser-plugin/webpack.config.js index e7717a605..89cf4ec79 100644 --- a/test/configCases/plugins/terser-plugin/webpack.config.js +++ b/test/configCases/plugins/terser-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/plugins/virtual-url-plugin/webpack.config.js b/test/configCases/plugins/virtual-url-plugin/webpack.config.js index a5081e275..2198f4fdf 100644 --- a/test/configCases/plugins/virtual-url-plugin/webpack.config.js +++ b/test/configCases/plugins/virtual-url-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/process-assets/html-plugin/infrastructure-log.js b/test/configCases/process-assets/html-plugin/infrastructure-log.js index 0297c93d8..c519ba1a3 100644 --- a/test/configCases/process-assets/html-plugin/infrastructure-log.js +++ b/test/configCases/process-assets/html-plugin/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ // each time returns different OriginalSource in webpack.config.js:78 // this prevents hit in inmemory cache diff --git a/test/configCases/process-assets/html-plugin/test.config.js b/test/configCases/process-assets/html-plugin/test.config.js index 63ffe2a56..494e0434c 100644 --- a/test/configCases/process-assets/html-plugin/test.config.js +++ b/test/configCases/process-assets/html-plugin/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./test.js"; diff --git a/test/configCases/process-assets/html-plugin/webpack.config.js b/test/configCases/process-assets/html-plugin/webpack.config.js index e7d0b991a..0d65460f0 100644 --- a/test/configCases/process-assets/html-plugin/webpack.config.js +++ b/test/configCases/process-assets/html-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { sources: { RawSource, OriginalSource, ReplaceSource }, Compilation, diff --git a/test/configCases/process-assets/update-info/webpack.config.js b/test/configCases/process-assets/update-info/webpack.config.js index 4bb986852..25dd27d5e 100644 --- a/test/configCases/process-assets/update-info/webpack.config.js +++ b/test/configCases/process-assets/update-info/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").AssetInfo} AssetInfo */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/race-conditions/import-module/test.filter.js b/test/configCases/race-conditions/import-module/test.filter.js index daa2b1012..6c0c15c2e 100644 --- a/test/configCases/race-conditions/import-module/test.filter.js +++ b/test/configCases/race-conditions/import-module/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = () => { const [major] = process.versions.node.split(".").map(Number); diff --git a/test/configCases/race-conditions/import-module/webpack.config.js b/test/configCases/race-conditions/import-module/webpack.config.js index 44c2cb40e..296579050 100644 --- a/test/configCases/race-conditions/import-module/webpack.config.js +++ b/test/configCases/race-conditions/import-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { parallelism: 1, diff --git a/test/configCases/race-conditions/load-module/webpack.config.js b/test/configCases/race-conditions/load-module/webpack.config.js index 40427f860..09f63feb1 100644 --- a/test/configCases/race-conditions/load-module/webpack.config.js +++ b/test/configCases/race-conditions/load-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { parallelism: 1 diff --git a/test/configCases/rebuild/finishModules/webpack.config.js b/test/configCases/rebuild/finishModules/webpack.config.js index c97be5a3f..738e06f1c 100644 --- a/test/configCases/rebuild/finishModules/webpack.config.js +++ b/test/configCases/rebuild/finishModules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { join, resolve } = require("path"); const { NormalModule } = require("../../../../"); diff --git a/test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js b/test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js index 064fbf46c..675026ca4 100644 --- a/test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js +++ b/test/configCases/rebuild/rebuildWithNewDependencies/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { join, resolve } = require("path"); const { NormalModule } = require("../../../../"); diff --git a/test/configCases/records/issue-295/webpack.config.js b/test/configCases/records/issue-295/webpack.config.js index c7eedcfd8..f65ee6b2b 100644 --- a/test/configCases/records/issue-295/webpack.config.js +++ b/test/configCases/records/issue-295/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/configCases/records/issue-2991/webpack.config.js b/test/configCases/records/issue-2991/webpack.config.js index 664fd120e..a1179fc8a 100644 --- a/test/configCases/records/issue-2991/webpack.config.js +++ b/test/configCases/records/issue-2991/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/configCases/records/issue-7339/webpack.config.js b/test/configCases/records/issue-7339/webpack.config.js index 51047a992..255e8e121 100644 --- a/test/configCases/records/issue-7339/webpack.config.js +++ b/test/configCases/records/issue-7339/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/configCases/records/issue-7492/webpack.config.js b/test/configCases/records/issue-7492/webpack.config.js index 14f0c3781..66927c9b9 100644 --- a/test/configCases/records/issue-7492/webpack.config.js +++ b/test/configCases/records/issue-7492/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/records/stable-sort/webpack.config.js b/test/configCases/records/stable-sort/webpack.config.js index 132be139b..d5b47234b 100644 --- a/test/configCases/records/stable-sort/webpack.config.js +++ b/test/configCases/records/stable-sort/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/configCases/records/with-readRecords-hook/webpack.config.js b/test/configCases/records/with-readRecords-hook/webpack.config.js index 503a8506c..5f22cc0e5 100644 --- a/test/configCases/records/with-readRecords-hook/webpack.config.js +++ b/test/configCases/records/with-readRecords-hook/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const ReadRecordsPlugin = require("./ReadRecordsPlugin"); diff --git a/test/configCases/require/module-require/warnings.js b/test/configCases/require/module-require/warnings.js index c518f69bd..7a68faffd 100644 --- a/test/configCases/require/module-require/warnings.js +++ b/test/configCases/require/module-require/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /require function is used in a way in which dependencies cannot be statically extracted/, /createRequire\(\)\.main is not supported by webpack/ diff --git a/test/configCases/require/module-require/webpack.config.js b/test/configCases/require/module-require/webpack.config.js index fe99e3d17..b14c33257 100644 --- a/test/configCases/require/module-require/webpack.config.js +++ b/test/configCases/require/module-require/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/resolve-merging/imports-fields/webpack.config.js b/test/configCases/resolve-merging/imports-fields/webpack.config.js index a1150b90e..7332c1abd 100644 --- a/test/configCases/resolve-merging/imports-fields/webpack.config.js +++ b/test/configCases/resolve-merging/imports-fields/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { entry: "./index.js", resolve: { diff --git a/test/configCases/resolve-merging/override/webpack.config.js b/test/configCases/resolve-merging/override/webpack.config.js index 4d7903935..029400f95 100644 --- a/test/configCases/resolve-merging/override/webpack.config.js +++ b/test/configCases/resolve-merging/override/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { resolve: { alias: { diff --git a/test/configCases/resolve/context-resolve-with-ignore/webpack.config.js b/test/configCases/resolve/context-resolve-with-ignore/webpack.config.js index 24884ab1c..69fde2acf 100644 --- a/test/configCases/resolve/context-resolve-with-ignore/webpack.config.js +++ b/test/configCases/resolve/context-resolve-with-ignore/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/empty-context-module/webpack.config.js b/test/configCases/resolve/empty-context-module/webpack.config.js index bfefc9c73..abf9bf4e1 100644 --- a/test/configCases/resolve/empty-context-module/webpack.config.js +++ b/test/configCases/resolve/empty-context-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/resolve/fallback/webpack.config.js b/test/configCases/resolve/fallback/webpack.config.js index 8c173e91a..1bf74bd32 100644 --- a/test/configCases/resolve/fallback/webpack.config.js +++ b/test/configCases/resolve/fallback/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/function-plugins/webpack.config.js b/test/configCases/resolve/function-plugins/webpack.config.js index 56c493fca..0a1d74f5d 100644 --- a/test/configCases/resolve/function-plugins/webpack.config.js +++ b/test/configCases/resolve/function-plugins/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + let pluginExecutionCounter = 0; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/issue-11335-context-module/webpack.config.js b/test/configCases/resolve/issue-11335-context-module/webpack.config.js index d1c50dcaa..efa5b5a33 100644 --- a/test/configCases/resolve/issue-11335-context-module/webpack.config.js +++ b/test/configCases/resolve/issue-11335-context-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/issue-15580/webpack.config.js b/test/configCases/resolve/issue-15580/webpack.config.js index c39ef077c..4879145be 100644 --- a/test/configCases/resolve/issue-15580/webpack.config.js +++ b/test/configCases/resolve/issue-15580/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/multi-alias/webpack.config.js b/test/configCases/resolve/multi-alias/webpack.config.js index 5ba1fdc2c..9aafc4545 100644 --- a/test/configCases/resolve/multi-alias/webpack.config.js +++ b/test/configCases/resolve/multi-alias/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/only-module/webpack.config.js b/test/configCases/resolve/only-module/webpack.config.js index 2b59831e3..adf3d1a74 100644 --- a/test/configCases/resolve/only-module/webpack.config.js +++ b/test/configCases/resolve/only-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/resolve/unsafe-cache-proxy/webpack.config.js b/test/configCases/resolve/unsafe-cache-proxy/webpack.config.js index b701fc1a3..75fedeb2c 100644 --- a/test/configCases/resolve/unsafe-cache-proxy/webpack.config.js +++ b/test/configCases/resolve/unsafe-cache-proxy/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); let getCounter = 0; diff --git a/test/configCases/resolving/extensions-order/webpack.config.js b/test/configCases/resolving/extensions-order/webpack.config.js index 6d1fa7e19..2facaa1b0 100644 --- a/test/configCases/resolving/extensions-order/webpack.config.js +++ b/test/configCases/resolving/extensions-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { resolve: { extensions: [".js", "", ".json"] diff --git a/test/configCases/resolving/prefer-absolute/webpack.config.js b/test/configCases/resolving/prefer-absolute/webpack.config.js index 21adc6f0f..ce6c32af7 100644 --- a/test/configCases/resolving/prefer-absolute/webpack.config.js +++ b/test/configCases/resolving/prefer-absolute/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("enhanced-resolve").Resolver} Resolver */ /** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */ /** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */ diff --git a/test/configCases/resolving/prefer-root/webpack.config.js b/test/configCases/resolving/prefer-root/webpack.config.js index 9aecc535c..d4f006fe6 100644 --- a/test/configCases/resolving/prefer-root/webpack.config.js +++ b/test/configCases/resolving/prefer-root/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("enhanced-resolve").Resolver} Resolver */ /** @typedef {import("enhanced-resolve").ResolveRequest} ResolveRequest */ /** @typedef {import("enhanced-resolve").ResolveContext} ResolveContext */ diff --git a/test/configCases/rule-set/chaining/deprecations.js b/test/configCases/rule-set/chaining/deprecations.js index 6452ef041..aaf2f310d 100644 --- a/test/configCases/rule-set/chaining/deprecations.js +++ b/test/configCases/rule-set/chaining/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, diff --git a/test/configCases/rule-set/chaining/webpack.config.js b/test/configCases/rule-set/chaining/webpack.config.js index 88c052b57..db99c5717 100644 --- a/test/configCases/rule-set/chaining/webpack.config.js +++ b/test/configCases/rule-set/chaining/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/rule-set/compiler/webpack.config.js b/test/configCases/rule-set/compiler/webpack.config.js index 11c0be4e0..0cb2f868c 100644 --- a/test/configCases/rule-set/compiler/webpack.config.js +++ b/test/configCases/rule-set/compiler/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { name: "compiler-name", diff --git a/test/configCases/rule-set/custom/webpack.config.js b/test/configCases/rule-set/custom/webpack.config.js index c1170eccb..c5e428353 100644 --- a/test/configCases/rule-set/custom/webpack.config.js +++ b/test/configCases/rule-set/custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").RuleSetUseFunction} RuleSetUseFunction */ /** @typedef {import("../../../../").RuleSetUseItem} RuleSetUseItem */ diff --git a/test/configCases/rule-set/oneOf/webpack.config.js b/test/configCases/rule-set/oneOf/webpack.config.js index 1e19a358b..745fe508b 100644 --- a/test/configCases/rule-set/oneOf/webpack.config.js +++ b/test/configCases/rule-set/oneOf/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/rule-set/query/webpack.config.js b/test/configCases/rule-set/query/webpack.config.js index 589fd6fe6..09afe74be 100644 --- a/test/configCases/rule-set/query/webpack.config.js +++ b/test/configCases/rule-set/query/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/rule-set/resolve-options/webpack.config.js b/test/configCases/rule-set/resolve-options/webpack.config.js index cf15580f0..5a0333217 100644 --- a/test/configCases/rule-set/resolve-options/webpack.config.js +++ b/test/configCases/rule-set/resolve-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { resolve: { diff --git a/test/configCases/rule-set/simple-use-array-fn/deprecations.js b/test/configCases/rule-set/simple-use-array-fn/deprecations.js index 509a3520b..f2b357d31 100644 --- a/test/configCases/rule-set/simple-use-array-fn/deprecations.js +++ b/test/configCases/rule-set/simple-use-array-fn/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[0\]/ }, { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[1\]/ }, diff --git a/test/configCases/rule-set/simple-use-array-fn/webpack.config.js b/test/configCases/rule-set/simple-use-array-fn/webpack.config.js index 2100be79f..0ac1aff55 100644 --- a/test/configCases/rule-set/simple-use-array-fn/webpack.config.js +++ b/test/configCases/rule-set/simple-use-array-fn/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/rule-set/simple-use-fn-array/deprecations.js b/test/configCases/rule-set/simple-use-fn-array/deprecations.js index 509a3520b..f2b357d31 100644 --- a/test/configCases/rule-set/simple-use-fn-array/deprecations.js +++ b/test/configCases/rule-set/simple-use-fn-array/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[0\]/ }, { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[1\]/ }, diff --git a/test/configCases/rule-set/simple-use-fn-array/webpack.config.js b/test/configCases/rule-set/simple-use-fn-array/webpack.config.js index 8e3cee4af..2f4fb0cfd 100644 --- a/test/configCases/rule-set/simple-use-fn-array/webpack.config.js +++ b/test/configCases/rule-set/simple-use-fn-array/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** * @param {EXPECTED_ANY[]} useArray use array * @returns {EXPECTED_FUNCTION[]} functions diff --git a/test/configCases/rule-set/simple/deprecations.js b/test/configCases/rule-set/simple/deprecations.js index 509a3520b..f2b357d31 100644 --- a/test/configCases/rule-set/simple/deprecations.js +++ b/test/configCases/rule-set/simple/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[0\]/ }, { code: /DEP_WEBPACK_RULE_LOADER_OPTIONS_STRING/, message: /oneOf\[1\]/ }, diff --git a/test/configCases/rule-set/simple/webpack.config.js b/test/configCases/rule-set/simple/webpack.config.js index 5515487f9..154e5325d 100644 --- a/test/configCases/rule-set/simple/webpack.config.js +++ b/test/configCases/rule-set/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/rule-set/undefined-values/webpack.config.js b/test/configCases/rule-set/undefined-values/webpack.config.js index 0b3933fba..04c0e7854 100644 --- a/test/configCases/rule-set/undefined-values/webpack.config.js +++ b/test/configCases/rule-set/undefined-values/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js b/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js index 3f1ee62ad..99f8e1637 100644 --- a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js +++ b/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js b/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js index af731ef6a..7de81447f 100644 --- a/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js +++ b/test/configCases/runtime/dynamic-nested-with-deep-entries-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js b/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js index 73daff2cf..60f3ac7ab 100644 --- a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js +++ b/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js b/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js index aef3552de..92dded63e 100644 --- a/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js +++ b/test/configCases/runtime/dynamic-nested-with-deep-entries-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js b/test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js index 41e056466..6a3519d43 100644 --- a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js +++ b/test/configCases/runtime/dynamic-with-deep-entries-commonjs/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js b/test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js index 4bdad1a91..1444e3be0 100644 --- a/test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js +++ b/test/configCases/runtime/dynamic-with-deep-entries-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/dynamic-with-deep-entries-esm/test.config.js b/test/configCases/runtime/dynamic-with-deep-entries-esm/test.config.js index 07fb94c9b..4e7d583c9 100644 --- a/test/configCases/runtime/dynamic-with-deep-entries-esm/test.config.js +++ b/test/configCases/runtime/dynamic-with-deep-entries-esm/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/dynamic-with-deep-entries-esm/webpack.config.js b/test/configCases/runtime/dynamic-with-deep-entries-esm/webpack.config.js index 2ffd63de8..95825edf4 100644 --- a/test/configCases/runtime/dynamic-with-deep-entries-esm/webpack.config.js +++ b/test/configCases/runtime/dynamic-with-deep-entries-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/entries-in-runtime/test.config.js b/test/configCases/runtime/entries-in-runtime/test.config.js index b63304387..b037c5035 100644 --- a/test/configCases/runtime/entries-in-runtime/test.config.js +++ b/test/configCases/runtime/entries-in-runtime/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./main.js", "./first-entry.js"]; diff --git a/test/configCases/runtime/entries-in-runtime/webpack.config.js b/test/configCases/runtime/entries-in-runtime/webpack.config.js index a45319b62..8e78c0e71 100644 --- a/test/configCases/runtime/entries-in-runtime/webpack.config.js +++ b/test/configCases/runtime/entries-in-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/runtime/invalid-esm-export/webpack.config.js b/test/configCases/runtime/invalid-esm-export/webpack.config.js index 8152f6c76..c19d15e8f 100644 --- a/test/configCases/runtime/invalid-esm-export/webpack.config.js +++ b/test/configCases/runtime/invalid-esm-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development" diff --git a/test/configCases/runtime/no-runtime-per-entry/test.config.js b/test/configCases/runtime/no-runtime-per-entry/test.config.js index c0ec14727..d9a38d25b 100644 --- a/test/configCases/runtime/no-runtime-per-entry/test.config.js +++ b/test/configCases/runtime/no-runtime-per-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return "./main.js"; diff --git a/test/configCases/runtime/no-runtime-per-entry/webpack.config.js b/test/configCases/runtime/no-runtime-per-entry/webpack.config.js index 1931aed05..c0e60c4a3 100644 --- a/test/configCases/runtime/no-runtime-per-entry/webpack.config.js +++ b/test/configCases/runtime/no-runtime-per-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/runtime/opt-in-finally/webpack.config.js b/test/configCases/runtime/opt-in-finally/webpack.config.js index b98edea7f..ca77f588c 100644 --- a/test/configCases/runtime/opt-in-finally/webpack.config.js +++ b/test/configCases/runtime/opt-in-finally/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/opt-in-finally2/webpack.config.js b/test/configCases/runtime/opt-in-finally2/webpack.config.js index f8abbb886..5a7310dea 100644 --- a/test/configCases/runtime/opt-in-finally2/webpack.config.js +++ b/test/configCases/runtime/opt-in-finally2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js b/test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js index eae173211..e203772ca 100644 --- a/test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js +++ b/test/configCases/runtime/single-with-deep-entries-commonjs/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js b/test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js index d2da242a9..200a0299e 100644 --- a/test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js +++ b/test/configCases/runtime/single-with-deep-entries-commonjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/single-with-deep-entries-esm/test.config.js b/test/configCases/runtime/single-with-deep-entries-esm/test.config.js index ac00794d4..76b809e74 100644 --- a/test/configCases/runtime/single-with-deep-entries-esm/test.config.js +++ b/test/configCases/runtime/single-with-deep-entries-esm/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js b/test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js index acb96965d..e9b39ac50 100644 --- a/test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js +++ b/test/configCases/runtime/single-with-deep-entries-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/runtime/target-webworker-with-dynamic/test.config.js b/test/configCases/runtime/target-webworker-with-dynamic/test.config.js index 8022cb759..5760e2030 100644 --- a/test/configCases/runtime/target-webworker-with-dynamic/test.config.js +++ b/test/configCases/runtime/target-webworker-with-dynamic/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./main.js"]; diff --git a/test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js b/test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js index 151c8bdb9..0b3f260ea 100644 --- a/test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js +++ b/test/configCases/runtime/target-webworker-with-dynamic/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: "webworker", diff --git a/test/configCases/runtime/target-webworker/test.config.js b/test/configCases/runtime/target-webworker/test.config.js index 8022cb759..5760e2030 100644 --- a/test/configCases/runtime/target-webworker/test.config.js +++ b/test/configCases/runtime/target-webworker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./main.js"]; diff --git a/test/configCases/runtime/target-webworker/webpack.config.js b/test/configCases/runtime/target-webworker/webpack.config.js index 151c8bdb9..0b3f260ea 100644 --- a/test/configCases/runtime/target-webworker/webpack.config.js +++ b/test/configCases/runtime/target-webworker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { target: "webworker", diff --git a/test/configCases/scope-hoisting/class-naming/webpack.config.js b/test/configCases/scope-hoisting/class-naming/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/scope-hoisting/class-naming/webpack.config.js +++ b/test/configCases/scope-hoisting/class-naming/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/scope-hoisting/create-dll-plugin/test.config.js b/test/configCases/scope-hoisting/create-dll-plugin/test.config.js index 04581a810..67028ae7c 100644 --- a/test/configCases/scope-hoisting/create-dll-plugin/test.config.js +++ b/test/configCases/scope-hoisting/create-dll-plugin/test.config.js @@ -1 +1,3 @@ +"use strict"; + module.exports.noTests = true; diff --git a/test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js b/test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js index bdff16d86..6f9cdcfc0 100644 --- a/test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js +++ b/test/configCases/scope-hoisting/create-dll-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/scope-hoisting/dll-plugin/webpack.config.js b/test/configCases/scope-hoisting/dll-plugin/webpack.config.js index 29af2f143..7a6adaad6 100644 --- a/test/configCases/scope-hoisting/dll-plugin/webpack.config.js +++ b/test/configCases/scope-hoisting/dll-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/scope-hoisting/esModule/webpack.config.js b/test/configCases/scope-hoisting/esModule/webpack.config.js index 363b516ca..c7e33f096 100644 --- a/test/configCases/scope-hoisting/esModule/webpack.config.js +++ b/test/configCases/scope-hoisting/esModule/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/scope-hoisting/export-global/webpack.config.js b/test/configCases/scope-hoisting/export-global/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/scope-hoisting/export-global/webpack.config.js +++ b/test/configCases/scope-hoisting/export-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/scope-hoisting/harmony-pure-default/webpack.config.js b/test/configCases/scope-hoisting/harmony-pure-default/webpack.config.js index 7d36a68c1..5f8adbc6a 100644 --- a/test/configCases/scope-hoisting/harmony-pure-default/webpack.config.js +++ b/test/configCases/scope-hoisting/harmony-pure-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/scope-hoisting/issue-11897/webpack.config.js b/test/configCases/scope-hoisting/issue-11897/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/configCases/scope-hoisting/issue-11897/webpack.config.js +++ b/test/configCases/scope-hoisting/issue-11897/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/scope-hoisting/named-modules/webpack.config.js b/test/configCases/scope-hoisting/named-modules/webpack.config.js index 4a7373bf9..0d76e6462 100644 --- a/test/configCases/scope-hoisting/named-modules/webpack.config.js +++ b/test/configCases/scope-hoisting/named-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js b/test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js index 90dc09a7d..7a3a1f8b0 100644 --- a/test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js +++ b/test/configCases/scope-hoisting/strictThisContextOnImports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/consume-module-ignore-warnings/errors.js b/test/configCases/sharing/consume-module-ignore-warnings/errors.js index 722d5d0a4..cc8949a9c 100644 --- a/test/configCases/sharing/consume-module-ignore-warnings/errors.js +++ b/test/configCases/sharing/consume-module-ignore-warnings/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/prefix\/deep\/c/]]; diff --git a/test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js b/test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js index d148e12b7..17d84ffa6 100644 --- a/test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js +++ b/test/configCases/sharing/consume-module-ignore-warnings/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ConsumeSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/consume-module/errors.js b/test/configCases/sharing/consume-module/errors.js index 722d5d0a4..cc8949a9c 100644 --- a/test/configCases/sharing/consume-module/errors.js +++ b/test/configCases/sharing/consume-module/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/prefix\/deep\/c/]]; diff --git a/test/configCases/sharing/consume-module/webpack.config.js b/test/configCases/sharing/consume-module/webpack.config.js index 37a3c4290..5d2a1a182 100644 --- a/test/configCases/sharing/consume-module/webpack.config.js +++ b/test/configCases/sharing/consume-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ConsumeSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/consume-multiple-versions-ignore-warnings/webpack.config.js b/test/configCases/sharing/consume-multiple-versions-ignore-warnings/webpack.config.js index 59376be22..22b7a95ae 100644 --- a/test/configCases/sharing/consume-multiple-versions-ignore-warnings/webpack.config.js +++ b/test/configCases/sharing/consume-multiple-versions-ignore-warnings/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ConsumeSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/consume-multiple-versions/webpack.config.js b/test/configCases/sharing/consume-multiple-versions/webpack.config.js index 2ca3aaa9d..350ef1bee 100644 --- a/test/configCases/sharing/consume-multiple-versions/webpack.config.js +++ b/test/configCases/sharing/consume-multiple-versions/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ConsumeSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/consume-self-reference/webpack.config.js b/test/configCases/sharing/consume-self-reference/webpack.config.js index a6ece7dd9..1cafc901d 100644 --- a/test/configCases/sharing/consume-self-reference/webpack.config.js +++ b/test/configCases/sharing/consume-self-reference/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/no-override-loaded/webpack.config.js b/test/configCases/sharing/no-override-loaded/webpack.config.js index c626d7a5b..5e079c2aa 100644 --- a/test/configCases/sharing/no-override-loaded/webpack.config.js +++ b/test/configCases/sharing/no-override-loaded/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/provide-eager-module/webpack.config.js b/test/configCases/sharing/provide-eager-module/webpack.config.js index e8e02441d..ba90a4e0f 100644 --- a/test/configCases/sharing/provide-eager-module/webpack.config.js +++ b/test/configCases/sharing/provide-eager-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/sharing/provide-module/webpack.config.js b/test/configCases/sharing/provide-module/webpack.config.js index 14383b0b7..3e0e88cd1 100644 --- a/test/configCases/sharing/provide-module/webpack.config.js +++ b/test/configCases/sharing/provide-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/provide-multiple-versions/webpack.config.js b/test/configCases/sharing/provide-multiple-versions/webpack.config.js index 59fcca431..55b7c765b 100644 --- a/test/configCases/sharing/provide-multiple-versions/webpack.config.js +++ b/test/configCases/sharing/provide-multiple-versions/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/provide-shared-with-runtime-chunk/test.config.js b/test/configCases/sharing/provide-shared-with-runtime-chunk/test.config.js index 8022cb759..5760e2030 100644 --- a/test/configCases/sharing/provide-shared-with-runtime-chunk/test.config.js +++ b/test/configCases/sharing/provide-shared-with-runtime-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.js", "./main.js"]; diff --git a/test/configCases/sharing/provide-shared-with-runtime-chunk/webpack.config.js b/test/configCases/sharing/provide-shared-with-runtime-chunk/webpack.config.js index 3bd7b407f..ef2803d97 100644 --- a/test/configCases/sharing/provide-shared-with-runtime-chunk/webpack.config.js +++ b/test/configCases/sharing/provide-shared-with-runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/share-multiple-versions/webpack.config.js b/test/configCases/sharing/share-multiple-versions/webpack.config.js index a138c884c..268d3dc5d 100644 --- a/test/configCases/sharing/share-multiple-versions/webpack.config.js +++ b/test/configCases/sharing/share-multiple-versions/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/sharing/share-plugin-dual-mode/webpack.config.js b/test/configCases/sharing/share-plugin-dual-mode/webpack.config.js index 58de7a92b..870c026fd 100644 --- a/test/configCases/sharing/share-plugin-dual-mode/webpack.config.js +++ b/test/configCases/sharing/share-plugin-dual-mode/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const { SharePlugin } = require("../../../../").sharing; diff --git a/test/configCases/sharing/share-plugin-monorepo/webpack.config.js b/test/configCases/sharing/share-plugin-monorepo/webpack.config.js index 102015e98..a1ba7c3f6 100644 --- a/test/configCases/sharing/share-plugin-monorepo/webpack.config.js +++ b/test/configCases/sharing/share-plugin-monorepo/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const { SharePlugin } = require("../../../../").sharing; diff --git a/test/configCases/sharing/share-plugin/webpack.config.js b/test/configCases/sharing/share-plugin/webpack.config.js index 89ca53ad7..6ce09bc2c 100644 --- a/test/configCases/sharing/share-plugin/webpack.config.js +++ b/test/configCases/sharing/share-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/side-effects/issue-13063/test.config.js b/test/configCases/side-effects/issue-13063/test.config.js index 6f97c7a60..53b31d993 100644 --- a/test/configCases/side-effects/issue-13063/test.config.js +++ b/test/configCases/side-effects/issue-13063/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendors.js", "./tst_examples_uiform.js"]; diff --git a/test/configCases/side-effects/issue-13063/webpack.config.js b/test/configCases/side-effects/issue-13063/webpack.config.js index e0ae04966..ef172b3c1 100644 --- a/test/configCases/side-effects/issue-13063/webpack.config.js +++ b/test/configCases/side-effects/issue-13063/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { entry: { tst_examples_uiform: "./tst_examples_uiform", diff --git a/test/configCases/side-effects/side-effects-override/webpack.config.js b/test/configCases/side-effects/side-effects-override/webpack.config.js index 1f868402b..0b6d4994f 100644 --- a/test/configCases/side-effects/side-effects-override/webpack.config.js +++ b/test/configCases/side-effects/side-effects-override/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/side-effects/side-effects-unsorted-modules/webpack.config.js b/test/configCases/side-effects/side-effects-unsorted-modules/webpack.config.js index 00ea93201..62d7a93c2 100644 --- a/test/configCases/side-effects/side-effects-unsorted-modules/webpack.config.js +++ b/test/configCases/side-effects/side-effects-unsorted-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @typedef {import("../../../../").NormalModule} NormalModule */ diff --git a/test/configCases/side-effects/side-effects-values/webpack.config.js b/test/configCases/side-effects/side-effects-values/webpack.config.js index 5e498c669..5c6c362a5 100644 --- a/test/configCases/side-effects/side-effects-values/webpack.config.js +++ b/test/configCases/side-effects/side-effects-values/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/side-effects/type-reexports/webpack.config.js b/test/configCases/side-effects/type-reexports/webpack.config.js index 8769da51a..cc7eb9d82 100644 --- a/test/configCases/side-effects/type-reexports/webpack.config.js +++ b/test/configCases/side-effects/type-reexports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { output: { diff --git a/test/configCases/side-effects/url/webpack.config.js b/test/configCases/side-effects/url/webpack.config.js index 492d1b590..db05329b6 100644 --- a/test/configCases/side-effects/url/webpack.config.js +++ b/test/configCases/side-effects/url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/simple/empty-config/webpack.config.js b/test/configCases/simple/empty-config/webpack.config.js index 3583b70a3..27313115d 100644 --- a/test/configCases/simple/empty-config/webpack.config.js +++ b/test/configCases/simple/empty-config/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = {}; diff --git a/test/configCases/simple/multi-compiler-functions-export/webpack.config.js b/test/configCases/simple/multi-compiler-functions-export/webpack.config.js index 3c9411db8..f151215ea 100644 --- a/test/configCases/simple/multi-compiler-functions-export/webpack.config.js +++ b/test/configCases/simple/multi-compiler-functions-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports.default = [ function empty() { return {}; diff --git a/test/configCases/simple/multi-compiler-functions/webpack.config.js b/test/configCases/simple/multi-compiler-functions/webpack.config.js index 4885a78df..d64d68acb 100644 --- a/test/configCases/simple/multi-compiler-functions/webpack.config.js +++ b/test/configCases/simple/multi-compiler-functions/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ function empty() { diff --git a/test/configCases/simple/multi-compiler/webpack.config.js b/test/configCases/simple/multi-compiler/webpack.config.js index a309ecd2e..26c4bc003 100644 --- a/test/configCases/simple/multi-compiler/webpack.config.js +++ b/test/configCases/simple/multi-compiler/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [{}]; diff --git a/test/configCases/source-map/array-as-output-library-in-object-output/webpack.config.js b/test/configCases/source-map/array-as-output-library-in-object-output/webpack.config.js index 5adb84b32..1b42b5068 100644 --- a/test/configCases/source-map/array-as-output-library-in-object-output/webpack.config.js +++ b/test/configCases/source-map/array-as-output-library-in-object-output/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "source-map", diff --git a/test/configCases/source-map/array-as-output-library/webpack.config.js b/test/configCases/source-map/array-as-output-library/webpack.config.js index 81087b112..0833b4782 100644 --- a/test/configCases/source-map/array-as-output-library/webpack.config.js +++ b/test/configCases/source-map/array-as-output-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "source-map", diff --git a/test/configCases/source-map/context-module-source-path/webpack.config.js b/test/configCases/source-map/context-module-source-path/webpack.config.js index 9f32ea292..0399c23c3 100644 --- a/test/configCases/source-map/context-module-source-path/webpack.config.js +++ b/test/configCases/source-map/context-module-source-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { node: { __dirname: false, diff --git a/test/configCases/source-map/default-filename-extensions-css/webpack.config.js b/test/configCases/source-map/default-filename-extensions-css/webpack.config.js index 29cefe96e..4aab368d6 100644 --- a/test/configCases/source-map/default-filename-extensions-css/webpack.config.js +++ b/test/configCases/source-map/default-filename-extensions-css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MiniCssExtractPlugin = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/default-filename-extensions-js/webpack.config.js b/test/configCases/source-map/default-filename-extensions-js/webpack.config.js index 63d1ba55a..909f207d7 100644 --- a/test/configCases/source-map/default-filename-extensions-js/webpack.config.js +++ b/test/configCases/source-map/default-filename-extensions-js/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/default-filename-extensions-mjs/webpack.config.js b/test/configCases/source-map/default-filename-extensions-mjs/webpack.config.js index a4ea70713..6a493687f 100644 --- a/test/configCases/source-map/default-filename-extensions-mjs/webpack.config.js +++ b/test/configCases/source-map/default-filename-extensions-mjs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/devtool-namespace-with-eval-source-map/test.config.js b/test/configCases/source-map/devtool-namespace-with-eval-source-map/test.config.js index be2150cc6..b42f991e2 100644 --- a/test/configCases/source-map/devtool-namespace-with-eval-source-map/test.config.js +++ b/test/configCases/source-map/devtool-namespace-with-eval-source-map/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entry-a-bundle.js", "entry-b-bundle.js"]; diff --git a/test/configCases/source-map/devtool-namespace-with-eval-source-map/webpack.config.js b/test/configCases/source-map/devtool-namespace-with-eval-source-map/webpack.config.js index 0b114a625..ba9d693d8 100644 --- a/test/configCases/source-map/devtool-namespace-with-eval-source-map/webpack.config.js +++ b/test/configCases/source-map/devtool-namespace-with-eval-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/devtool-namespace-with-eval/test.config.js b/test/configCases/source-map/devtool-namespace-with-eval/test.config.js index be2150cc6..b42f991e2 100644 --- a/test/configCases/source-map/devtool-namespace-with-eval/test.config.js +++ b/test/configCases/source-map/devtool-namespace-with-eval/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entry-a-bundle.js", "entry-b-bundle.js"]; diff --git a/test/configCases/source-map/devtool-namespace-with-eval/webpack.config.js b/test/configCases/source-map/devtool-namespace-with-eval/webpack.config.js index 3f7c69737..8c7b8e253 100644 --- a/test/configCases/source-map/devtool-namespace-with-eval/webpack.config.js +++ b/test/configCases/source-map/devtool-namespace-with-eval/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/devtool-namespace-with-source-map/test.config.js b/test/configCases/source-map/devtool-namespace-with-source-map/test.config.js index be2150cc6..b42f991e2 100644 --- a/test/configCases/source-map/devtool-namespace-with-source-map/test.config.js +++ b/test/configCases/source-map/devtool-namespace-with-source-map/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["entry-a-bundle.js", "entry-b-bundle.js"]; diff --git a/test/configCases/source-map/devtool-namespace-with-source-map/webpack.config.js b/test/configCases/source-map/devtool-namespace-with-source-map/webpack.config.js index c237cc223..1502a4043 100644 --- a/test/configCases/source-map/devtool-namespace-with-source-map/webpack.config.js +++ b/test/configCases/source-map/devtool-namespace-with-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/eval-nosources-source-map/test.filter.js b/test/configCases/source-map/eval-nosources-source-map/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/source-map/eval-nosources-source-map/test.filter.js +++ b/test/configCases/source-map/eval-nosources-source-map/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/source-map/eval-nosources-source-map/webpack.config.js b/test/configCases/source-map/eval-nosources-source-map/webpack.config.js index 3319debc4..c4e951f35 100644 --- a/test/configCases/source-map/eval-nosources-source-map/webpack.config.js +++ b/test/configCases/source-map/eval-nosources-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const devtool = "eval-nosources-source-map"; /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/source-map/eval-source-map-debugids/webpack.config.js b/test/configCases/source-map/eval-source-map-debugids/webpack.config.js index 46e027864..5b1287d98 100644 --- a/test/configCases/source-map/eval-source-map-debugids/webpack.config.js +++ b/test/configCases/source-map/eval-source-map-debugids/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "eval-source-map-debugids" diff --git a/test/configCases/source-map/eval-source-map/test.filter.js b/test/configCases/source-map/eval-source-map/test.filter.js index 9486c09cf..53cf6da0c 100644 --- a/test/configCases/source-map/eval-source-map/test.filter.js +++ b/test/configCases/source-map/eval-source-map/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); module.exports = () => supportsOptionalChaining(); diff --git a/test/configCases/source-map/eval-source-map/webpack.config.js b/test/configCases/source-map/eval-source-map/webpack.config.js index 44225d67b..5264abd0b 100644 --- a/test/configCases/source-map/eval-source-map/webpack.config.js +++ b/test/configCases/source-map/eval-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const devtool = "eval-source-map"; /** @type {import("../../../../").Configuration[]} */ diff --git a/test/configCases/source-map/exclude-chunks-source-map/webpack.config.js b/test/configCases/source-map/exclude-chunks-source-map/webpack.config.js index ac7fa1276..e97e1eef4 100644 --- a/test/configCases/source-map/exclude-chunks-source-map/webpack.config.js +++ b/test/configCases/source-map/exclude-chunks-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/exclude-modules-source-map/webpack.config.js b/test/configCases/source-map/exclude-modules-source-map/webpack.config.js index 0dfd27f9f..12336684f 100644 --- a/test/configCases/source-map/exclude-modules-source-map/webpack.config.js +++ b/test/configCases/source-map/exclude-modules-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/source-map/harmony-eval-source-map/webpack.config.js b/test/configCases/source-map/harmony-eval-source-map/webpack.config.js index 568d999d5..983a751ba 100644 --- a/test/configCases/source-map/harmony-eval-source-map/webpack.config.js +++ b/test/configCases/source-map/harmony-eval-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "eval-source-map" diff --git a/test/configCases/source-map/harmony-eval/webpack.config.js b/test/configCases/source-map/harmony-eval/webpack.config.js index 4b28913b1..e6f605078 100644 --- a/test/configCases/source-map/harmony-eval/webpack.config.js +++ b/test/configCases/source-map/harmony-eval/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "eval" diff --git a/test/configCases/source-map/loader-source-map-string/webpack.config.js b/test/configCases/source-map/loader-source-map-string/webpack.config.js index 83788c09a..442503a7b 100644 --- a/test/configCases/source-map/loader-source-map-string/webpack.config.js +++ b/test/configCases/source-map/loader-source-map-string/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import('webpack').Configuration} */ const config = { devtool: "source-map", diff --git a/test/configCases/source-map/loader-source-map/webpack.config.js b/test/configCases/source-map/loader-source-map/webpack.config.js index 83788c09a..442503a7b 100644 --- a/test/configCases/source-map/loader-source-map/webpack.config.js +++ b/test/configCases/source-map/loader-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import('webpack').Configuration} */ const config = { devtool: "source-map", diff --git a/test/configCases/source-map/module-names/webpack.config.js b/test/configCases/source-map/module-names/webpack.config.js index 249cf04c4..d3036e685 100644 --- a/test/configCases/source-map/module-names/webpack.config.js +++ b/test/configCases/source-map/module-names/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/namespace-source-path-no-truncate/webpack.config.js b/test/configCases/source-map/namespace-source-path-no-truncate/webpack.config.js index e741f449e..a940ced3c 100644 --- a/test/configCases/source-map/namespace-source-path-no-truncate/webpack.config.js +++ b/test/configCases/source-map/namespace-source-path-no-truncate/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/source-map/namespace-source-path.library/webpack.config.js b/test/configCases/source-map/namespace-source-path.library/webpack.config.js index 71e95006f..2527951c4 100644 --- a/test/configCases/source-map/namespace-source-path.library/webpack.config.js +++ b/test/configCases/source-map/namespace-source-path.library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/namespace-source-path/webpack.config.js b/test/configCases/source-map/namespace-source-path/webpack.config.js index 12407607a..6897cf63f 100644 --- a/test/configCases/source-map/namespace-source-path/webpack.config.js +++ b/test/configCases/source-map/namespace-source-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/no-source-map/webpack.config.js b/test/configCases/source-map/no-source-map/webpack.config.js index 92592515c..e13df0733 100644 --- a/test/configCases/source-map/no-source-map/webpack.config.js +++ b/test/configCases/source-map/no-source-map/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").WebpackPluginFunction} WebpackPluginFunction */ /** @type {WebpackPluginFunction[]} */ diff --git a/test/configCases/source-map/nosources/webpack.config.js b/test/configCases/source-map/nosources/webpack.config.js index 3cf657210..259d880c1 100644 --- a/test/configCases/source-map/nosources/webpack.config.js +++ b/test/configCases/source-map/nosources/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/object-as-output-library/webpack.config.js b/test/configCases/source-map/object-as-output-library/webpack.config.js index 5da44457e..b9e4633e4 100644 --- a/test/configCases/source-map/object-as-output-library/webpack.config.js +++ b/test/configCases/source-map/object-as-output-library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "source-map", diff --git a/test/configCases/source-map/relative-source-map-path/webpack.config.js b/test/configCases/source-map/relative-source-map-path/webpack.config.js index ccfc9bff6..52788d981 100644 --- a/test/configCases/source-map/relative-source-map-path/webpack.config.js +++ b/test/configCases/source-map/relative-source-map-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/relative-source-maps-by-loader/webpack.config.js b/test/configCases/source-map/relative-source-maps-by-loader/webpack.config.js index c0a285cd1..f85b8736b 100644 --- a/test/configCases/source-map/relative-source-maps-by-loader/webpack.config.js +++ b/test/configCases/source-map/relative-source-maps-by-loader/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/resource-path/webpack.config.js b/test/configCases/source-map/resource-path/webpack.config.js index e68ec19f7..b63a89569 100644 --- a/test/configCases/source-map/resource-path/webpack.config.js +++ b/test/configCases/source-map/resource-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/source-map/source-map-debugids/webpack.config.js b/test/configCases/source-map/source-map-debugids/webpack.config.js index 467ccfd15..58c876953 100644 --- a/test/configCases/source-map/source-map-debugids/webpack.config.js +++ b/test/configCases/source-map/source-map-debugids/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { devtool: "source-map-debugids" diff --git a/test/configCases/source-map/source-map-filename-contenthash/webpack.config.js b/test/configCases/source-map/source-map-filename-contenthash/webpack.config.js index 09dd74b31..f5933fcd1 100644 --- a/test/configCases/source-map/source-map-filename-contenthash/webpack.config.js +++ b/test/configCases/source-map/source-map-filename-contenthash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/source-map/source-map-with-profiling-plugin/deprecations.js b/test/configCases/source-map/source-map-with-profiling-plugin/deprecations.js index dee16addc..368f9474d 100644 --- a/test/configCases/source-map/source-map-with-profiling-plugin/deprecations.js +++ b/test/configCases/source-map/source-map-with-profiling-plugin/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK/ } ]; diff --git a/test/configCases/source-map/source-map-with-profiling-plugin/test.filter.js b/test/configCases/source-map/source-map-with-profiling-plugin/test.filter.js index 1338bc1e7..f1925767d 100644 --- a/test/configCases/source-map/source-map-with-profiling-plugin/test.filter.js +++ b/test/configCases/source-map/source-map-with-profiling-plugin/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => !process.env.CI; diff --git a/test/configCases/source-map/source-map-with-profiling-plugin/webpack.config.js b/test/configCases/source-map/source-map-with-profiling-plugin/webpack.config.js index 0f0696754..a822ffdc0 100644 --- a/test/configCases/source-map/source-map-with-profiling-plugin/webpack.config.js +++ b/test/configCases/source-map/source-map-with-profiling-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const os = require("os"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/configCases/source-map/sources-array-production/webpack.config.js b/test/configCases/source-map/sources-array-production/webpack.config.js index e741f449e..a940ced3c 100644 --- a/test/configCases/source-map/sources-array-production/webpack.config.js +++ b/test/configCases/source-map/sources-array-production/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { node: { diff --git a/test/configCases/split-chunks-common/correct-order/test.config.js b/test/configCases/split-chunks-common/correct-order/test.config.js index ac3afebfc..79b9186a3 100644 --- a/test/configCases/split-chunks-common/correct-order/test.config.js +++ b/test/configCases/split-chunks-common/correct-order/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendor.js", "./main.js"]; diff --git a/test/configCases/split-chunks-common/correct-order/webpack.config.js b/test/configCases/split-chunks-common/correct-order/webpack.config.js index 65bafc0f6..d9ad06ecc 100644 --- a/test/configCases/split-chunks-common/correct-order/webpack.config.js +++ b/test/configCases/split-chunks-common/correct-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/extract-async-from-entry/test.config.js b/test/configCases/split-chunks-common/extract-async-from-entry/test.config.js index 0e721ca14..2059a3f89 100644 --- a/test/configCases/split-chunks-common/extract-async-from-entry/test.config.js +++ b/test/configCases/split-chunks-common/extract-async-from-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./main.js"]; diff --git a/test/configCases/split-chunks-common/extract-async-from-entry/webpack.config.js b/test/configCases/split-chunks-common/extract-async-from-entry/webpack.config.js index 715e35bdb..62ee5b143 100644 --- a/test/configCases/split-chunks-common/extract-async-from-entry/webpack.config.js +++ b/test/configCases/split-chunks-common/extract-async-from-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/hot-multi/test.config.js b/test/configCases/split-chunks-common/hot-multi/test.config.js index 649527115..ecc813640 100644 --- a/test/configCases/split-chunks-common/hot-multi/test.config.js +++ b/test/configCases/split-chunks-common/hot-multi/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendor.js", "./first.js", "./second.js"]; diff --git a/test/configCases/split-chunks-common/hot-multi/webpack.config.js b/test/configCases/split-chunks-common/hot-multi/webpack.config.js index ac4cfdb69..925e08b39 100644 --- a/test/configCases/split-chunks-common/hot-multi/webpack.config.js +++ b/test/configCases/split-chunks-common/hot-multi/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const HotModuleReplacementPlugin = require("../../../../").HotModuleReplacementPlugin; diff --git a/test/configCases/split-chunks-common/hot/test.config.js b/test/configCases/split-chunks-common/hot/test.config.js index ac3afebfc..79b9186a3 100644 --- a/test/configCases/split-chunks-common/hot/test.config.js +++ b/test/configCases/split-chunks-common/hot/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendor.js", "./main.js"]; diff --git a/test/configCases/split-chunks-common/hot/webpack.config.js b/test/configCases/split-chunks-common/hot/webpack.config.js index 6f9b5cc31..6b8b5e67f 100644 --- a/test/configCases/split-chunks-common/hot/webpack.config.js +++ b/test/configCases/split-chunks-common/hot/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const HotModuleReplacementPlugin = require("../../../../").HotModuleReplacementPlugin; diff --git a/test/configCases/split-chunks-common/inverted-order/test.config.js b/test/configCases/split-chunks-common/inverted-order/test.config.js index eed5873a9..5167300e8 100644 --- a/test/configCases/split-chunks-common/inverted-order/test.config.js +++ b/test/configCases/split-chunks-common/inverted-order/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./main.js", "./vendor.js"]; diff --git a/test/configCases/split-chunks-common/inverted-order/webpack.config.js b/test/configCases/split-chunks-common/inverted-order/webpack.config.js index 65bafc0f6..d9ad06ecc 100644 --- a/test/configCases/split-chunks-common/inverted-order/webpack.config.js +++ b/test/configCases/split-chunks-common/inverted-order/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/issue-12128/test.config.js b/test/configCases/split-chunks-common/issue-12128/test.config.js index 69f19523b..21126d055 100644 --- a/test/configCases/split-chunks-common/issue-12128/test.config.js +++ b/test/configCases/split-chunks-common/issue-12128/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./common.js", "./main.js", "./main2.js"]; diff --git a/test/configCases/split-chunks-common/issue-12128/webpack.config.js b/test/configCases/split-chunks-common/issue-12128/webpack.config.js index ac66bb5a9..c9eacbef5 100644 --- a/test/configCases/split-chunks-common/issue-12128/webpack.config.js +++ b/test/configCases/split-chunks-common/issue-12128/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/library/test.config.js b/test/configCases/split-chunks-common/library/test.config.js index 06e8b92c0..f00b18bc3 100644 --- a/test/configCases/split-chunks-common/library/test.config.js +++ b/test/configCases/split-chunks-common/library/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendor.js", "./main.js"]; diff --git a/test/configCases/split-chunks-common/library/webpack.config.js b/test/configCases/split-chunks-common/library/webpack.config.js index 74eda62c3..db296603d 100644 --- a/test/configCases/split-chunks-common/library/webpack.config.js +++ b/test/configCases/split-chunks-common/library/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/move-entry/test.config.js b/test/configCases/split-chunks-common/move-entry/test.config.js index 40bcfbb63..7972f85ec 100644 --- a/test/configCases/split-chunks-common/move-entry/test.config.js +++ b/test/configCases/split-chunks-common/move-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./commons.js", "./main.js"]; diff --git a/test/configCases/split-chunks-common/move-entry/webpack.config.js b/test/configCases/split-chunks-common/move-entry/webpack.config.js index 36226f722..1d3b0ab9b 100644 --- a/test/configCases/split-chunks-common/move-entry/webpack.config.js +++ b/test/configCases/split-chunks-common/move-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/move-to-grandparent/test.config.js b/test/configCases/split-chunks-common/move-to-grandparent/test.config.js index 20f79312e..5ebaeb7ab 100644 --- a/test/configCases/split-chunks-common/move-to-grandparent/test.config.js +++ b/test/configCases/split-chunks-common/move-to-grandparent/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./main.js", "./misc.js"]; diff --git a/test/configCases/split-chunks-common/move-to-grandparent/webpack.config.js b/test/configCases/split-chunks-common/move-to-grandparent/webpack.config.js index 183a1227e..43a28d161 100644 --- a/test/configCases/split-chunks-common/move-to-grandparent/webpack.config.js +++ b/test/configCases/split-chunks-common/move-to-grandparent/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/simple/test.config.js b/test/configCases/split-chunks-common/simple/test.config.js index ac3afebfc..79b9186a3 100644 --- a/test/configCases/split-chunks-common/simple/test.config.js +++ b/test/configCases/split-chunks-common/simple/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./vendor.js", "./main.js"]; diff --git a/test/configCases/split-chunks-common/simple/webpack.config.js b/test/configCases/split-chunks-common/simple/webpack.config.js index 65bafc0f6..d9ad06ecc 100644 --- a/test/configCases/split-chunks-common/simple/webpack.config.js +++ b/test/configCases/split-chunks-common/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks-common/target-node/test.config.js b/test/configCases/split-chunks-common/target-node/test.config.js index 9b06a7f2c..ce202b2d4 100644 --- a/test/configCases/split-chunks-common/target-node/test.config.js +++ b/test/configCases/split-chunks-common/target-node/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i, options) { return [`./${options.name}-main.js`]; diff --git a/test/configCases/split-chunks-common/target-node/webpack.config.js b/test/configCases/split-chunks-common/target-node/webpack.config.js index 33b27c09e..096d24296 100644 --- a/test/configCases/split-chunks-common/target-node/webpack.config.js +++ b/test/configCases/split-chunks-common/target-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/split-chunks/asnyc-entries/test.config.js b/test/configCases/split-chunks/asnyc-entries/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/split-chunks/asnyc-entries/test.config.js +++ b/test/configCases/split-chunks/asnyc-entries/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/split-chunks/asnyc-entries/test.filter.js b/test/configCases/split-chunks/asnyc-entries/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/split-chunks/asnyc-entries/test.filter.js +++ b/test/configCases/split-chunks/asnyc-entries/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/split-chunks/asnyc-entries/webpack.config.js b/test/configCases/split-chunks/asnyc-entries/webpack.config.js index aaf5279b8..668c6ba5e 100644 --- a/test/configCases/split-chunks/asnyc-entries/webpack.config.js +++ b/test/configCases/split-chunks/asnyc-entries/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { filename: "[name].js" diff --git a/test/configCases/split-chunks/chunk-filename-delimiter-default/test.config.js b/test/configCases/split-chunks/chunk-filename-delimiter-default/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/split-chunks/chunk-filename-delimiter-default/test.config.js +++ b/test/configCases/split-chunks/chunk-filename-delimiter-default/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/split-chunks/chunk-filename-delimiter-default/webpack.config.js b/test/configCases/split-chunks/chunk-filename-delimiter-default/webpack.config.js index 5dbdb6409..356fd782f 100644 --- a/test/configCases/split-chunks/chunk-filename-delimiter-default/webpack.config.js +++ b/test/configCases/split-chunks/chunk-filename-delimiter-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/split-chunks/chunk-filename-delimiter/test.config.js b/test/configCases/split-chunks/chunk-filename-delimiter/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/split-chunks/chunk-filename-delimiter/test.config.js +++ b/test/configCases/split-chunks/chunk-filename-delimiter/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/split-chunks/chunk-filename-delimiter/webpack.config.js b/test/configCases/split-chunks/chunk-filename-delimiter/webpack.config.js index e28f3cb63..d346ec803 100644 --- a/test/configCases/split-chunks/chunk-filename-delimiter/webpack.config.js +++ b/test/configCases/split-chunks/chunk-filename-delimiter/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/split-chunks/custom-filename-function/test.config.js b/test/configCases/split-chunks/custom-filename-function/test.config.js index 4ca166970..7b6bf1749 100644 --- a/test/configCases/split-chunks/custom-filename-function/test.config.js +++ b/test/configCases/split-chunks/custom-filename-function/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js"]; diff --git a/test/configCases/split-chunks/custom-filename-function/webpack.config.js b/test/configCases/split-chunks/custom-filename-function/webpack.config.js index e83ba6c82..11448210b 100644 --- a/test/configCases/split-chunks/custom-filename-function/webpack.config.js +++ b/test/configCases/split-chunks/custom-filename-function/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Chunk} Chunk */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/custom-filename-many-custom/test.config.js b/test/configCases/split-chunks/custom-filename-many-custom/test.config.js index 4ca166970..7b6bf1749 100644 --- a/test/configCases/split-chunks/custom-filename-many-custom/test.config.js +++ b/test/configCases/split-chunks/custom-filename-many-custom/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js"]; diff --git a/test/configCases/split-chunks/custom-filename-many-custom/webpack.config.js b/test/configCases/split-chunks/custom-filename-many-custom/webpack.config.js index 46accefd6..f6e6d9819 100644 --- a/test/configCases/split-chunks/custom-filename-many-custom/webpack.config.js +++ b/test/configCases/split-chunks/custom-filename-many-custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/custom-filename/test.config.js b/test/configCases/split-chunks/custom-filename/test.config.js index 4ca166970..7b6bf1749 100644 --- a/test/configCases/split-chunks/custom-filename/test.config.js +++ b/test/configCases/split-chunks/custom-filename/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js"]; diff --git a/test/configCases/split-chunks/custom-filename/webpack.config.js b/test/configCases/split-chunks/custom-filename/webpack.config.js index 46accefd6..f6e6d9819 100644 --- a/test/configCases/split-chunks/custom-filename/webpack.config.js +++ b/test/configCases/split-chunks/custom-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/entry-point-error/errors.js b/test/configCases/split-chunks/entry-point-error/errors.js index f8d7dc2e3..05b662b40 100644 --- a/test/configCases/split-chunks/entry-point-error/errors.js +++ b/test/configCases/split-chunks/entry-point-error/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/SplitChunksPlugin/, /Both have the same name "vendors"/]]; diff --git a/test/configCases/split-chunks/entry-point-error/test.config.js b/test/configCases/split-chunks/entry-point-error/test.config.js index fa1cdb2fc..b1060682b 100644 --- a/test/configCases/split-chunks/entry-point-error/test.config.js +++ b/test/configCases/split-chunks/entry-point-error/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["vendors.js", "main.js"]; diff --git a/test/configCases/split-chunks/entry-point-error/webpack.config.js b/test/configCases/split-chunks/entry-point-error/webpack.config.js index d7a3de190..50d91f652 100644 --- a/test/configCases/split-chunks/entry-point-error/webpack.config.js +++ b/test/configCases/split-chunks/entry-point-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js b/test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js index 5704fc5c5..c6f577ffa 100644 --- a/test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js +++ b/test/configCases/split-chunks/incorrect-chunk-reuse/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/issue-11337/webpack.config.js b/test/configCases/split-chunks/issue-11337/webpack.config.js index c892fa337..3f4592ee4 100644 --- a/test/configCases/split-chunks/issue-11337/webpack.config.js +++ b/test/configCases/split-chunks/issue-11337/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/configCases/split-chunks/issue-11513/test.config.js b/test/configCases/split-chunks/issue-11513/test.config.js index aab02d48e..82757a4ba 100644 --- a/test/configCases/split-chunks/issue-11513/test.config.js +++ b/test/configCases/split-chunks/issue-11513/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["test.js", "main.js"]; diff --git a/test/configCases/split-chunks/issue-11513/webpack.config.js b/test/configCases/split-chunks/issue-11513/webpack.config.js index 3ed14c215..2c2766ad2 100644 --- a/test/configCases/split-chunks/issue-11513/webpack.config.js +++ b/test/configCases/split-chunks/issue-11513/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/configCases/split-chunks/issue-12307/webpack.config.js b/test/configCases/split-chunks/issue-12307/webpack.config.js index 9b3b9ad5d..508b7db2a 100644 --- a/test/configCases/split-chunks/issue-12307/webpack.config.js +++ b/test/configCases/split-chunks/issue-12307/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/issue-17332/test.config.js b/test/configCases/split-chunks/issue-17332/test.config.js index 1a6234f5e..98b0b2444 100644 --- a/test/configCases/split-chunks/issue-17332/test.config.js +++ b/test/configCases/split-chunks/issue-17332/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["split-foo.js", "foo.js", "main.js"]; diff --git a/test/configCases/split-chunks/issue-17332/webpack.config.js b/test/configCases/split-chunks/issue-17332/webpack.config.js index 7039d77ad..9b5dc16d3 100644 --- a/test/configCases/split-chunks/issue-17332/webpack.config.js +++ b/test/configCases/split-chunks/issue-17332/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/configCases/split-chunks/issue-8908/test.config.js b/test/configCases/split-chunks/issue-8908/test.config.js index 7948c3fe7..287196fe5 100644 --- a/test/configCases/split-chunks/issue-8908/test.config.js +++ b/test/configCases/split-chunks/issue-8908/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.js", "vendor-a.js", "a.js"]; diff --git a/test/configCases/split-chunks/issue-8908/webpack.config.js b/test/configCases/split-chunks/issue-8908/webpack.config.js index c7307692c..358600374 100644 --- a/test/configCases/split-chunks/issue-8908/webpack.config.js +++ b/test/configCases/split-chunks/issue-8908/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/issue-9491/test.config.js b/test/configCases/split-chunks/issue-9491/test.config.js index 823968a3f..6a7fc8a6b 100644 --- a/test/configCases/split-chunks/issue-9491/test.config.js +++ b/test/configCases/split-chunks/issue-9491/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.js", "constructor.js"]; diff --git a/test/configCases/split-chunks/issue-9491/webpack.config.js b/test/configCases/split-chunks/issue-9491/webpack.config.js index bfced90ac..5df22bbef 100644 --- a/test/configCases/split-chunks/issue-9491/webpack.config.js +++ b/test/configCases/split-chunks/issue-9491/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/max-size-casing/test.config.js b/test/configCases/split-chunks/max-size-casing/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/split-chunks/max-size-casing/test.config.js +++ b/test/configCases/split-chunks/max-size-casing/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/split-chunks/max-size-casing/webpack.config.js b/test/configCases/split-chunks/max-size-casing/webpack.config.js index beebf1574..edb6ccc2a 100644 --- a/test/configCases/split-chunks/max-size-casing/webpack.config.js +++ b/test/configCases/split-chunks/max-size-casing/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/split-chunks/module-type-filter/test.config.js b/test/configCases/split-chunks/module-type-filter/test.config.js index 5e6f0eb36..7c55f9f82 100644 --- a/test/configCases/split-chunks/module-type-filter/test.config.js +++ b/test/configCases/split-chunks/module-type-filter/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["json.js", "main.js"]; diff --git a/test/configCases/split-chunks/module-type-filter/webpack.config.js b/test/configCases/split-chunks/module-type-filter/webpack.config.js index 3b2df399f..76c3a3df2 100644 --- a/test/configCases/split-chunks/module-type-filter/webpack.config.js +++ b/test/configCases/split-chunks/module-type-filter/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/move-to-entrypoint/test.config.js b/test/configCases/split-chunks/move-to-entrypoint/test.config.js index 97e8d085f..45d8ad568 100644 --- a/test/configCases/split-chunks/move-to-entrypoint/test.config.js +++ b/test/configCases/split-chunks/move-to-entrypoint/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.js", "a.js", "b.js"]; diff --git a/test/configCases/split-chunks/move-to-entrypoint/webpack.config.js b/test/configCases/split-chunks/move-to-entrypoint/webpack.config.js index 01a9cfcd6..7c83b7a80 100644 --- a/test/configCases/split-chunks/move-to-entrypoint/webpack.config.js +++ b/test/configCases/split-chunks/move-to-entrypoint/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/no-name/test.config.js b/test/configCases/split-chunks/no-name/test.config.js index 859a3d0a5..23c2b10be 100644 --- a/test/configCases/split-chunks/no-name/test.config.js +++ b/test/configCases/split-chunks/no-name/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["common-a_js.js", "main.js"]; diff --git a/test/configCases/split-chunks/no-name/webpack.config.js b/test/configCases/split-chunks/no-name/webpack.config.js index 2318b4ee7..fc2bb0b1d 100644 --- a/test/configCases/split-chunks/no-name/webpack.config.js +++ b/test/configCases/split-chunks/no-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/split-chunks/no-options/test.config.js b/test/configCases/split-chunks/no-options/test.config.js index 5875983aa..740103470 100644 --- a/test/configCases/split-chunks/no-options/test.config.js +++ b/test/configCases/split-chunks/no-options/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["vendor.js", "main.js"]; diff --git a/test/configCases/split-chunks/no-options/webpack.config.js b/test/configCases/split-chunks/no-options/webpack.config.js index 2fec23d7f..3fa31b812 100644 --- a/test/configCases/split-chunks/no-options/webpack.config.js +++ b/test/configCases/split-chunks/no-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SplitChunksPlugin } = require("../../../../").optimize; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/reuse-chunk-name/test.config.js b/test/configCases/split-chunks/reuse-chunk-name/test.config.js index dc9c0aae5..80cfc5a7a 100644 --- a/test/configCases/split-chunks/reuse-chunk-name/test.config.js +++ b/test/configCases/split-chunks/reuse-chunk-name/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["common.js", "main.js"]; diff --git a/test/configCases/split-chunks/reuse-chunk-name/webpack.config.js b/test/configCases/split-chunks/reuse-chunk-name/webpack.config.js index a31736a39..a2cd92846 100644 --- a/test/configCases/split-chunks/reuse-chunk-name/webpack.config.js +++ b/test/configCases/split-chunks/reuse-chunk-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/split-chunks/runtime-chunk-async-node/test.config.js b/test/configCases/split-chunks/runtime-chunk-async-node/test.config.js index 1b0256ddd..c99b0ddac 100644 --- a/test/configCases/split-chunks/runtime-chunk-async-node/test.config.js +++ b/test/configCases/split-chunks/runtime-chunk-async-node/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["b.js", "deep/path/a.js", "somewhere/c.js"]; diff --git a/test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js b/test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js index a023f1b45..da937dcc6 100644 --- a/test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js +++ b/test/configCases/split-chunks/runtime-chunk-async-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/runtime-chunk-no-async/test.config.js b/test/configCases/split-chunks/runtime-chunk-no-async/test.config.js index c19bed736..bf34849b5 100644 --- a/test/configCases/split-chunks/runtime-chunk-no-async/test.config.js +++ b/test/configCases/split-chunks/runtime-chunk-no-async/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); module.exports = { diff --git a/test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js b/test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js index b8fb043d7..fbcd11a3b 100644 --- a/test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js +++ b/test/configCases/split-chunks/runtime-chunk-no-async/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/split-chunks/runtime-chunk-node-13130/test.config.js b/test/configCases/split-chunks/runtime-chunk-node-13130/test.config.js index 1b0256ddd..c99b0ddac 100644 --- a/test/configCases/split-chunks/runtime-chunk-node-13130/test.config.js +++ b/test/configCases/split-chunks/runtime-chunk-node-13130/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["b.js", "deep/path/a.js", "somewhere/c.js"]; diff --git a/test/configCases/split-chunks/runtime-chunk-node-13130/webpack.config.js b/test/configCases/split-chunks/runtime-chunk-node-13130/webpack.config.js index d3650f3f1..2fa8e6107 100644 --- a/test/configCases/split-chunks/runtime-chunk-node-13130/webpack.config.js +++ b/test/configCases/split-chunks/runtime-chunk-node-13130/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/runtime-chunk-node/test.config.js b/test/configCases/split-chunks/runtime-chunk-node/test.config.js index 1b0256ddd..c99b0ddac 100644 --- a/test/configCases/split-chunks/runtime-chunk-node/test.config.js +++ b/test/configCases/split-chunks/runtime-chunk-node/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["b.js", "deep/path/a.js", "somewhere/c.js"]; diff --git a/test/configCases/split-chunks/runtime-chunk-node/webpack.config.js b/test/configCases/split-chunks/runtime-chunk-node/webpack.config.js index 93007b2e5..5f75bbac8 100644 --- a/test/configCases/split-chunks/runtime-chunk-node/webpack.config.js +++ b/test/configCases/split-chunks/runtime-chunk-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/runtime-chunk/test.config.js b/test/configCases/split-chunks/runtime-chunk/test.config.js index cdc9dd1d4..8304525e2 100644 --- a/test/configCases/split-chunks/runtime-chunk/test.config.js +++ b/test/configCases/split-chunks/runtime-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime.js", "a.js"]; diff --git a/test/configCases/split-chunks/runtime-chunk/webpack.config.js b/test/configCases/split-chunks/runtime-chunk/webpack.config.js index 180a47ff5..48a4f907b 100644 --- a/test/configCases/split-chunks/runtime-chunk/webpack.config.js +++ b/test/configCases/split-chunks/runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/split-chunks/vendor-only-entrypoint/test.config.js b/test/configCases/split-chunks/vendor-only-entrypoint/test.config.js index f80a9c6f5..b29bc722d 100644 --- a/test/configCases/split-chunks/vendor-only-entrypoint/test.config.js +++ b/test/configCases/split-chunks/vendor-only-entrypoint/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["runtime~vendor.js", "vendor.js"]; diff --git a/test/configCases/split-chunks/vendor-only-entrypoint/webpack.config.js b/test/configCases/split-chunks/vendor-only-entrypoint/webpack.config.js index 8a122bd6d..6d569a005 100644 --- a/test/configCases/split-chunks/vendor-only-entrypoint/webpack.config.js +++ b/test/configCases/split-chunks/vendor-only-entrypoint/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/target/amd-container-named/webpack.config.js b/test/configCases/target/amd-container-named/webpack.config.js index a77d26e86..2df6e0e13 100644 --- a/test/configCases/target/amd-container-named/webpack.config.js +++ b/test/configCases/target/amd-container-named/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/target/amd-container-require/webpack.config.js b/test/configCases/target/amd-container-require/webpack.config.js index 74ea04edd..9856dc84f 100644 --- a/test/configCases/target/amd-container-require/webpack.config.js +++ b/test/configCases/target/amd-container-require/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/target/amd-container-unnamed/webpack.config.js b/test/configCases/target/amd-container-unnamed/webpack.config.js index 6a9b47fc5..fb2fad70d 100644 --- a/test/configCases/target/amd-container-unnamed/webpack.config.js +++ b/test/configCases/target/amd-container-unnamed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../types").Configuration} */ diff --git a/test/configCases/target/amd-named/webpack.config.js b/test/configCases/target/amd-named/webpack.config.js index 5f67e2927..9d820b7ad 100644 --- a/test/configCases/target/amd-named/webpack.config.js +++ b/test/configCases/target/amd-named/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/target/amd-require/webpack.config.js b/test/configCases/target/amd-require/webpack.config.js index 968ab6b0b..6ccf82b81 100644 --- a/test/configCases/target/amd-require/webpack.config.js +++ b/test/configCases/target/amd-require/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/target/amd-unnamed/webpack.config.js b/test/configCases/target/amd-unnamed/webpack.config.js index 0569a4488..030b23e6b 100644 --- a/test/configCases/target/amd-unnamed/webpack.config.js +++ b/test/configCases/target/amd-unnamed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/target/chunk-loading-per-entry/test.config.js b/test/configCases/target/chunk-loading-per-entry/test.config.js index 643395505..03621266a 100644 --- a/test/configCases/target/chunk-loading-per-entry/test.config.js +++ b/test/configCases/target/chunk-loading-per-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { return i === 0 ? "./web-0.js" : "./webworker-1.js"; diff --git a/test/configCases/target/chunk-loading-per-entry/webpack.config.js b/test/configCases/target/chunk-loading-per-entry/webpack.config.js index f60246ed5..9335030d0 100644 --- a/test/configCases/target/chunk-loading-per-entry/webpack.config.js +++ b/test/configCases/target/chunk-loading-per-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ const base = { entry: { diff --git a/test/configCases/target/electron-renderer/webpack.config.js b/test/configCases/target/electron-renderer/webpack.config.js index e7d1ecf5c..f07409cdb 100644 --- a/test/configCases/target/electron-renderer/webpack.config.js +++ b/test/configCases/target/electron-renderer/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "electron-renderer", diff --git a/test/configCases/target/node-dynamic-import/test.filter.js b/test/configCases/target/node-dynamic-import/test.filter.js index 356ad462e..59f3f281b 100644 --- a/test/configCases/target/node-dynamic-import/test.filter.js +++ b/test/configCases/target/node-dynamic-import/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsArrowFn = require("../../../helpers/supportsArrowFunctionExpression"); module.exports = () => supportsArrowFn(); diff --git a/test/configCases/target/node-dynamic-import/webpack.config.js b/test/configCases/target/node-dynamic-import/webpack.config.js index 411eb1af1..bf47c842f 100644 --- a/test/configCases/target/node-dynamic-import/webpack.config.js +++ b/test/configCases/target/node-dynamic-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node", diff --git a/test/configCases/target/strict-mode-global/webpack.config.js b/test/configCases/target/strict-mode-global/webpack.config.js index 03c779ee0..5717dd931 100644 --- a/test/configCases/target/strict-mode-global/webpack.config.js +++ b/test/configCases/target/strict-mode-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web" diff --git a/test/configCases/target/system-context/test.config.js b/test/configCases/target/system-context/test.config.js index 97ebf538d..781df45dd 100644 --- a/test/configCases/target/system-context/test.config.js +++ b/test/configCases/target/system-context/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/target/system-context/webpack.config.js b/test/configCases/target/system-context/webpack.config.js index 9c9c85fe0..61bcd04b0 100644 --- a/test/configCases/target/system-context/webpack.config.js +++ b/test/configCases/target/system-context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/system-export/test.config.js b/test/configCases/target/system-export/test.config.js index 97ebf538d..781df45dd 100644 --- a/test/configCases/target/system-export/test.config.js +++ b/test/configCases/target/system-export/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/target/system-export/webpack.config.js b/test/configCases/target/system-export/webpack.config.js index 2d1a8001f..e4a456e8d 100644 --- a/test/configCases/target/system-export/webpack.config.js +++ b/test/configCases/target/system-export/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/system-named-assets-path/test.config.js b/test/configCases/target/system-named-assets-path/test.config.js index ad31a215d..04cef0a88 100644 --- a/test/configCases/target/system-named-assets-path/test.config.js +++ b/test/configCases/target/system-named-assets-path/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/target/system-named-assets-path/webpack.config.js b/test/configCases/target/system-named-assets-path/webpack.config.js index 4dc791678..05a61a677 100644 --- a/test/configCases/target/system-named-assets-path/webpack.config.js +++ b/test/configCases/target/system-named-assets-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/system-named/test.config.js b/test/configCases/target/system-named/test.config.js index 8b3f83a51..da2dedea7 100644 --- a/test/configCases/target/system-named/test.config.js +++ b/test/configCases/target/system-named/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/target/system-named/webpack.config.js b/test/configCases/target/system-named/webpack.config.js index fef28f250..7f84c7050 100644 --- a/test/configCases/target/system-named/webpack.config.js +++ b/test/configCases/target/system-named/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/system-unnamed/test.config.js b/test/configCases/target/system-unnamed/test.config.js index 97ebf538d..781df45dd 100644 --- a/test/configCases/target/system-unnamed/test.config.js +++ b/test/configCases/target/system-unnamed/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const System = require("../../../helpers/fakeSystem"); module.exports = { diff --git a/test/configCases/target/system-unnamed/webpack.config.js b/test/configCases/target/system-unnamed/webpack.config.js index 2d1a8001f..e4a456e8d 100644 --- a/test/configCases/target/system-unnamed/webpack.config.js +++ b/test/configCases/target/system-unnamed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/umd-auxiliary-comments-object/webpack.config.js b/test/configCases/target/umd-auxiliary-comments-object/webpack.config.js index 43147101b..00bbe8ba9 100644 --- a/test/configCases/target/umd-auxiliary-comments-object/webpack.config.js +++ b/test/configCases/target/umd-auxiliary-comments-object/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/umd-auxiliary-comments-string/webpack.config.js b/test/configCases/target/umd-auxiliary-comments-string/webpack.config.js index 739c67f4f..96619f0a8 100644 --- a/test/configCases/target/umd-auxiliary-comments-string/webpack.config.js +++ b/test/configCases/target/umd-auxiliary-comments-string/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/umd-named-define/webpack.config.js b/test/configCases/target/umd-named-define/webpack.config.js index bfe025995..aa4f0b8d7 100644 --- a/test/configCases/target/umd-named-define/webpack.config.js +++ b/test/configCases/target/umd-named-define/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/target/universal/test.config.js b/test/configCases/target/universal/test.config.js index e2664c9b2..ed5826c53 100644 --- a/test/configCases/target/universal/test.config.js +++ b/test/configCases/target/universal/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["./runtime.mjs", "./separate.mjs", "./main.mjs"]; diff --git a/test/configCases/target/universal/webpack.config.js b/test/configCases/target/universal/webpack.config.js index 386112ee0..475abca5d 100644 --- a/test/configCases/target/universal/webpack.config.js +++ b/test/configCases/target/universal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/trusted-types/continue-on-policy-creation-failure/webpack.config.js b/test/configCases/trusted-types/continue-on-policy-creation-failure/webpack.config.js index df698de66..39302e8a5 100644 --- a/test/configCases/trusted-types/continue-on-policy-creation-failure/webpack.config.js +++ b/test/configCases/trusted-types/continue-on-policy-creation-failure/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/custom-policy-name/webpack.config.js b/test/configCases/trusted-types/custom-policy-name/webpack.config.js index bd52bcc38..116a46e4e 100644 --- a/test/configCases/trusted-types/custom-policy-name/webpack.config.js +++ b/test/configCases/trusted-types/custom-policy-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/default-policy-name/webpack.config.js b/test/configCases/trusted-types/default-policy-name/webpack.config.js index 21395fcf3..be9c4677b 100644 --- a/test/configCases/trusted-types/default-policy-name/webpack.config.js +++ b/test/configCases/trusted-types/default-policy-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/devtool-eval/webpack.config.js b/test/configCases/trusted-types/devtool-eval/webpack.config.js index 1356571fd..fe9b26782 100644 --- a/test/configCases/trusted-types/devtool-eval/webpack.config.js +++ b/test/configCases/trusted-types/devtool-eval/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/trusted-types/no-policy-name/webpack.config.js b/test/configCases/trusted-types/no-policy-name/webpack.config.js index 68eeb96a5..52762a7ea 100644 --- a/test/configCases/trusted-types/no-policy-name/webpack.config.js +++ b/test/configCases/trusted-types/no-policy-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/no-trusted-types/webpack.config.js b/test/configCases/trusted-types/no-trusted-types/webpack.config.js index 21395fcf3..be9c4677b 100644 --- a/test/configCases/trusted-types/no-trusted-types/webpack.config.js +++ b/test/configCases/trusted-types/no-trusted-types/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/stop-on-policy-creation-failure/webpack.config.js b/test/configCases/trusted-types/stop-on-policy-creation-failure/webpack.config.js index 21395fcf3..be9c4677b 100644 --- a/test/configCases/trusted-types/stop-on-policy-creation-failure/webpack.config.js +++ b/test/configCases/trusted-types/stop-on-policy-creation-failure/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { target: "web", output: { diff --git a/test/configCases/trusted-types/web-worker/test.config.js b/test/configCases/trusted-types/web-worker/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/trusted-types/web-worker/test.config.js +++ b/test/configCases/trusted-types/web-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/trusted-types/web-worker/test.filter.js b/test/configCases/trusted-types/web-worker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/trusted-types/web-worker/test.filter.js +++ b/test/configCases/trusted-types/web-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/trusted-types/web-worker/webpack.config.js b/test/configCases/trusted-types/web-worker/webpack.config.js index 1b611149a..7fff149a0 100644 --- a/test/configCases/trusted-types/web-worker/webpack.config.js +++ b/test/configCases/trusted-types/web-worker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { filename: "[name].js", diff --git a/test/configCases/types/filesystems/test.filter.js b/test/configCases/types/filesystems/test.filter.js index 0ba647102..549d112c2 100644 --- a/test/configCases/types/filesystems/test.filter.js +++ b/test/configCases/types/filesystems/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = () => false; diff --git a/test/configCases/types/filesystems/webpack.config.js b/test/configCases/types/filesystems/webpack.config.js index db6a5706d..b525ea8a6 100644 --- a/test/configCases/types/filesystems/webpack.config.js +++ b/test/configCases/types/filesystems/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const memfs = require("memfs"); diff --git a/test/configCases/umd/issue-15545/test.config.js b/test/configCases/umd/issue-15545/test.config.js index 678748077..d408b899e 100644 --- a/test/configCases/umd/issue-15545/test.config.js +++ b/test/configCases/umd/issue-15545/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const CONTEXT = {}; module.exports = { diff --git a/test/configCases/umd/issue-15545/webpack.config.js b/test/configCases/umd/issue-15545/webpack.config.js index 73b1025f8..c06ebb726 100644 --- a/test/configCases/umd/issue-15545/webpack.config.js +++ b/test/configCases/umd/issue-15545/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/configCases/url/context-options/webpack.config.js b/test/configCases/url/context-options/webpack.config.js index 9546ca838..b5bb19a14 100644 --- a/test/configCases/url/context-options/webpack.config.js +++ b/test/configCases/url/context-options/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/url/disable-dynamic-url/webpack.config.js b/test/configCases/url/disable-dynamic-url/webpack.config.js index 3a33d13dd..e0915b5cb 100644 --- a/test/configCases/url/disable-dynamic-url/webpack.config.js +++ b/test/configCases/url/disable-dynamic-url/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/url/dynamic-template-literals-expr/webpack.config.js b/test/configCases/url/dynamic-template-literals-expr/webpack.config.js index 142bed85d..401da64e3 100644 --- a/test/configCases/url/dynamic-template-literals-expr/webpack.config.js +++ b/test/configCases/url/dynamic-template-literals-expr/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/url/pure-dep/webpack.config.js b/test/configCases/url/pure-dep/webpack.config.js index 3a5dfd52b..f30981f54 100644 --- a/test/configCases/url/pure-dep/webpack.config.js +++ b/test/configCases/url/pure-dep/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/utils/lazy-set/webpack.config.js b/test/configCases/utils/lazy-set/webpack.config.js index e438873ed..dc7c87f72 100644 --- a/test/configCases/utils/lazy-set/webpack.config.js +++ b/test/configCases/utils/lazy-set/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { plugins: [ diff --git a/test/configCases/wasm/async-node/test.filter.js b/test/configCases/wasm/async-node/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/wasm/async-node/test.filter.js +++ b/test/configCases/wasm/async-node/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/wasm/async-node/webpack.config.js b/test/configCases/wasm/async-node/webpack.config.js index f90f325e1..3b08ee1e1 100644 --- a/test/configCases/wasm/async-node/webpack.config.js +++ b/test/configCases/wasm/async-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/wasm/bigints/test.filter.js b/test/configCases/wasm/bigints/test.filter.js index d8c4a29ca..59937a91d 100644 --- a/test/configCases/wasm/bigints/test.filter.js +++ b/test/configCases/wasm/bigints/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supports = require("webassembly-feature"); module.exports = () => diff --git a/test/configCases/wasm/bigints/webpack.config.js b/test/configCases/wasm/bigints/webpack.config.js index 63567a475..a578692c0 100644 --- a/test/configCases/wasm/bigints/webpack.config.js +++ b/test/configCases/wasm/bigints/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/configCases/wasm/export-imported-global/test.filter.js b/test/configCases/wasm/export-imported-global/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/wasm/export-imported-global/test.filter.js +++ b/test/configCases/wasm/export-imported-global/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/wasm/export-imported-global/webpack.config.js b/test/configCases/wasm/export-imported-global/webpack.config.js index 63567a475..a578692c0 100644 --- a/test/configCases/wasm/export-imported-global/webpack.config.js +++ b/test/configCases/wasm/export-imported-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/configCases/wasm/externref/test.filter.js b/test/configCases/wasm/externref/test.filter.js index 7eef22e21..0812b507e 100644 --- a/test/configCases/wasm/externref/test.filter.js +++ b/test/configCases/wasm/externref/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => { diff --git a/test/configCases/wasm/externref/webpack.config.js b/test/configCases/wasm/externref/webpack.config.js index 2a5755987..89408d007 100644 --- a/test/configCases/wasm/externref/webpack.config.js +++ b/test/configCases/wasm/externref/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/wasm/fetch/test.config.js b/test/configCases/wasm/fetch/test.config.js index 68d0c25fc..443050989 100644 --- a/test/configCases/wasm/fetch/test.config.js +++ b/test/configCases/wasm/fetch/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const url = require("url"); diff --git a/test/configCases/wasm/fetch/test.filter.js b/test/configCases/wasm/fetch/test.filter.js index 2c96b54d2..b8be1af9c 100644 --- a/test/configCases/wasm/fetch/test.filter.js +++ b/test/configCases/wasm/fetch/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsResponse = require("../../../helpers/supportsResponse"); const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); diff --git a/test/configCases/wasm/fetch/webpack.config.js b/test/configCases/wasm/fetch/webpack.config.js index 43ae72b2a..136ef9e10 100644 --- a/test/configCases/wasm/fetch/webpack.config.js +++ b/test/configCases/wasm/fetch/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/wasm/identical/test.filter.js b/test/configCases/wasm/identical/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/wasm/identical/test.filter.js +++ b/test/configCases/wasm/identical/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/wasm/identical/webpack.config.js b/test/configCases/wasm/identical/webpack.config.js index a897d4f82..8042a8da6 100644 --- a/test/configCases/wasm/identical/webpack.config.js +++ b/test/configCases/wasm/identical/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { CachedSource } = require("webpack-sources"); const { AsyncWebAssemblyModulesPlugin } = require("../../../../").wasm; diff --git a/test/configCases/wasm/import-wasm-wasm/test.filter.js b/test/configCases/wasm/import-wasm-wasm/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/wasm/import-wasm-wasm/test.filter.js +++ b/test/configCases/wasm/import-wasm-wasm/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/wasm/import-wasm-wasm/webpack.config.js b/test/configCases/wasm/import-wasm-wasm/webpack.config.js index 63567a475..a578692c0 100644 --- a/test/configCases/wasm/import-wasm-wasm/webpack.config.js +++ b/test/configCases/wasm/import-wasm-wasm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/configCases/wasm/missing-wasm-experiment/errors.js b/test/configCases/wasm/missing-wasm-experiment/errors.js index 42b03522a..88e0c9cd8 100644 --- a/test/configCases/wasm/missing-wasm-experiment/errors.js +++ b/test/configCases/wasm/missing-wasm-experiment/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/BREAKING CHANGE/, /experiments\.asyncWebAssembly/]]; diff --git a/test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js b/test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js index e729fa651..e52440c52 100644 --- a/test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js +++ b/test/configCases/wasm/missing-wasm-experiment/infrastructure-log.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /^Pack got invalid because of write to: Compilation\/modules.+wasm.wasm$/ ]; diff --git a/test/configCases/wasm/missing-wasm-experiment/webpack.config.js b/test/configCases/wasm/missing-wasm-experiment/webpack.config.js index 3583b70a3..27313115d 100644 --- a/test/configCases/wasm/missing-wasm-experiment/webpack.config.js +++ b/test/configCases/wasm/missing-wasm-experiment/webpack.config.js @@ -1,2 +1,4 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = {}; diff --git a/test/configCases/wasm/reference-types/test.filter.js b/test/configCases/wasm/reference-types/test.filter.js index 7eef22e21..0812b507e 100644 --- a/test/configCases/wasm/reference-types/test.filter.js +++ b/test/configCases/wasm/reference-types/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => { diff --git a/test/configCases/wasm/reference-types/webpack.config.js b/test/configCases/wasm/reference-types/webpack.config.js index 2a5755987..89408d007 100644 --- a/test/configCases/wasm/reference-types/webpack.config.js +++ b/test/configCases/wasm/reference-types/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").Compiler} Compiler */ /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/wasm/universal/test.config.js b/test/configCases/wasm/universal/test.config.js index c8746aca8..1d22a7c2a 100644 --- a/test/configCases/wasm/universal/test.config.js +++ b/test/configCases/wasm/universal/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const url = require("url"); diff --git a/test/configCases/wasm/universal/test.filter.js b/test/configCases/wasm/universal/test.filter.js index 2c96b54d2..b8be1af9c 100644 --- a/test/configCases/wasm/universal/test.filter.js +++ b/test/configCases/wasm/universal/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsResponse = require("../../../helpers/supportsResponse"); const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); diff --git a/test/configCases/wasm/universal/webpack.config.js b/test/configCases/wasm/universal/webpack.config.js index 5cea60cf5..fec0530fd 100644 --- a/test/configCases/wasm/universal/webpack.config.js +++ b/test/configCases/wasm/universal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/wasm/wasm-in-initial-chunk-error/errors.js b/test/configCases/wasm/wasm-in-initial-chunk-error/errors.js index 1a501f850..956d7e60c 100644 --- a/test/configCases/wasm/wasm-in-initial-chunk-error/errors.js +++ b/test/configCases/wasm/wasm-in-initial-chunk-error/errors.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [ /\.\/wasm.wat/, diff --git a/test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js b/test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js +++ b/test/configCases/wasm/wasm-in-initial-chunk-error/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js b/test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js index 47355aa66..9a207092f 100644 --- a/test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js +++ b/test/configCases/wasm/wasm-in-initial-chunk-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index", diff --git a/test/configCases/web/attach-existing/webpack.config.js b/test/configCases/web/attach-existing/webpack.config.js index 102ef6e7f..7ef0279ef 100644 --- a/test/configCases/web/attach-existing/webpack.config.js +++ b/test/configCases/web/attach-existing/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/fetch-priority-2/webpack.config.js b/test/configCases/web/fetch-priority-2/webpack.config.js index df7784102..5dead05ba 100644 --- a/test/configCases/web/fetch-priority-2/webpack.config.js +++ b/test/configCases/web/fetch-priority-2/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/fetch-priority/warnings.js b/test/configCases/web/fetch-priority/warnings.js index 9a0ecd969..353f95b8d 100644 --- a/test/configCases/web/fetch-priority/warnings.js +++ b/test/configCases/web/fetch-priority/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/`webpackFetchPriority` expected true or "low", "high" or "auto"/] ]; diff --git a/test/configCases/web/fetch-priority/webpack.config.js b/test/configCases/web/fetch-priority/webpack.config.js index c5f0efbe3..bca77e3a6 100644 --- a/test/configCases/web/fetch-priority/webpack.config.js +++ b/test/configCases/web/fetch-priority/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/node-source-future-defaults/warnings.js b/test/configCases/web/node-source-future-defaults/warnings.js index 9c0b7c899..e457aaf14 100644 --- a/test/configCases/web/node-source-future-defaults/warnings.js +++ b/test/configCases/web/node-source-future-defaults/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ [/"global" has been used, it will be undefined in next major version/], [/"__filename" has been used, it will be undefined in next major version/], diff --git a/test/configCases/web/node-source-future-defaults/webpack.config.js b/test/configCases/web/node-source-future-defaults/webpack.config.js index f3f037144..b8fc2e22d 100644 --- a/test/configCases/web/node-source-future-defaults/webpack.config.js +++ b/test/configCases/web/node-source-future-defaults/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/web/node-source-global/test.config.js b/test/configCases/web/node-source-global/test.config.js index b5337739a..c3d5914ef 100644 --- a/test/configCases/web/node-source-global/test.config.js +++ b/test/configCases/web/node-source-global/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { scope.global = scope.global || {}; diff --git a/test/configCases/web/node-source-global/webpack.config.js b/test/configCases/web/node-source-global/webpack.config.js index 4cae9c33b..0f2183bc7 100644 --- a/test/configCases/web/node-source-global/webpack.config.js +++ b/test/configCases/web/node-source-global/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { DefinePlugin } = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/web/node-source/webpack.config.js b/test/configCases/web/node-source/webpack.config.js index 6524ff2c4..1d61ba916 100644 --- a/test/configCases/web/node-source/webpack.config.js +++ b/test/configCases/web/node-source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js b/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js index 09896fb50..cc10ec4ef 100644 --- a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js +++ b/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js b/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js index ab7c49b15..80694f5f5 100644 --- a/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js +++ b/test/configCases/web/non-js-chunks-entrypoint-runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/web/non-js-chunks-entrypoint/test.config.js b/test/configCases/web/non-js-chunks-entrypoint/test.config.js index 229a4f1a0..f344037df 100644 --- a/test/configCases/web/non-js-chunks-entrypoint/test.config.js +++ b/test/configCases/web/non-js-chunks-entrypoint/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return [ diff --git a/test/configCases/web/non-js-chunks-entrypoint/webpack.config.js b/test/configCases/web/non-js-chunks-entrypoint/webpack.config.js index 0f03aba30..f9feab9e0 100644 --- a/test/configCases/web/non-js-chunks-entrypoint/webpack.config.js +++ b/test/configCases/web/non-js-chunks-entrypoint/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/web/nonce/webpack.config.js b/test/configCases/web/nonce/webpack.config.js index b034ef3c8..e2faf77c2 100644 --- a/test/configCases/web/nonce/webpack.config.js +++ b/test/configCases/web/nonce/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/web/preexecuted-chunk/test.config.js b/test/configCases/web/preexecuted-chunk/test.config.js index 7aafb4861..49b8de3ee 100644 --- a/test/configCases/web/preexecuted-chunk/test.config.js +++ b/test/configCases/web/preexecuted-chunk/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["the-chunk.js", "bundle0.js"]; diff --git a/test/configCases/web/preexecuted-chunk/webpack.config.js b/test/configCases/web/preexecuted-chunk/webpack.config.js index e41f49d51..ec1a1407f 100644 --- a/test/configCases/web/preexecuted-chunk/webpack.config.js +++ b/test/configCases/web/preexecuted-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js b/test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js index 9cd0da7b9..6a4b06d38 100644 --- a/test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js +++ b/test/configCases/web/prefetch-preload-module-jsonp/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", diff --git a/test/configCases/web/prefetch-preload-module-only-js/webpack.config.js b/test/configCases/web/prefetch-preload-module-only-js/webpack.config.js index 9b7f2978e..42a723fe6 100644 --- a/test/configCases/web/prefetch-preload-module-only-js/webpack.config.js +++ b/test/configCases/web/prefetch-preload-module-only-js/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const RuntimeGlobals = require("../../../../lib/RuntimeGlobals"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/web/prefetch-preload-module/webpack.config.js b/test/configCases/web/prefetch-preload-module/webpack.config.js index e99ad08ed..958cf4f86 100644 --- a/test/configCases/web/prefetch-preload-module/webpack.config.js +++ b/test/configCases/web/prefetch-preload-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: "./index.mjs", diff --git a/test/configCases/web/prefetch-preload/webpack.config.js b/test/configCases/web/prefetch-preload/webpack.config.js index 7271fe2ac..90952d4ce 100644 --- a/test/configCases/web/prefetch-preload/webpack.config.js +++ b/test/configCases/web/prefetch-preload/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/prefetch-split-chunks/test.config.js b/test/configCases/web/prefetch-split-chunks/test.config.js index 086baa60b..702f1082c 100644 --- a/test/configCases/web/prefetch-split-chunks/test.config.js +++ b/test/configCases/web/prefetch-split-chunks/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js", "runtime~main.js", "separate-public-path_js.js"]; diff --git a/test/configCases/web/prefetch-split-chunks/webpack.config.js b/test/configCases/web/prefetch-split-chunks/webpack.config.js index 392e26644..29896ca23 100644 --- a/test/configCases/web/prefetch-split-chunks/webpack.config.js +++ b/test/configCases/web/prefetch-split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/retry-failed-import/webpack.config.js b/test/configCases/web/retry-failed-import/webpack.config.js index f7950dc53..3959a8b5e 100644 --- a/test/configCases/web/retry-failed-import/webpack.config.js +++ b/test/configCases/web/retry-failed-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/web/unique-jsonp/test.config.js b/test/configCases/web/unique-jsonp/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/web/unique-jsonp/test.config.js +++ b/test/configCases/web/unique-jsonp/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/web/unique-jsonp/webpack.config.js b/test/configCases/web/unique-jsonp/webpack.config.js index 681dcca65..f438bab22 100644 --- a/test/configCases/web/unique-jsonp/webpack.config.js +++ b/test/configCases/web/unique-jsonp/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web", diff --git a/test/configCases/worker/blob/test.filter.js b/test/configCases/worker/blob/test.filter.js index 0d78d1214..724a5ff96 100644 --- a/test/configCases/worker/blob/test.filter.js +++ b/test/configCases/worker/blob/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsBlob = require("../../../helpers/supportsBlob"); const supportsWorker = require("../../../helpers/supportsWorker"); diff --git a/test/configCases/worker/blob/webpack.config.js b/test/configCases/worker/blob/webpack.config.js index 03c779ee0..5717dd931 100644 --- a/test/configCases/worker/blob/webpack.config.js +++ b/test/configCases/worker/blob/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "web" diff --git a/test/configCases/worker/custom-worker/test.config.js b/test/configCases/worker/custom-worker/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/worker/custom-worker/test.config.js +++ b/test/configCases/worker/custom-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/worker/custom-worker/test.filter.js b/test/configCases/worker/custom-worker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/custom-worker/test.filter.js +++ b/test/configCases/worker/custom-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/custom-worker/webpack.config.js b/test/configCases/worker/custom-worker/webpack.config.js index 339c124a8..842eb9465 100644 --- a/test/configCases/worker/custom-worker/webpack.config.js +++ b/test/configCases/worker/custom-worker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/worker/issue-17489/test.config.js b/test/configCases/worker/issue-17489/test.config.js index e5f36d141..ec8d736c2 100644 --- a/test/configCases/worker/issue-17489/test.config.js +++ b/test/configCases/worker/issue-17489/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + let outputDirectory; module.exports = { diff --git a/test/configCases/worker/issue-17489/test.filter.js b/test/configCases/worker/issue-17489/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/issue-17489/test.filter.js +++ b/test/configCases/worker/issue-17489/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/issue-17489/webpack.config.js b/test/configCases/worker/issue-17489/webpack.config.js index 8c1ae09ea..46be9aee0 100644 --- a/test/configCases/worker/issue-17489/webpack.config.js +++ b/test/configCases/worker/issue-17489/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/worker/node-worker-async-node/test.config.js b/test/configCases/worker/node-worker-async-node/test.config.js index 9656284e0..08946de6f 100644 --- a/test/configCases/worker/node-worker-async-node/test.config.js +++ b/test/configCases/worker/node-worker-async-node/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/worker/node-worker-async-node/test.filter.js b/test/configCases/worker/node-worker-async-node/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/node-worker-async-node/test.filter.js +++ b/test/configCases/worker/node-worker-async-node/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/node-worker-async-node/webpack.config.js b/test/configCases/worker/node-worker-async-node/webpack.config.js index e12e3859b..addfe94c6 100644 --- a/test/configCases/worker/node-worker-async-node/webpack.config.js +++ b/test/configCases/worker/node-worker-async-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "async-node14", diff --git a/test/configCases/worker/node-worker-esm/test.config.js b/test/configCases/worker/node-worker-esm/test.config.js index b048fb04e..e83f92262 100644 --- a/test/configCases/worker/node-worker-esm/test.config.js +++ b/test/configCases/worker/node-worker-esm/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/configCases/worker/node-worker-esm/test.filter.js b/test/configCases/worker/node-worker-esm/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/node-worker-esm/test.filter.js +++ b/test/configCases/worker/node-worker-esm/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/node-worker-esm/webpack.config.js b/test/configCases/worker/node-worker-esm/webpack.config.js index 7186e0feb..b95db4679 100644 --- a/test/configCases/worker/node-worker-esm/webpack.config.js +++ b/test/configCases/worker/node-worker-esm/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { target: "node14", diff --git a/test/configCases/worker/node-worker-hmr/test.config.js b/test/configCases/worker/node-worker-hmr/test.config.js index d0b177310..5daf817c1 100644 --- a/test/configCases/worker/node-worker-hmr/test.config.js +++ b/test/configCases/worker/node-worker-hmr/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js", "b.js", "c.js", "d.js"]; diff --git a/test/configCases/worker/node-worker-hmr/test.filter.js b/test/configCases/worker/node-worker-hmr/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/node-worker-hmr/test.filter.js +++ b/test/configCases/worker/node-worker-hmr/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/node-worker-hmr/webpack.config.js b/test/configCases/worker/node-worker-hmr/webpack.config.js index 8ebca110d..39bc5180f 100644 --- a/test/configCases/worker/node-worker-hmr/webpack.config.js +++ b/test/configCases/worker/node-worker-hmr/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/configCases/worker/node-worker-named/test.config.js b/test/configCases/worker/node-worker-named/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/worker/node-worker-named/test.config.js +++ b/test/configCases/worker/node-worker-named/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/worker/node-worker-named/test.filter.js b/test/configCases/worker/node-worker-named/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/node-worker-named/test.filter.js +++ b/test/configCases/worker/node-worker-named/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/node-worker-named/webpack.config.js b/test/configCases/worker/node-worker-named/webpack.config.js index 0c85320bd..efd42df19 100644 --- a/test/configCases/worker/node-worker-named/webpack.config.js +++ b/test/configCases/worker/node-worker-named/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/worker/node-worker/test.config.js b/test/configCases/worker/node-worker/test.config.js index d0b177310..5daf817c1 100644 --- a/test/configCases/worker/node-worker/test.config.js +++ b/test/configCases/worker/node-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["a.js", "b.js", "c.js", "d.js"]; diff --git a/test/configCases/worker/node-worker/test.filter.js b/test/configCases/worker/node-worker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/node-worker/test.filter.js +++ b/test/configCases/worker/node-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/node-worker/webpack.config.js b/test/configCases/worker/node-worker/webpack.config.js index abfa19965..eaa296489 100644 --- a/test/configCases/worker/node-worker/webpack.config.js +++ b/test/configCases/worker/node-worker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/worker/self-import/test.config.js b/test/configCases/worker/self-import/test.config.js index 792e0848f..55df512ff 100644 --- a/test/configCases/worker/self-import/test.config.js +++ b/test/configCases/worker/self-import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle(i) { switch (i) { diff --git a/test/configCases/worker/self-import/test.filter.js b/test/configCases/worker/self-import/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/self-import/test.filter.js +++ b/test/configCases/worker/self-import/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/self-import/warnings.js b/test/configCases/worker/self-import/warnings.js index 67303cafa..e77648b69 100644 --- a/test/configCases/worker/self-import/warnings.js +++ b/test/configCases/worker/self-import/warnings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ /This prevents using hashes of each other and should be avoided/, /This prevents using hashes of each other and should be avoided/, diff --git a/test/configCases/worker/self-import/webpack.config.js b/test/configCases/worker/self-import/webpack.config.js index 578810232..22bcc176c 100644 --- a/test/configCases/worker/self-import/webpack.config.js +++ b/test/configCases/worker/self-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/configCases/worker/universal/test.config.js b/test/configCases/worker/universal/test.config.js index 61de36bb6..2f51b4690 100644 --- a/test/configCases/worker/universal/test.config.js +++ b/test/configCases/worker/universal/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope, options) { if (options.name.includes("node")) { diff --git a/test/configCases/worker/universal/test.filter.js b/test/configCases/worker/universal/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/universal/test.filter.js +++ b/test/configCases/worker/universal/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/universal/webpack.config.js b/test/configCases/worker/universal/webpack.config.js index 583e26deb..5b5a24139 100644 --- a/test/configCases/worker/universal/webpack.config.js +++ b/test/configCases/worker/universal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = [ { diff --git a/test/configCases/worker/web-worker/test.config.js b/test/configCases/worker/web-worker/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/worker/web-worker/test.config.js +++ b/test/configCases/worker/web-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/worker/web-worker/test.filter.js b/test/configCases/worker/web-worker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/web-worker/test.filter.js +++ b/test/configCases/worker/web-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/web-worker/webpack.config.js b/test/configCases/worker/web-worker/webpack.config.js index 64e7c1387..46691b4f7 100644 --- a/test/configCases/worker/web-worker/webpack.config.js +++ b/test/configCases/worker/web-worker/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/configCases/worker/worker-contenthash/test.config.js b/test/configCases/worker/worker-contenthash/test.config.js index 78a59a588..a8755bed9 100644 --- a/test/configCases/worker/worker-contenthash/test.config.js +++ b/test/configCases/worker/worker-contenthash/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { findBundle() { return ["main.js"]; diff --git a/test/configCases/worker/worker-contenthash/test.filter.js b/test/configCases/worker/worker-contenthash/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/configCases/worker/worker-contenthash/test.filter.js +++ b/test/configCases/worker/worker-contenthash/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/configCases/worker/worker-contenthash/webpack.config.js b/test/configCases/worker/worker-contenthash/webpack.config.js index 9b0fd61b3..9d814fc1a 100644 --- a/test/configCases/worker/worker-contenthash/webpack.config.js +++ b/test/configCases/worker/worker-contenthash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/configCases/worker/worklet/test.config.js b/test/configCases/worker/worklet/test.config.js index 081778fc9..cf0f40709 100644 --- a/test/configCases/worker/worklet/test.config.js +++ b/test/configCases/worker/worklet/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + let outputDirectory; module.exports = { diff --git a/test/configCases/worker/worklet/test.filter.js b/test/configCases/worker/worklet/test.filter.js index 0d61f0428..c7acb2017 100644 --- a/test/configCases/worker/worklet/test.filter.js +++ b/test/configCases/worker/worklet/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsOptionalChaining = require("../../../helpers/supportsOptionalChaining"); const supportsWorker = require("../../../helpers/supportsWorker"); diff --git a/test/configCases/worker/worklet/webpack.config.js b/test/configCases/worker/worklet/webpack.config.js index e0dc1ca50..a20d911d8 100644 --- a/test/configCases/worker/worklet/webpack.config.js +++ b/test/configCases/worker/worklet/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/deterministicGrouping.unittest.js b/test/deterministicGrouping.unittest.js index 3f36da343..86685f8a2 100644 --- a/test/deterministicGrouping.unittest.js +++ b/test/deterministicGrouping.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const deterministicGrouping = require("../lib/util/deterministicGrouping"); describe("deterministicGrouping", () => { diff --git a/test/helpers/CurrentScript.js b/test/helpers/CurrentScript.js index 8feb610b6..c902351a6 100644 --- a/test/helpers/CurrentScript.js +++ b/test/helpers/CurrentScript.js @@ -1,3 +1,5 @@ +"use strict"; + class CurrentScript { constructor(path = "", type = "text/javascript") { this.src = `https://test.cases/path/${path}index.js`; diff --git a/test/helpers/FakeDocument.js b/test/helpers/FakeDocument.js index a50bd6187..38ea9cacd 100644 --- a/test/helpers/FakeDocument.js +++ b/test/helpers/FakeDocument.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/helpers/LogTestPlugin.js b/test/helpers/LogTestPlugin.js index 1af54c1d6..361115e41 100644 --- a/test/helpers/LogTestPlugin.js +++ b/test/helpers/LogTestPlugin.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../").Compiler} Compiler */ /** @typedef {import("../../").Compilation} Compilation */ diff --git a/test/helpers/PluginEnvironment.js b/test/helpers/PluginEnvironment.js index 15df14625..b4286c8b3 100644 --- a/test/helpers/PluginEnvironment.js +++ b/test/helpers/PluginEnvironment.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function PluginEnvironment() { /** * @type {{ name: string, handler: EXPECTED_FUNCTION }[]} diff --git a/test/helpers/applyPluginWithOptions.js b/test/helpers/applyPluginWithOptions.js index 423935afb..74c245f61 100644 --- a/test/helpers/applyPluginWithOptions.js +++ b/test/helpers/applyPluginWithOptions.js @@ -1,3 +1,5 @@ +"use strict"; + const PluginEnvironment = require("./PluginEnvironment"); module.exports = function applyPluginWithOptions(Plugin) { diff --git a/test/helpers/asModule.js b/test/helpers/asModule.js index 1598ce06d..e3ae68421 100644 --- a/test/helpers/asModule.js +++ b/test/helpers/asModule.js @@ -1,3 +1,5 @@ +"use strict"; + const vm = require("vm"); const SYNTHETIC_MODULES_STORE = "__SYNTHETIC_MODULES_STORE"; diff --git a/test/helpers/captureStdio.js b/test/helpers/captureStdio.js index 3d616760a..8082712fd 100644 --- a/test/helpers/captureStdio.js +++ b/test/helpers/captureStdio.js @@ -1,3 +1,5 @@ +"use strict"; + const stripVTControlCharacters = require("strip-ansi"); module.exports = (stdio, tty) => { diff --git a/test/helpers/createFakeWorker.js b/test/helpers/createFakeWorker.js index d2fbadf60..c7d58f193 100644 --- a/test/helpers/createFakeWorker.js +++ b/test/helpers/createFakeWorker.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); module.exports = ({ outputDirectory }) => diff --git a/test/helpers/createLazyTestEnv.js b/test/helpers/createLazyTestEnv.js index afb9ed0a4..eed49f0aa 100644 --- a/test/helpers/createLazyTestEnv.js +++ b/test/helpers/createLazyTestEnv.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = (globalTimeout = 2000, nameSuffix = "") => { const state = global.JEST_STATE_SYMBOL; let currentDescribeBlock; diff --git a/test/helpers/currentWatchStep.js b/test/helpers/currentWatchStep.js index b3aa4dfc8..6bdad38e5 100644 --- a/test/helpers/currentWatchStep.js +++ b/test/helpers/currentWatchStep.js @@ -1 +1,3 @@ +"use strict"; + module.exports.step = undefined; diff --git a/test/helpers/expectSource.js b/test/helpers/expectSource.js index 116216ca5..92ed29a12 100644 --- a/test/helpers/expectSource.js +++ b/test/helpers/expectSource.js @@ -1,3 +1,5 @@ +"use strict"; + const regexEscape = require("./regexEscape"); // These expect* methods are necessary because 'source' contains the code for this test file, which will always contain the string diff --git a/test/helpers/expectWarningFactory.js b/test/helpers/expectWarningFactory.js index 7f0fda512..f3f858549 100644 --- a/test/helpers/expectWarningFactory.js +++ b/test/helpers/expectWarningFactory.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = () => { const warnings = []; let oldWarn; diff --git a/test/helpers/fakeSystem.js b/test/helpers/fakeSystem.js index cb0c2bafa..daa194583 100644 --- a/test/helpers/fakeSystem.js +++ b/test/helpers/fakeSystem.js @@ -1,3 +1,5 @@ +"use strict"; + const System = { register: (name, deps, fn) => { if (!System.registry) { diff --git a/test/helpers/regexEscape.js b/test/helpers/regexEscape.js index 11f4b6f00..33b2ea769 100644 --- a/test/helpers/regexEscape.js +++ b/test/helpers/regexEscape.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function regexEscape(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string }; diff --git a/test/helpers/remove.js b/test/helpers/remove.js index 54825e28e..deb1733d3 100644 --- a/test/helpers/remove.js +++ b/test/helpers/remove.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); diff --git a/test/helpers/supportDefaultAssignment.js b/test/helpers/supportDefaultAssignment.js index abfabbe1e..98ac25f4e 100644 --- a/test/helpers/supportDefaultAssignment.js +++ b/test/helpers/supportDefaultAssignment.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportDefaultAssignment() { try { // eslint-disable-next-line no-unused-vars diff --git a/test/helpers/supportsAggregateError.js b/test/helpers/supportsAggregateError.js index b1a1952ea..a5788ec92 100644 --- a/test/helpers/supportsAggregateError.js +++ b/test/helpers/supportsAggregateError.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsAggregateError() { return typeof AggregateError !== "undefined"; }; diff --git a/test/helpers/supportsArrowFunctionExpression.js b/test/helpers/supportsArrowFunctionExpression.js index c60dc2ee9..768a42319 100644 --- a/test/helpers/supportsArrowFunctionExpression.js +++ b/test/helpers/supportsArrowFunctionExpression.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportArrowFunctionExpression() { try { eval( diff --git a/test/helpers/supportsAsync.js b/test/helpers/supportsAsync.js index ea517ad37..1b6e2ae99 100644 --- a/test/helpers/supportsAsync.js +++ b/test/helpers/supportsAsync.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsAsync() { // Node.js@10 has a bug with nested async/await if (process.version.startsWith("v10.")) { diff --git a/test/helpers/supportsBlob.js b/test/helpers/supportsBlob.js index 8f6c80fb0..a7793768a 100644 --- a/test/helpers/supportsBlob.js +++ b/test/helpers/supportsBlob.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsBlob() { try { return typeof Blob !== "undefined"; diff --git a/test/helpers/supportsBlockScoping.js b/test/helpers/supportsBlockScoping.js index 3e2b0d260..7d9e00238 100644 --- a/test/helpers/supportsBlockScoping.js +++ b/test/helpers/supportsBlockScoping.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsBlockScoping() { try { const f = eval( diff --git a/test/helpers/supportsClassFields.js b/test/helpers/supportsClassFields.js index ebb848a46..97cf0e36a 100644 --- a/test/helpers/supportsClassFields.js +++ b/test/helpers/supportsClassFields.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsES6() { try { eval("class A { #field = 1 }"); diff --git a/test/helpers/supportsClassStaticBlock.js b/test/helpers/supportsClassStaticBlock.js index 75c891caf..5a572df7b 100644 --- a/test/helpers/supportsClassStaticBlock.js +++ b/test/helpers/supportsClassStaticBlock.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsClassStaticBLock() { try { eval("(function f({x, y}) { class Foo { static {} } })"); diff --git a/test/helpers/supportsDefaultArgs.js b/test/helpers/supportsDefaultArgs.js index d637725dc..dc1e9f8de 100644 --- a/test/helpers/supportsDefaultArgs.js +++ b/test/helpers/supportsDefaultArgs.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsDefaultArgs() { try { const f = eval("(function f(a = 123) { return a; })"); diff --git a/test/helpers/supportsES6.js b/test/helpers/supportsES6.js index fc00740a4..50ebfe0af 100644 --- a/test/helpers/supportsES6.js +++ b/test/helpers/supportsES6.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsES6() { try { eval("class A {}"); diff --git a/test/helpers/supportsErrorCause.js b/test/helpers/supportsErrorCause.js index 84384a287..3a67afe4c 100644 --- a/test/helpers/supportsErrorCause.js +++ b/test/helpers/supportsErrorCause.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsErrorCause() { return ( typeof new Error("test", { cause: new Error("cause") }).cause !== diff --git a/test/helpers/supportsForOf.js b/test/helpers/supportsForOf.js index 01d040463..44abe3272 100644 --- a/test/helpers/supportsForOf.js +++ b/test/helpers/supportsForOf.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportDefaultAssignment() { try { const f = eval("(function f() { for(var x of ['ok', 'fail']) return x; })"); diff --git a/test/helpers/supportsIteratorDestructuring.js b/test/helpers/supportsIteratorDestructuring.js index 88b9985a6..e0417d43f 100644 --- a/test/helpers/supportsIteratorDestructuring.js +++ b/test/helpers/supportsIteratorDestructuring.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsIteratorDestructuring() { try { const f = eval("(function f([, x, ...y]) { return x; })"); diff --git a/test/helpers/supportsLogicalAssignment.js b/test/helpers/supportsLogicalAssignment.js index 2b85e0d38..d3720c941 100644 --- a/test/helpers/supportsLogicalAssignment.js +++ b/test/helpers/supportsLogicalAssignment.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsLogicalAssignment() { try { const f = eval( diff --git a/test/helpers/supportsNullishCoalescing.js b/test/helpers/supportsNullishCoalescing.js index 370414f14..a5fbebe50 100644 --- a/test/helpers/supportsNullishCoalescing.js +++ b/test/helpers/supportsNullishCoalescing.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsNullishCoalescing() { try { const f = eval("(function f() { return null ?? true; })"); diff --git a/test/helpers/supportsObjectDestructuring.js b/test/helpers/supportsObjectDestructuring.js index 809f56edb..edb51bb1a 100644 --- a/test/helpers/supportsObjectDestructuring.js +++ b/test/helpers/supportsObjectDestructuring.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsObjectDestructuring() { try { const f = eval("(function f({x, y}) { return x + y; })"); diff --git a/test/helpers/supportsOptionalCatchBinding.js b/test/helpers/supportsOptionalCatchBinding.js index 673ee5699..cb5bca9fa 100644 --- a/test/helpers/supportsOptionalCatchBinding.js +++ b/test/helpers/supportsOptionalCatchBinding.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsOptionalCatchBinding() { try { eval("try {} catch {}"); diff --git a/test/helpers/supportsOptionalChaining.js b/test/helpers/supportsOptionalChaining.js index f0531bca8..199ee0d5a 100644 --- a/test/helpers/supportsOptionalChaining.js +++ b/test/helpers/supportsOptionalChaining.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsOptionalChaining() { try { const f = eval("(function f() { return ({a: true}) ?.a })"); diff --git a/test/helpers/supportsRequireInModule.js b/test/helpers/supportsRequireInModule.js index 74fe986b2..d37658c44 100644 --- a/test/helpers/supportsRequireInModule.js +++ b/test/helpers/supportsRequireInModule.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsRequireInModule() { return Boolean(require("module").createRequire); }; diff --git a/test/helpers/supportsResponse.js b/test/helpers/supportsResponse.js index ddb479d7a..57658d8a4 100644 --- a/test/helpers/supportsResponse.js +++ b/test/helpers/supportsResponse.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsResponse() { try { return typeof Response !== "undefined"; diff --git a/test/helpers/supportsSpread.js b/test/helpers/supportsSpread.js index 05ecd4930..600850b76 100644 --- a/test/helpers/supportsSpread.js +++ b/test/helpers/supportsSpread.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsSpread() { try { const x = { a: true }; diff --git a/test/helpers/supportsTemplateStrings.js b/test/helpers/supportsTemplateStrings.js index f5ab91b2c..d7fae8946 100644 --- a/test/helpers/supportsTemplateStrings.js +++ b/test/helpers/supportsTemplateStrings.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsTemplateStrings() { try { const f = eval("(function f() { return String.raw`a\\b`; })"); diff --git a/test/helpers/supportsUsing.js b/test/helpers/supportsUsing.js index b7dd79ebf..ceaf31949 100644 --- a/test/helpers/supportsUsing.js +++ b/test/helpers/supportsUsing.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsUsing() { try { const f = eval(`(function f() { diff --git a/test/helpers/supportsWebAssembly.js b/test/helpers/supportsWebAssembly.js index 0cdc04da3..c81ab9606 100644 --- a/test/helpers/supportsWebAssembly.js +++ b/test/helpers/supportsWebAssembly.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = function supportsWebAssembly() { try { return typeof WebAssembly !== "undefined"; diff --git a/test/helpers/supportsWorker.js b/test/helpers/supportsWorker.js index 590dc1b7f..90b024550 100644 --- a/test/helpers/supportsWorker.js +++ b/test/helpers/supportsWorker.js @@ -1,3 +1,5 @@ +"use strict"; + const nodeVersion = process.versions.node.split(".").map(Number); module.exports = function supportsWorker() { diff --git a/test/helpers/warmup-webpack.js b/test/helpers/warmup-webpack.js index 1d465d08d..53457807d 100644 --- a/test/helpers/warmup-webpack.js +++ b/test/helpers/warmup-webpack.js @@ -1,3 +1,5 @@ +"use strict"; + describe("warmup", () => { it("should warmup webpack", done => { /** @type {typeof import("../../") | undefined} */ diff --git a/test/hotCases/asset-modules-source/lazy-compilation/webpack.config.js b/test/hotCases/asset-modules-source/lazy-compilation/webpack.config.js index 231f79a61..56253efb4 100644 --- a/test/hotCases/asset-modules-source/lazy-compilation/webpack.config.js +++ b/test/hotCases/asset-modules-source/lazy-compilation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { diff --git a/test/hotCases/asset-modules-source/source/webpack.config.js b/test/hotCases/asset-modules-source/source/webpack.config.js index 25951fef2..6093c44ed 100644 --- a/test/hotCases/asset-modules-source/source/webpack.config.js +++ b/test/hotCases/asset-modules-source/source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/chunks/initial-chunks-hmr/webpack.config.js b/test/hotCases/chunks/initial-chunks-hmr/webpack.config.js index a9292dcc3..4c1827c59 100644 --- a/test/hotCases/chunks/initial-chunks-hmr/webpack.config.js +++ b/test/hotCases/chunks/initial-chunks-hmr/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { optimization: { chunkIds: "named", diff --git a/test/hotCases/chunks/split-chunks-webpackhot/webpack.config.js b/test/hotCases/chunks/split-chunks-webpackhot/webpack.config.js index f6b853139..dc6a8d361 100644 --- a/test/hotCases/chunks/split-chunks-webpackhot/webpack.config.js +++ b/test/hotCases/chunks/split-chunks-webpackhot/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { filename: "[name].js" diff --git a/test/hotCases/chunks/split-chunks/webpack.config.js b/test/hotCases/chunks/split-chunks/webpack.config.js index f6b853139..dc6a8d361 100644 --- a/test/hotCases/chunks/split-chunks/webpack.config.js +++ b/test/hotCases/chunks/split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { filename: "[name].js" diff --git a/test/hotCases/chunks/update-chunk-loading-runtime/webpack.config.js b/test/hotCases/chunks/update-chunk-loading-runtime/webpack.config.js index fd272520e..3bbf0a369 100644 --- a/test/hotCases/chunks/update-chunk-loading-runtime/webpack.config.js +++ b/test/hotCases/chunks/update-chunk-loading-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** * @param {{ config: import("../../../../").Configuration }} config configuration * @returns {import("../../../../").Configuration} configuration diff --git a/test/hotCases/css/css-modules/test.config.js b/test/hotCases/css/css-modules/test.config.js index 734eb19e2..c94209e74 100644 --- a/test/hotCases/css/css-modules/test.config.js +++ b/test/hotCases/css/css-modules/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/hotCases/css/css-modules/webpack.config.js b/test/hotCases/css/css-modules/webpack.config.js index 14df4b565..8a366ccd1 100644 --- a/test/hotCases/css/css-modules/webpack.config.js +++ b/test/hotCases/css/css-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/css/fetch-priority/test.config.js b/test/hotCases/css/fetch-priority/test.config.js index ce2319213..6e8d95c69 100644 --- a/test/hotCases/css/fetch-priority/test.config.js +++ b/test/hotCases/css/fetch-priority/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { env: "jsdom" }; diff --git a/test/hotCases/css/fetch-priority/webpack.config.js b/test/hotCases/css/fetch-priority/webpack.config.js index 14df4b565..8a366ccd1 100644 --- a/test/hotCases/css/fetch-priority/webpack.config.js +++ b/test/hotCases/css/fetch-priority/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/css/imported-css/test.config.js b/test/hotCases/css/imported-css/test.config.js index ce2319213..6e8d95c69 100644 --- a/test/hotCases/css/imported-css/test.config.js +++ b/test/hotCases/css/imported-css/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { env: "jsdom" }; diff --git a/test/hotCases/css/imported-css/test.filter.js b/test/hotCases/css/imported-css/test.filter.js index c24109494..cb28cd46b 100644 --- a/test/hotCases/css/imported-css/test.filter.js +++ b/test/hotCases/css/imported-css/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.target === "web"; diff --git a/test/hotCases/css/imported-css/webpack.config.js b/test/hotCases/css/imported-css/webpack.config.js index 14df4b565..8a366ccd1 100644 --- a/test/hotCases/css/imported-css/webpack.config.js +++ b/test/hotCases/css/imported-css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/css/single-css-entry/test.config.js b/test/hotCases/css/single-css-entry/test.config.js index ce2319213..6e8d95c69 100644 --- a/test/hotCases/css/single-css-entry/test.config.js +++ b/test/hotCases/css/single-css-entry/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { env: "jsdom" }; diff --git a/test/hotCases/css/single-css-entry/test.filter.js b/test/hotCases/css/single-css-entry/test.filter.js index c24109494..cb28cd46b 100644 --- a/test/hotCases/css/single-css-entry/test.filter.js +++ b/test/hotCases/css/single-css-entry/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.target === "web"; diff --git a/test/hotCases/css/single-css-entry/webpack.config.js b/test/hotCases/css/single-css-entry/webpack.config.js index 62cd01bf7..8989ac114 100644 --- a/test/hotCases/css/single-css-entry/webpack.config.js +++ b/test/hotCases/css/single-css-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/hotCases/css/vanilla/test.config.js b/test/hotCases/css/vanilla/test.config.js index 734eb19e2..c94209e74 100644 --- a/test/hotCases/css/vanilla/test.config.js +++ b/test/hotCases/css/vanilla/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/hotCases/css/vanilla/webpack.config.js b/test/hotCases/css/vanilla/webpack.config.js index 1629277c0..c2c01cc2d 100644 --- a/test/hotCases/css/vanilla/webpack.config.js +++ b/test/hotCases/css/vanilla/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/css/with-lazy-compilation/test.filter.js b/test/hotCases/css/with-lazy-compilation/test.filter.js index c24109494..cb28cd46b 100644 --- a/test/hotCases/css/with-lazy-compilation/test.filter.js +++ b/test/hotCases/css/with-lazy-compilation/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.target === "web"; diff --git a/test/hotCases/css/with-lazy-compilation/webpack.config.js b/test/hotCases/css/with-lazy-compilation/webpack.config.js index 01b5b9066..0028456b1 100644 --- a/test/hotCases/css/with-lazy-compilation/webpack.config.js +++ b/test/hotCases/css/with-lazy-compilation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/disposing/runtime-independent-filename/webpack.config.js b/test/hotCases/disposing/runtime-independent-filename/webpack.config.js index 270d65696..9548f91f1 100644 --- a/test/hotCases/disposing/runtime-independent-filename/webpack.config.js +++ b/test/hotCases/disposing/runtime-independent-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/hotCases/esm-output/async-chunks/webpack.config.js b/test/hotCases/esm-output/async-chunks/webpack.config.js index d877ef17c..b499f3fa1 100644 --- a/test/hotCases/esm-output/async-chunks/webpack.config.js +++ b/test/hotCases/esm-output/async-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/esm-output/css-modules/test.config.js b/test/hotCases/esm-output/css-modules/test.config.js index 734eb19e2..c94209e74 100644 --- a/test/hotCases/esm-output/css-modules/test.config.js +++ b/test/hotCases/esm-output/css-modules/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope) { const link = scope.window.document.createElement("link"); diff --git a/test/hotCases/esm-output/css-modules/webpack.config.js b/test/hotCases/esm-output/css-modules/webpack.config.js index ef5dc7bd3..d1e659cef 100644 --- a/test/hotCases/esm-output/css-modules/webpack.config.js +++ b/test/hotCases/esm-output/css-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/esm-output/runtime-chunk/webpack.config.js b/test/hotCases/esm-output/runtime-chunk/webpack.config.js index 43cb07660..0f8db78a2 100644 --- a/test/hotCases/esm-output/runtime-chunk/webpack.config.js +++ b/test/hotCases/esm-output/runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/esm-output/simple/webpack.config.js b/test/hotCases/esm-output/simple/webpack.config.js index d877ef17c..b499f3fa1 100644 --- a/test/hotCases/esm-output/simple/webpack.config.js +++ b/test/hotCases/esm-output/simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/esm-output/split-chunks/webpack.config.js b/test/hotCases/esm-output/split-chunks/webpack.config.js index 8093beac2..30844fdb9 100644 --- a/test/hotCases/esm-output/split-chunks/webpack.config.js +++ b/test/hotCases/esm-output/split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../types").Configuration} */ module.exports = { mode: "development", diff --git a/test/hotCases/hashing/exports-info-influence/webpack.config.js b/test/hotCases/hashing/exports-info-influence/webpack.config.js index 02eaae9dc..16e3b098f 100644 --- a/test/hotCases/hashing/exports-info-influence/webpack.config.js +++ b/test/hotCases/hashing/exports-info-influence/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { externals: { external: "var 'external'" diff --git a/test/hotCases/hashing/full-hash-main/webpack.config.js b/test/hotCases/hashing/full-hash-main/webpack.config.js index 81b447937..d2e9a3b7c 100644 --- a/test/hotCases/hashing/full-hash-main/webpack.config.js +++ b/test/hotCases/hashing/full-hash-main/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { node: { __dirname: false diff --git a/test/hotCases/hashing/full-hash-syntax-error/webpack.config.js b/test/hotCases/hashing/full-hash-syntax-error/webpack.config.js index 43a1a24fd..2b166fe30 100644 --- a/test/hotCases/hashing/full-hash-syntax-error/webpack.config.js +++ b/test/hotCases/hashing/full-hash-syntax-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { node: { __dirname: false diff --git a/test/hotCases/json/error-in-json/errors.js b/test/hotCases/json/error-in-json/errors.js index 534e9facc..7b246fd2c 100644 --- a/test/hotCases/json/error-in-json/errors.js +++ b/test/hotCases/json/error-in-json/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module parse failed/]]; diff --git a/test/hotCases/lazy-compilation/https/test.config.js b/test/hotCases/lazy-compilation/https/test.config.js index afaea3417..9448eebba 100644 --- a/test/hotCases/lazy-compilation/https/test.config.js +++ b/test/hotCases/lazy-compilation/https/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope, options) { if ( diff --git a/test/hotCases/loader-import-module/css/webpack.config.js b/test/hotCases/loader-import-module/css/webpack.config.js index 61cc3d506..9b4a51b1d 100644 --- a/test/hotCases/loader-import-module/css/webpack.config.js +++ b/test/hotCases/loader-import-module/css/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/hotCases/recover/recover-after-css-loader-error/test.filter.js b/test/hotCases/recover/recover-after-css-loader-error/test.filter.js index c24109494..cb28cd46b 100644 --- a/test/hotCases/recover/recover-after-css-loader-error/test.filter.js +++ b/test/hotCases/recover/recover-after-css-loader-error/test.filter.js @@ -1 +1,3 @@ +"use strict"; + module.exports = config => config.target === "web"; diff --git a/test/hotCases/recover/recover-after-css-loader-error/webpack.config.js b/test/hotCases/recover/recover-after-css-loader-error/webpack.config.js index 527c1c2c1..23171fcc9 100644 --- a/test/hotCases/recover/recover-after-css-loader-error/webpack.config.js +++ b/test/hotCases/recover/recover-after-css-loader-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { diff --git a/test/hotCases/runtime/add-runtime/test.filter.js b/test/hotCases/runtime/add-runtime/test.filter.js index b4cd65c5a..7cbaceb7f 100644 --- a/test/hotCases/runtime/add-runtime/test.filter.js +++ b/test/hotCases/runtime/add-runtime/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = config => { diff --git a/test/hotCases/runtime/add-runtime/webpack.config.js b/test/hotCases/runtime/add-runtime/webpack.config.js index d0d0854b6..1ad1d4365 100644 --- a/test/hotCases/runtime/add-runtime/webpack.config.js +++ b/test/hotCases/runtime/add-runtime/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { optimization: { usedExports: true, diff --git a/test/hotCases/runtime/root-error/webpack.config.js b/test/hotCases/runtime/root-error/webpack.config.js index e9fe7588d..ddc967bb2 100644 --- a/test/hotCases/runtime/root-error/webpack.config.js +++ b/test/hotCases/runtime/root-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { optimization: { emitOnErrors: false diff --git a/test/hotCases/sharing/share-plugin/webpack.config.js b/test/hotCases/sharing/share-plugin/webpack.config.js index 7cd5ca03a..706184dde 100644 --- a/test/hotCases/sharing/share-plugin/webpack.config.js +++ b/test/hotCases/sharing/share-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { SharePlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/hotCases/worker/move-between-runtime/test.config.js b/test/hotCases/worker/move-between-runtime/test.config.js index 46da6fed4..8ca5fe752 100644 --- a/test/hotCases/worker/move-between-runtime/test.config.js +++ b/test/hotCases/worker/move-between-runtime/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope, options) { const FakeWorker = require("../../../helpers/createFakeWorker")({ diff --git a/test/hotCases/worker/move-between-runtime/test.filter.js b/test/hotCases/worker/move-between-runtime/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/hotCases/worker/move-between-runtime/test.filter.js +++ b/test/hotCases/worker/move-between-runtime/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/hotCases/worker/remove-add-worker/test.config.js b/test/hotCases/worker/remove-add-worker/test.config.js index 46da6fed4..8ca5fe752 100644 --- a/test/hotCases/worker/remove-add-worker/test.config.js +++ b/test/hotCases/worker/remove-add-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope, options) { const FakeWorker = require("../../../helpers/createFakeWorker")({ diff --git a/test/hotCases/worker/remove-add-worker/test.filter.js b/test/hotCases/worker/remove-add-worker/test.filter.js index cac73d616..91bee18f0 100644 --- a/test/hotCases/worker/remove-add-worker/test.filter.js +++ b/test/hotCases/worker/remove-add-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = config => supportsWorker() && config.target !== "async-node"; diff --git a/test/hotCases/worker/update-in-worker/test.config.js b/test/hotCases/worker/update-in-worker/test.config.js index 46da6fed4..8ca5fe752 100644 --- a/test/hotCases/worker/update-in-worker/test.config.js +++ b/test/hotCases/worker/update-in-worker/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { moduleScope(scope, options) { const FakeWorker = require("../../../helpers/createFakeWorker")({ diff --git a/test/hotCases/worker/update-in-worker/test.filter.js b/test/hotCases/worker/update-in-worker/test.filter.js index d456e8870..fc9b5e2ce 100644 --- a/test/hotCases/worker/update-in-worker/test.filter.js +++ b/test/hotCases/worker/update-in-worker/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWorker = require("../../../helpers/supportsWorker"); module.exports = () => supportsWorker(); diff --git a/test/hotPlayground/webpack.config.js b/test/hotPlayground/webpack.config.js index 889044498..b89be3f6b 100644 --- a/test/hotPlayground/webpack.config.js +++ b/test/hotPlayground/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../"); diff --git a/test/numberHash.unittest.js b/test/numberHash.unittest.js index 1378b2728..801975b34 100644 --- a/test/numberHash.unittest.js +++ b/test/numberHash.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { numberToIdentifier } = require("../lib/Template"); const numberHash = require("../lib/util/numberHash"); diff --git a/test/patch-node-env.js b/test/patch-node-env.js index 36f335ab8..eb172e70f 100644 --- a/test/patch-node-env.js +++ b/test/patch-node-env.js @@ -1,3 +1,5 @@ +"use strict"; + const NodeEnvironment = // For jest@29 require("jest-environment-node").TestEnvironment || diff --git a/test/propertyAccess.unittest.js b/test/propertyAccess.unittest.js index 51f339797..30475df47 100644 --- a/test/propertyAccess.unittest.js +++ b/test/propertyAccess.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const propertyAccess = require("../lib/util/propertyAccess"); describe("propertyAccess", () => { diff --git a/test/propertyName.unittest.js b/test/propertyName.unittest.js index 72a1cff7a..7a129fdd0 100644 --- a/test/propertyName.unittest.js +++ b/test/propertyName.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { propertyName } = require("../lib/util/propertyName"); describe("propertyName", () => { diff --git a/test/runner/index.js b/test/runner/index.js index f1c545906..bba41a76a 100644 --- a/test/runner/index.js +++ b/test/runner/index.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const { Module } = require("module"); const path = require("path"); diff --git a/test/setupTestFramework.js b/test/setupTestFramework.js index 2be321881..3a63c7579 100644 --- a/test/setupTestFramework.js +++ b/test/setupTestFramework.js @@ -1,3 +1,5 @@ +"use strict"; + expect.extend({ toBeTypeOf(received, expected) { const objType = typeof received; diff --git a/test/statsCases/aggressive-splitting-entry/webpack.config.js b/test/statsCases/aggressive-splitting-entry/webpack.config.js index 7357bf429..b31164a00 100644 --- a/test/statsCases/aggressive-splitting-entry/webpack.config.js +++ b/test/statsCases/aggressive-splitting-entry/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../"); diff --git a/test/statsCases/aggressive-splitting-on-demand/webpack.config.js b/test/statsCases/aggressive-splitting-on-demand/webpack.config.js index 9fdb93e74..1b2a23eb9 100644 --- a/test/statsCases/aggressive-splitting-on-demand/webpack.config.js +++ b/test/statsCases/aggressive-splitting-on-demand/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../"); diff --git a/test/statsCases/all-stats/webpack.config.js b/test/statsCases/all-stats/webpack.config.js index bf8846098..d12887418 100644 --- a/test/statsCases/all-stats/webpack.config.js +++ b/test/statsCases/all-stats/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/asset-concat/webpack.config.js b/test/statsCases/asset-concat/webpack.config.js index 67951bc27..c2af5df36 100644 --- a/test/statsCases/asset-concat/webpack.config.js +++ b/test/statsCases/asset-concat/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/asset/webpack.config.js b/test/statsCases/asset/webpack.config.js index 6f5d1756e..3380fecc1 100644 --- a/test/statsCases/asset/webpack.config.js +++ b/test/statsCases/asset/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/async-commons-chunk-auto/webpack.config.js b/test/statsCases/async-commons-chunk-auto/webpack.config.js index 688486141..79a9fda46 100644 --- a/test/statsCases/async-commons-chunk-auto/webpack.config.js +++ b/test/statsCases/async-commons-chunk-auto/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const stats = { diff --git a/test/statsCases/async-commons-chunk/webpack.config.js b/test/statsCases/async-commons-chunk/webpack.config.js index aee3af004..e0819f750 100644 --- a/test/statsCases/async-commons-chunk/webpack.config.js +++ b/test/statsCases/async-commons-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/cause-error/webpack.config.js b/test/statsCases/cause-error/webpack.config.js index 9eb4f495f..6518a665d 100644 --- a/test/statsCases/cause-error/webpack.config.js +++ b/test/statsCases/cause-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const WebpackError = require("../../../lib/WebpackError"); /** @typedef {Error & { cause?: unknown }} ErrorWithCause */ diff --git a/test/statsCases/chunk-module-id-range/webpack.config.js b/test/statsCases/chunk-module-id-range/webpack.config.js index 535f66f96..115638d58 100644 --- a/test/statsCases/chunk-module-id-range/webpack.config.js +++ b/test/statsCases/chunk-module-id-range/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/chunks-development/webpack.config.js b/test/statsCases/chunks-development/webpack.config.js index 655e7e2fa..d1411a1c8 100644 --- a/test/statsCases/chunks-development/webpack.config.js +++ b/test/statsCases/chunks-development/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/chunks/webpack.config.js b/test/statsCases/chunks/webpack.config.js index 7eb0b1436..f342867f8 100644 --- a/test/statsCases/chunks/webpack.config.js +++ b/test/statsCases/chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/circular-correctness/webpack.config.js b/test/statsCases/circular-correctness/webpack.config.js index 4322ee127..399a523e5 100644 --- a/test/statsCases/circular-correctness/webpack.config.js +++ b/test/statsCases/circular-correctness/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/color-disabled/webpack.config.js b/test/statsCases/color-disabled/webpack.config.js index 5d1378233..0b9b9e2aa 100644 --- a/test/statsCases/color-disabled/webpack.config.js +++ b/test/statsCases/color-disabled/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/color-enabled-custom/webpack.config.js b/test/statsCases/color-enabled-custom/webpack.config.js index 346b1c20d..794d8bde5 100644 --- a/test/statsCases/color-enabled-custom/webpack.config.js +++ b/test/statsCases/color-enabled-custom/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/color-enabled/webpack.config.js b/test/statsCases/color-enabled/webpack.config.js index 8db94e736..e507cc549 100644 --- a/test/statsCases/color-enabled/webpack.config.js +++ b/test/statsCases/color-enabled/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/common-libs/webpack.config.js b/test/statsCases/common-libs/webpack.config.js index d5049a1bd..e906c7953 100644 --- a/test/statsCases/common-libs/webpack.config.js +++ b/test/statsCases/common-libs/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/commons-chunk-min-size-0/webpack.config.js b/test/statsCases/commons-chunk-min-size-0/webpack.config.js index a68deca16..ed04b917e 100644 --- a/test/statsCases/commons-chunk-min-size-0/webpack.config.js +++ b/test/statsCases/commons-chunk-min-size-0/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/commons-chunk-min-size-Infinity/webpack.config.js b/test/statsCases/commons-chunk-min-size-Infinity/webpack.config.js index b4b0364a3..059e410eb 100644 --- a/test/statsCases/commons-chunk-min-size-Infinity/webpack.config.js +++ b/test/statsCases/commons-chunk-min-size-Infinity/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/commons-plugin-issue-4980/webpack.config.js b/test/statsCases/commons-plugin-issue-4980/webpack.config.js index eac99f48b..f3b76968d 100644 --- a/test/statsCases/commons-plugin-issue-4980/webpack.config.js +++ b/test/statsCases/commons-plugin-issue-4980/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + // should generate vendor chunk with the same chunkhash for both entries /** @type {import("../../../").Configuration[]} */ module.exports = [ diff --git a/test/statsCases/concat-and-sideeffects/webpack.config.js b/test/statsCases/concat-and-sideeffects/webpack.config.js index 14ef0be99..c7cbf5e52 100644 --- a/test/statsCases/concat-and-sideeffects/webpack.config.js +++ b/test/statsCases/concat-and-sideeffects/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/context-independence/test.config.js b/test/statsCases/context-independence/test.config.js index 305c9bb31..d48af7814 100644 --- a/test/statsCases/context-independence/test.config.js +++ b/test/statsCases/context-independence/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { validate(stats) { for (let i = 0; i < stats.stats.length; i += 2) { diff --git a/test/statsCases/context-independence/webpack.config.js b/test/statsCases/context-independence/webpack.config.js index 87a0ba0fe..19e0face3 100644 --- a/test/statsCases/context-independence/webpack.config.js +++ b/test/statsCases/context-independence/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** diff --git a/test/statsCases/custom-terser/webpack.config.js b/test/statsCases/custom-terser/webpack.config.js index 21e0cf741..4c0cd2188 100644 --- a/test/statsCases/custom-terser/webpack.config.js +++ b/test/statsCases/custom-terser/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const TerserPlugin = require("terser-webpack-plugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/define-plugin/webpack.config.js b/test/statsCases/define-plugin/webpack.config.js index 802b389c1..90140fbc5 100644 --- a/test/statsCases/define-plugin/webpack.config.js +++ b/test/statsCases/define-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const join = require("path").join; const webpack = require("../../../"); diff --git a/test/statsCases/details-error/webpack.config.js b/test/statsCases/details-error/webpack.config.js index 5196ef59a..c58a7e821 100644 --- a/test/statsCases/details-error/webpack.config.js +++ b/test/statsCases/details-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { WebpackError } = require("../../../"); /** @type {import("../../../").Configuration[]} */ diff --git a/test/statsCases/dll-reference-plugin-issue-7624-error/webpack.config.js b/test/statsCases/dll-reference-plugin-issue-7624-error/webpack.config.js index b3676547e..f1353be2c 100644 --- a/test/statsCases/dll-reference-plugin-issue-7624-error/webpack.config.js +++ b/test/statsCases/dll-reference-plugin-issue-7624-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../"); diff --git a/test/statsCases/dll-reference-plugin-issue-7624/webpack.config.js b/test/statsCases/dll-reference-plugin-issue-7624/webpack.config.js index 746a27eb8..52eba1fe7 100644 --- a/test/statsCases/dll-reference-plugin-issue-7624/webpack.config.js +++ b/test/statsCases/dll-reference-plugin-issue-7624/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../"); diff --git a/test/statsCases/dynamic-chunk-name-error/webpack.config.js b/test/statsCases/dynamic-chunk-name-error/webpack.config.js index ac1c74fe1..657731ad8 100644 --- a/test/statsCases/dynamic-chunk-name-error/webpack.config.js +++ b/test/statsCases/dynamic-chunk-name-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/dynamic-import/webpack.config.js b/test/statsCases/dynamic-import/webpack.config.js index dccb55d13..6cba3932d 100644 --- a/test/statsCases/dynamic-import/webpack.config.js +++ b/test/statsCases/dynamic-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { devtool: false, diff --git a/test/statsCases/entry-filename/webpack.config.js b/test/statsCases/entry-filename/webpack.config.js index 5efaf0330..12bd9acf6 100644 --- a/test/statsCases/entry-filename/webpack.config.js +++ b/test/statsCases/entry-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/errors-space-error/webpack.config.js b/test/statsCases/errors-space-error/webpack.config.js index 4ea95efae..dcc754514 100644 --- a/test/statsCases/errors-space-error/webpack.config.js +++ b/test/statsCases/errors-space-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/exclude-with-loader/webpack.config.js b/test/statsCases/exclude-with-loader/webpack.config.js index 725e0252c..39a0c58ca 100644 --- a/test/statsCases/exclude-with-loader/webpack.config.js +++ b/test/statsCases/exclude-with-loader/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/external/webpack.config.js b/test/statsCases/external/webpack.config.js index 9dcff537b..ccd928a4d 100644 --- a/test/statsCases/external/webpack.config.js +++ b/test/statsCases/external/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/graph-correctness-entries/webpack.config.js b/test/statsCases/graph-correctness-entries/webpack.config.js index b47eedfe1..81e9a9dc0 100644 --- a/test/statsCases/graph-correctness-entries/webpack.config.js +++ b/test/statsCases/graph-correctness-entries/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/graph-correctness-modules/webpack.config.js b/test/statsCases/graph-correctness-modules/webpack.config.js index b47eedfe1..81e9a9dc0 100644 --- a/test/statsCases/graph-correctness-modules/webpack.config.js +++ b/test/statsCases/graph-correctness-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/graph-roots/webpack.config.js b/test/statsCases/graph-roots/webpack.config.js index f6b9e638b..195cc04a9 100644 --- a/test/statsCases/graph-roots/webpack.config.js +++ b/test/statsCases/graph-roots/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/ignore-warnings/webpack.config.js b/test/statsCases/ignore-warnings/webpack.config.js index 8d203f8ef..8caa2264a 100644 --- a/test/statsCases/ignore-warnings/webpack.config.js +++ b/test/statsCases/ignore-warnings/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../").Module} Module */ /** @typedef {import("../../../").WebpackError} WebpackError */ diff --git a/test/statsCases/immutable/webpack.config.js b/test/statsCases/immutable/webpack.config.js index 2bbf3aa2c..3e3a958c5 100644 --- a/test/statsCases/immutable/webpack.config.js +++ b/test/statsCases/immutable/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/import-context-filter/webpack.config.js b/test/statsCases/import-context-filter/webpack.config.js index 250f8f5e6..e11b1e43c 100644 --- a/test/statsCases/import-context-filter/webpack.config.js +++ b/test/statsCases/import-context-filter/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/import-weak-parser-option/webpack.config.js b/test/statsCases/import-weak-parser-option/webpack.config.js index dc55f04d8..3bb70f70f 100644 --- a/test/statsCases/import-weak-parser-option/webpack.config.js +++ b/test/statsCases/import-weak-parser-option/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/import-weak/webpack.config.js b/test/statsCases/import-weak/webpack.config.js index 250f8f5e6..e11b1e43c 100644 --- a/test/statsCases/import-weak/webpack.config.js +++ b/test/statsCases/import-weak/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/import-with-invalid-options-comments/webpack.config.js b/test/statsCases/import-with-invalid-options-comments/webpack.config.js index 29bbb8551..4f630e60f 100644 --- a/test/statsCases/import-with-invalid-options-comments/webpack.config.js +++ b/test/statsCases/import-with-invalid-options-comments/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/issue-7577/webpack.config.js b/test/statsCases/issue-7577/webpack.config.js index 8468e20b4..202f90c8d 100644 --- a/test/statsCases/issue-7577/webpack.config.js +++ b/test/statsCases/issue-7577/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const base = { mode: "production", optimization: { diff --git a/test/statsCases/limit-chunk-count-plugin/webpack.config.js b/test/statsCases/limit-chunk-count-plugin/webpack.config.js index cefff804c..c392ba3a0 100644 --- a/test/statsCases/limit-chunk-count-plugin/webpack.config.js +++ b/test/statsCases/limit-chunk-count-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../"); /** @type {import("../../../").Configuration[]} */ diff --git a/test/statsCases/logging-debug/webpack.config.js b/test/statsCases/logging-debug/webpack.config.js index 8faf807a2..32190db81 100644 --- a/test/statsCases/logging-debug/webpack.config.js +++ b/test/statsCases/logging-debug/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/logging/webpack.config.js b/test/statsCases/logging/webpack.config.js index e3e086af9..deda6c135 100644 --- a/test/statsCases/logging/webpack.config.js +++ b/test/statsCases/logging/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/max-external-module-readable-identifier/webpack.config.js b/test/statsCases/max-external-module-readable-identifier/webpack.config.js index 7f5712802..3254c2018 100644 --- a/test/statsCases/max-external-module-readable-identifier/webpack.config.js +++ b/test/statsCases/max-external-module-readable-identifier/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../types").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/max-modules-default/webpack.config.js b/test/statsCases/max-modules-default/webpack.config.js index 30e8de2c0..d1f52e29f 100644 --- a/test/statsCases/max-modules-default/webpack.config.js +++ b/test/statsCases/max-modules-default/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/max-modules/webpack.config.js b/test/statsCases/max-modules/webpack.config.js index cb83e0b23..ab12c6e29 100644 --- a/test/statsCases/max-modules/webpack.config.js +++ b/test/statsCases/max-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-assets/webpack.config.js b/test/statsCases/module-assets/webpack.config.js index 20922e8db..1adf51525 100644 --- a/test/statsCases/module-assets/webpack.config.js +++ b/test/statsCases/module-assets/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-deduplication-named/webpack.config.js b/test/statsCases/module-deduplication-named/webpack.config.js index 595b06dc2..a0810f0b6 100644 --- a/test/statsCases/module-deduplication-named/webpack.config.js +++ b/test/statsCases/module-deduplication-named/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-deduplication/webpack.config.js b/test/statsCases/module-deduplication/webpack.config.js index 595b06dc2..a0810f0b6 100644 --- a/test/statsCases/module-deduplication/webpack.config.js +++ b/test/statsCases/module-deduplication/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-federation-custom-exposed-module-name/webpack.config.js b/test/statsCases/module-federation-custom-exposed-module-name/webpack.config.js index ac57c47b9..8604bcefd 100644 --- a/test/statsCases/module-federation-custom-exposed-module-name/webpack.config.js +++ b/test/statsCases/module-federation-custom-exposed-module-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ModuleFederationPlugin } = require("../../../").container; /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/module-not-found-error/webpack.config.js b/test/statsCases/module-not-found-error/webpack.config.js index 04f99c809..62ad84fac 100644 --- a/test/statsCases/module-not-found-error/webpack.config.js +++ b/test/statsCases/module-not-found-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-reasons/webpack.config.js b/test/statsCases/module-reasons/webpack.config.js index db7b8b180..b41e14b45 100644 --- a/test/statsCases/module-reasons/webpack.config.js +++ b/test/statsCases/module-reasons/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-trace-disabled-in-error/webpack.config.js b/test/statsCases/module-trace-disabled-in-error/webpack.config.js index a4ac64a08..a1fdcc3b6 100644 --- a/test/statsCases/module-trace-disabled-in-error/webpack.config.js +++ b/test/statsCases/module-trace-disabled-in-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/module-trace-enabled-in-error/webpack.config.js b/test/statsCases/module-trace-enabled-in-error/webpack.config.js index 58a724536..8c01e2c27 100644 --- a/test/statsCases/module-trace-enabled-in-error/webpack.config.js +++ b/test/statsCases/module-trace-enabled-in-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/name/webpack.config.js b/test/statsCases/name/webpack.config.js index 5072e80e8..604101f20 100644 --- a/test/statsCases/name/webpack.config.js +++ b/test/statsCases/name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/named-chunk-groups/webpack.config.js b/test/statsCases/named-chunk-groups/webpack.config.js index 5707a8b1e..e59ed7dc8 100644 --- a/test/statsCases/named-chunk-groups/webpack.config.js +++ b/test/statsCases/named-chunk-groups/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/named-chunks-plugin/webpack.config.js b/test/statsCases/named-chunks-plugin/webpack.config.js index b358371ed..b3321bbb6 100644 --- a/test/statsCases/named-chunks-plugin/webpack.config.js +++ b/test/statsCases/named-chunks-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/optimize-chunks/webpack.config.js b/test/statsCases/optimize-chunks/webpack.config.js index efb9acd5d..dc6d6efba 100644 --- a/test/statsCases/optimize-chunks/webpack.config.js +++ b/test/statsCases/optimize-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/output-module/webpack.config.js b/test/statsCases/output-module/webpack.config.js index 164dbddbf..8b93daaff 100644 --- a/test/statsCases/output-module/webpack.config.js +++ b/test/statsCases/output-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { mode: "production", entry: "./index", diff --git a/test/statsCases/performance-different-mode-and-target/webpack.config.js b/test/statsCases/performance-different-mode-and-target/webpack.config.js index 99f80423c..fd2a5451b 100644 --- a/test/statsCases/performance-different-mode-and-target/webpack.config.js +++ b/test/statsCases/performance-different-mode-and-target/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/performance-disabled/webpack.config.js b/test/statsCases/performance-disabled/webpack.config.js index 49d169952..0b78bcb03 100644 --- a/test/statsCases/performance-disabled/webpack.config.js +++ b/test/statsCases/performance-disabled/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/performance-error/webpack.config.js b/test/statsCases/performance-error/webpack.config.js index 2a53b9837..df5b4381e 100644 --- a/test/statsCases/performance-error/webpack.config.js +++ b/test/statsCases/performance-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/performance-no-async-chunks-shown/webpack.config.js b/test/statsCases/performance-no-async-chunks-shown/webpack.config.js index 1147c3f18..e6f780f54 100644 --- a/test/statsCases/performance-no-async-chunks-shown/webpack.config.js +++ b/test/statsCases/performance-no-async-chunks-shown/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/performance-no-hints/webpack.config.js b/test/statsCases/performance-no-hints/webpack.config.js index 793fe03db..0333cd4f0 100644 --- a/test/statsCases/performance-no-hints/webpack.config.js +++ b/test/statsCases/performance-no-hints/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/performance-oversize-limit-error/webpack.config.js b/test/statsCases/performance-oversize-limit-error/webpack.config.js index 79b0915ec..7612937b0 100644 --- a/test/statsCases/performance-oversize-limit-error/webpack.config.js +++ b/test/statsCases/performance-oversize-limit-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/prefetch-preload-mixed/webpack.config.js b/test/statsCases/prefetch-preload-mixed/webpack.config.js index d864bc6af..3a03ccdcb 100644 --- a/test/statsCases/prefetch-preload-mixed/webpack.config.js +++ b/test/statsCases/prefetch-preload-mixed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/prefetch/webpack.config.js b/test/statsCases/prefetch/webpack.config.js index b8a3ca5e0..2d192a2d0 100644 --- a/test/statsCases/prefetch/webpack.config.js +++ b/test/statsCases/prefetch/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preload/webpack.config.js b/test/statsCases/preload/webpack.config.js index f84da434c..e2bab409c 100644 --- a/test/statsCases/preload/webpack.config.js +++ b/test/statsCases/preload/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-detailed/webpack.config.js b/test/statsCases/preset-detailed/webpack.config.js index b3f4ace1f..947895b89 100644 --- a/test/statsCases/preset-detailed/webpack.config.js +++ b/test/statsCases/preset-detailed/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-errors-only-error/webpack.config.js b/test/statsCases/preset-errors-only-error/webpack.config.js index a07357dda..44cdd6e27 100644 --- a/test/statsCases/preset-errors-only-error/webpack.config.js +++ b/test/statsCases/preset-errors-only-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-errors-only/webpack.config.js b/test/statsCases/preset-errors-only/webpack.config.js index 04f99c809..62ad84fac 100644 --- a/test/statsCases/preset-errors-only/webpack.config.js +++ b/test/statsCases/preset-errors-only/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-errors-warnings/webpack.config.js b/test/statsCases/preset-errors-warnings/webpack.config.js index 68ce0928c..032da0fc8 100644 --- a/test/statsCases/preset-errors-warnings/webpack.config.js +++ b/test/statsCases/preset-errors-warnings/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-minimal-simple/webpack.config.js b/test/statsCases/preset-minimal-simple/webpack.config.js index c4fb6fdc0..50833d4b5 100644 --- a/test/statsCases/preset-minimal-simple/webpack.config.js +++ b/test/statsCases/preset-minimal-simple/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-minimal/webpack.config.js b/test/statsCases/preset-minimal/webpack.config.js index 7ba0caf0a..c76f0db0b 100644 --- a/test/statsCases/preset-minimal/webpack.config.js +++ b/test/statsCases/preset-minimal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-mixed-array/webpack.config.js b/test/statsCases/preset-mixed-array/webpack.config.js index e4282dcf3..bd0613d21 100644 --- a/test/statsCases/preset-mixed-array/webpack.config.js +++ b/test/statsCases/preset-mixed-array/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/preset-none-array/webpack.config.js b/test/statsCases/preset-none-array/webpack.config.js index 8beaeabc6..1b33043ca 100644 --- a/test/statsCases/preset-none-array/webpack.config.js +++ b/test/statsCases/preset-none-array/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/preset-none-error/webpack.config.js b/test/statsCases/preset-none-error/webpack.config.js index fc5edb6b4..6b9e1c904 100644 --- a/test/statsCases/preset-none-error/webpack.config.js +++ b/test/statsCases/preset-none-error/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-none/webpack.config.js b/test/statsCases/preset-none/webpack.config.js index 54cc4b2d3..0573143e3 100644 --- a/test/statsCases/preset-none/webpack.config.js +++ b/test/statsCases/preset-none/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/webpack.config.js b/test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/webpack.config.js index 919599037..067fb5a35 100644 --- a/test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/webpack.config.js +++ b/test/statsCases/preset-normal-performance-ensure-filter-sourcemaps/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-normal-performance/webpack.config.js b/test/statsCases/preset-normal-performance/webpack.config.js index 1de6394e5..79c815a4c 100644 --- a/test/statsCases/preset-normal-performance/webpack.config.js +++ b/test/statsCases/preset-normal-performance/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/preset-normal/webpack.config.js b/test/statsCases/preset-normal/webpack.config.js index 6b76a5c3b..d0b4be0e5 100644 --- a/test/statsCases/preset-normal/webpack.config.js +++ b/test/statsCases/preset-normal/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-summary/webpack.config.js b/test/statsCases/preset-summary/webpack.config.js index b3cc92ca6..450b908b3 100644 --- a/test/statsCases/preset-summary/webpack.config.js +++ b/test/statsCases/preset-summary/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/preset-verbose/webpack.config.js b/test/statsCases/preset-verbose/webpack.config.js index 912534b99..f0e55cbce 100644 --- a/test/statsCases/preset-verbose/webpack.config.js +++ b/test/statsCases/preset-verbose/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const LogTestPlugin = require("../../helpers/LogTestPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/real-content-hash/test.config.js b/test/statsCases/real-content-hash/test.config.js index d9954ee46..793c811c9 100644 --- a/test/statsCases/real-content-hash/test.config.js +++ b/test/statsCases/real-content-hash/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const createHash = require("../../../lib/util/createHash"); diff --git a/test/statsCases/real-content-hash/webpack.config.js b/test/statsCases/real-content-hash/webpack.config.js index ff7970c9a..c5fa28345 100644 --- a/test/statsCases/real-content-hash/webpack.config.js +++ b/test/statsCases/real-content-hash/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/related-assets/test.config.js b/test/statsCases/related-assets/test.config.js index 965ad45e5..d4c195948 100644 --- a/test/statsCases/related-assets/test.config.js +++ b/test/statsCases/related-assets/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { validate(stats) { for (const item of stats.stats) { diff --git a/test/statsCases/related-assets/webpack.config.js b/test/statsCases/related-assets/webpack.config.js index 130cf2550..2b964ee62 100644 --- a/test/statsCases/related-assets/webpack.config.js +++ b/test/statsCases/related-assets/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../").Compiler} Compiler */ /** @typedef {import("../../../").Configuration} Configuration */ diff --git a/test/statsCases/resolve-plugin-context/webpack.config.js b/test/statsCases/resolve-plugin-context/webpack.config.js index 7fb04fdaf..e098b5dd8 100644 --- a/test/statsCases/resolve-plugin-context/webpack.config.js +++ b/test/statsCases/resolve-plugin-context/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const ResolvePackageFromRootPlugin = require("./ResolvePackageFromRootPlugin"); /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/reverse-sort-modules/webpack.config.js b/test/statsCases/reverse-sort-modules/webpack.config.js index 927932879..823293442 100644 --- a/test/statsCases/reverse-sort-modules/webpack.config.js +++ b/test/statsCases/reverse-sort-modules/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/runtime-chunk-integration/webpack.config.js b/test/statsCases/runtime-chunk-integration/webpack.config.js index 773ef5e97..378485be4 100644 --- a/test/statsCases/runtime-chunk-integration/webpack.config.js +++ b/test/statsCases/runtime-chunk-integration/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { MinChunkSizePlugin } = require("../../../").optimize; /** @type {import("../../../").Configuration} */ diff --git a/test/statsCases/runtime-chunk-issue-7382/webpack.config.js b/test/statsCases/runtime-chunk-issue-7382/webpack.config.js index b44443f50..9b185db2b 100644 --- a/test/statsCases/runtime-chunk-issue-7382/webpack.config.js +++ b/test/statsCases/runtime-chunk-issue-7382/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/runtime-chunk-single/webpack.config.js b/test/statsCases/runtime-chunk-single/webpack.config.js index f5b3476f7..e77892c9d 100644 --- a/test/statsCases/runtime-chunk-single/webpack.config.js +++ b/test/statsCases/runtime-chunk-single/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/runtime-chunk/webpack.config.js b/test/statsCases/runtime-chunk/webpack.config.js index 8bbebaa7b..0f11c1629 100644 --- a/test/statsCases/runtime-chunk/webpack.config.js +++ b/test/statsCases/runtime-chunk/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/statsCases/runtime-specific-used-exports/webpack.config.js b/test/statsCases/runtime-specific-used-exports/webpack.config.js index 4f37ce2c3..3fbe55152 100644 --- a/test/statsCases/runtime-specific-used-exports/webpack.config.js +++ b/test/statsCases/runtime-specific-used-exports/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const entry = { a: "./a", b: "./b", diff --git a/test/statsCases/scope-hoisting-bailouts/webpack.config.js b/test/statsCases/scope-hoisting-bailouts/webpack.config.js index 61a8acc6d..fba1de25a 100644 --- a/test/statsCases/scope-hoisting-bailouts/webpack.config.js +++ b/test/statsCases/scope-hoisting-bailouts/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/scope-hoisting-multi/webpack.config.js b/test/statsCases/scope-hoisting-multi/webpack.config.js index 392007e70..80e7b99a3 100644 --- a/test/statsCases/scope-hoisting-multi/webpack.config.js +++ b/test/statsCases/scope-hoisting-multi/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration[]} */ module.exports = [ { diff --git a/test/statsCases/side-effects-issue-7428/webpack.config.js b/test/statsCases/side-effects-issue-7428/webpack.config.js index 7d6f086d6..03d5ac620 100644 --- a/test/statsCases/side-effects-issue-7428/webpack.config.js +++ b/test/statsCases/side-effects-issue-7428/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "none", diff --git a/test/statsCases/side-effects-optimization/webpack.config.js b/test/statsCases/side-effects-optimization/webpack.config.js index a916b70c1..135afb13c 100644 --- a/test/statsCases/side-effects-optimization/webpack.config.js +++ b/test/statsCases/side-effects-optimization/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ const baseConfig = { mode: "production", diff --git a/test/statsCases/side-effects-simple-unused/webpack.config.js b/test/statsCases/side-effects-simple-unused/webpack.config.js index f41626e10..acc2d44b1 100644 --- a/test/statsCases/side-effects-simple-unused/webpack.config.js +++ b/test/statsCases/side-effects-simple-unused/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/simple-more-info/webpack.config.js b/test/statsCases/simple-more-info/webpack.config.js index 0bf661294..2aebb5d10 100644 --- a/test/statsCases/simple-more-info/webpack.config.js +++ b/test/statsCases/simple-more-info/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/split-chunks-automatic-name/webpack.config.js b/test/statsCases/split-chunks-automatic-name/webpack.config.js index ff2bc5526..1998f43d4 100644 --- a/test/statsCases/split-chunks-automatic-name/webpack.config.js +++ b/test/statsCases/split-chunks-automatic-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-cache-group-filename/webpack.config.js b/test/statsCases/split-chunks-cache-group-filename/webpack.config.js index af0e97aad..bfc426883 100644 --- a/test/statsCases/split-chunks-cache-group-filename/webpack.config.js +++ b/test/statsCases/split-chunks-cache-group-filename/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../types").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/split-chunks-chunk-name/webpack.config.js b/test/statsCases/split-chunks-chunk-name/webpack.config.js index 8a55e57c8..3a93a9661 100644 --- a/test/statsCases/split-chunks-chunk-name/webpack.config.js +++ b/test/statsCases/split-chunks-chunk-name/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-combinations/webpack.config.js b/test/statsCases/split-chunks-combinations/webpack.config.js index fb9892eb4..8a0bf4f47 100644 --- a/test/statsCases/split-chunks-combinations/webpack.config.js +++ b/test/statsCases/split-chunks-combinations/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-dedup/webpack.config.js b/test/statsCases/split-chunks-dedup/webpack.config.js index 2a47cdaff..3a2da5b64 100644 --- a/test/statsCases/split-chunks-dedup/webpack.config.js +++ b/test/statsCases/split-chunks-dedup/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../").Module} Module */ const webpack = require("../../../"); diff --git a/test/statsCases/split-chunks-issue-6413/webpack.config.js b/test/statsCases/split-chunks-issue-6413/webpack.config.js index 2deec6baa..fad3ca5dc 100644 --- a/test/statsCases/split-chunks-issue-6413/webpack.config.js +++ b/test/statsCases/split-chunks-issue-6413/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-issue-6696/webpack.config.js b/test/statsCases/split-chunks-issue-6696/webpack.config.js index 2017aa984..f613f8939 100644 --- a/test/statsCases/split-chunks-issue-6696/webpack.config.js +++ b/test/statsCases/split-chunks-issue-6696/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-issue-7401/webpack.config.js b/test/statsCases/split-chunks-issue-7401/webpack.config.js index 051fcf83d..edd859378 100644 --- a/test/statsCases/split-chunks-issue-7401/webpack.config.js +++ b/test/statsCases/split-chunks-issue-7401/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-keep-remaining-size/webpack.config.js b/test/statsCases/split-chunks-keep-remaining-size/webpack.config.js index 3f2300994..f58db6349 100644 --- a/test/statsCases/split-chunks-keep-remaining-size/webpack.config.js +++ b/test/statsCases/split-chunks-keep-remaining-size/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-max-size/webpack.config.js b/test/statsCases/split-chunks-max-size/webpack.config.js index 8bc668b11..aa10397f8 100644 --- a/test/statsCases/split-chunks-max-size/webpack.config.js +++ b/test/statsCases/split-chunks-max-size/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-min-size-reduction/webpack.config.js b/test/statsCases/split-chunks-min-size-reduction/webpack.config.js index 0e65c0245..9e3165134 100644 --- a/test/statsCases/split-chunks-min-size-reduction/webpack.config.js +++ b/test/statsCases/split-chunks-min-size-reduction/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-prefer-bigger-splits/webpack.config.js b/test/statsCases/split-chunks-prefer-bigger-splits/webpack.config.js index 90fff485f..73cbff2f4 100644 --- a/test/statsCases/split-chunks-prefer-bigger-splits/webpack.config.js +++ b/test/statsCases/split-chunks-prefer-bigger-splits/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/split-chunks-runtime-specific/webpack.config.js b/test/statsCases/split-chunks-runtime-specific/webpack.config.js index 008575c37..2b8462664 100644 --- a/test/statsCases/split-chunks-runtime-specific/webpack.config.js +++ b/test/statsCases/split-chunks-runtime-specific/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const entry = { a: "./a", b: "./b", diff --git a/test/statsCases/split-chunks/webpack.config.js b/test/statsCases/split-chunks/webpack.config.js index 7ae86c74c..92959f193 100644 --- a/test/statsCases/split-chunks/webpack.config.js +++ b/test/statsCases/split-chunks/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const stats = { hash: false, timings: false, diff --git a/test/statsCases/track-returned/test.config.js b/test/statsCases/track-returned/test.config.js index 02f3effd8..975bb8a8b 100644 --- a/test/statsCases/track-returned/test.config.js +++ b/test/statsCases/track-returned/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { validate(stats) { expect(stats.compilation.modules.size).toBe(246); diff --git a/test/statsCases/tree-shaking/webpack.config.js b/test/statsCases/tree-shaking/webpack.config.js index 018c4209c..99db7c69f 100644 --- a/test/statsCases/tree-shaking/webpack.config.js +++ b/test/statsCases/tree-shaking/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/warnings-space-warning/webpack.config.js b/test/statsCases/warnings-space-warning/webpack.config.js index 2e516731d..c7f326ebc 100644 --- a/test/statsCases/warnings-space-warning/webpack.config.js +++ b/test/statsCases/warnings-space-warning/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { entry: "./index.js", diff --git a/test/statsCases/wasm-explorer-examples-sync/test.filter.js b/test/statsCases/wasm-explorer-examples-sync/test.filter.js index e4ae2530c..30be02fa2 100644 --- a/test/statsCases/wasm-explorer-examples-sync/test.filter.js +++ b/test/statsCases/wasm-explorer-examples-sync/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/statsCases/wasm-explorer-examples-sync/webpack.config.js b/test/statsCases/wasm-explorer-examples-sync/webpack.config.js index 6e61793ab..25e12f4ba 100644 --- a/test/statsCases/wasm-explorer-examples-sync/webpack.config.js +++ b/test/statsCases/wasm-explorer-examples-sync/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/statsCases/worker-public-path/webpack.config.js b/test/statsCases/worker-public-path/webpack.config.js index 8f1f15977..8cc06eb60 100644 --- a/test/statsCases/worker-public-path/webpack.config.js +++ b/test/statsCases/worker-public-path/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../types").Configuration} */ module.exports = { mode: "production", diff --git a/test/target-browserslist.unittest.js b/test/target-browserslist.unittest.js index ef6104c9b..50297bc02 100644 --- a/test/target-browserslist.unittest.js +++ b/test/target-browserslist.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const { resolve } = require("../lib/config/browserslistTargetHandler"); describe("browserslist target", () => { diff --git a/test/walkCssTokens.unittest.js b/test/walkCssTokens.unittest.js index a179740b7..433570973 100644 --- a/test/walkCssTokens.unittest.js +++ b/test/walkCssTokens.unittest.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const walkCssTokens = require("../lib/css/walkCssTokens"); diff --git a/test/watchCases/cache/add-defines/test.filter.js b/test/watchCases/cache/add-defines/test.filter.js index 105189111..5995446f5 100644 --- a/test/watchCases/cache/add-defines/test.filter.js +++ b/test/watchCases/cache/add-defines/test.filter.js @@ -1,2 +1,4 @@ +"use strict"; + module.exports = config => !(config.experiments && config.experiments.cacheUnaffected); diff --git a/test/watchCases/cache/add-defines/webpack.config.js b/test/watchCases/cache/add-defines/webpack.config.js index 9f2333a88..1bc91e317 100644 --- a/test/watchCases/cache/add-defines/webpack.config.js +++ b/test/watchCases/cache/add-defines/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @typedef {import("../../../../").WebpackPluginInstance} WebpackPluginInstance */ const { DefinePlugin } = require("../../../../"); diff --git a/test/watchCases/cache/asset-concat/test.filter.js b/test/watchCases/cache/asset-concat/test.filter.js index 105189111..5995446f5 100644 --- a/test/watchCases/cache/asset-concat/test.filter.js +++ b/test/watchCases/cache/asset-concat/test.filter.js @@ -1,2 +1,4 @@ +"use strict"; + module.exports = config => !(config.experiments && config.experiments.cacheUnaffected); diff --git a/test/watchCases/cache/asset-concat/webpack.config.js b/test/watchCases/cache/asset-concat/webpack.config.js index b2a5d4c00..5ba3eecf5 100644 --- a/test/watchCases/cache/asset-concat/webpack.config.js +++ b/test/watchCases/cache/asset-concat/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/watchCases/cache/change-dep-while-detatched/webpack.config.js b/test/watchCases/cache/change-dep-while-detatched/webpack.config.js index 009c97a1f..b48e7233f 100644 --- a/test/watchCases/cache/change-dep-while-detatched/webpack.config.js +++ b/test/watchCases/cache/change-dep-while-detatched/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/watchCases/cache/changing-module-id/webpack.config.js b/test/watchCases/cache/changing-module-id/webpack.config.js index 04720f340..8618f1bfa 100644 --- a/test/watchCases/cache/changing-module-id/webpack.config.js +++ b/test/watchCases/cache/changing-module-id/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/watchCases/cache/emit-when-clean/webpack.config.js b/test/watchCases/cache/emit-when-clean/webpack.config.js index 36b900e3e..148e25ef5 100644 --- a/test/watchCases/cache/emit-when-clean/webpack.config.js +++ b/test/watchCases/cache/emit-when-clean/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { clean: true diff --git a/test/watchCases/cache/emit-without-clean/webpack.config.js b/test/watchCases/cache/emit-without-clean/webpack.config.js index e1eaf5923..878e36cf3 100644 --- a/test/watchCases/cache/emit-without-clean/webpack.config.js +++ b/test/watchCases/cache/emit-without-clean/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { output: { clean: false diff --git a/test/watchCases/cache/immutable/webpack.config.js b/test/watchCases/cache/immutable/webpack.config.js index 0925d384b..cb9ec4abb 100644 --- a/test/watchCases/cache/immutable/webpack.config.js +++ b/test/watchCases/cache/immutable/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/watchCases/cache/loader-import-module-progress/webpack.config.js b/test/watchCases/cache/loader-import-module-progress/webpack.config.js index 93b7fc7f8..cf4a7eb93 100644 --- a/test/watchCases/cache/loader-import-module-progress/webpack.config.js +++ b/test/watchCases/cache/loader-import-module-progress/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/cache/loader-import-module/webpack.config.js b/test/watchCases/cache/loader-import-module/webpack.config.js index 2a0a5ded0..b5369e357 100644 --- a/test/watchCases/cache/loader-import-module/webpack.config.js +++ b/test/watchCases/cache/loader-import-module/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { module: { diff --git a/test/watchCases/cache/loader-load-module-progress/webpack.config.js b/test/watchCases/cache/loader-load-module-progress/webpack.config.js index c853d37e2..323d24441 100644 --- a/test/watchCases/cache/loader-load-module-progress/webpack.config.js +++ b/test/watchCases/cache/loader-load-module-progress/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/cache/managedPath/webpack.config.js b/test/watchCases/cache/managedPath/webpack.config.js index 7ef2fe927..c7e912cc4 100644 --- a/test/watchCases/cache/managedPath/webpack.config.js +++ b/test/watchCases/cache/managedPath/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/watchCases/cache/max-generation/webpack.config.js b/test/watchCases/cache/max-generation/webpack.config.js index 6314aff83..56bd72ce2 100644 --- a/test/watchCases/cache/max-generation/webpack.config.js +++ b/test/watchCases/cache/max-generation/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/watchCases/cache/new-split-chunk-entry-node/webpack.config.js b/test/watchCases/cache/new-split-chunk-entry-node/webpack.config.js index 704b991b5..2876dcc3a 100644 --- a/test/watchCases/cache/new-split-chunk-entry-node/webpack.config.js +++ b/test/watchCases/cache/new-split-chunk-entry-node/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/watchCases/cache/new-split-chunk-entry-web/webpack.config.js b/test/watchCases/cache/new-split-chunk-entry-web/webpack.config.js index 7b4cd8b63..6c8857f1d 100644 --- a/test/watchCases/cache/new-split-chunk-entry-web/webpack.config.js +++ b/test/watchCases/cache/new-split-chunk-entry-web/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { entry: { diff --git a/test/watchCases/cache/reexport-mangle/webpack.config.js b/test/watchCases/cache/reexport-mangle/webpack.config.js index 103968287..ea1a749a6 100644 --- a/test/watchCases/cache/reexport-mangle/webpack.config.js +++ b/test/watchCases/cache/reexport-mangle/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/watchCases/cache/unsafe-cache-duplicates/webpack.config.js b/test/watchCases/cache/unsafe-cache-duplicates/webpack.config.js index a6974524b..563912d6a 100644 --- a/test/watchCases/cache/unsafe-cache-duplicates/webpack.config.js +++ b/test/watchCases/cache/unsafe-cache-duplicates/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @typedef {import("../../../../").NormalModule} NormalModule */ diff --git a/test/watchCases/cache/unsafe-cache-managed-paths/webpack.config.js b/test/watchCases/cache/unsafe-cache-managed-paths/webpack.config.js index 231f2371a..142095c26 100644 --- a/test/watchCases/cache/unsafe-cache-managed-paths/webpack.config.js +++ b/test/watchCases/cache/unsafe-cache-managed-paths/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {() => import("../../../../").Configuration} */ module.exports = () => ({ mode: "development", diff --git a/test/watchCases/cache/unsafe-cache/webpack.config.js b/test/watchCases/cache/unsafe-cache/webpack.config.js index edbb2155b..7f739928b 100644 --- a/test/watchCases/cache/unsafe-cache/webpack.config.js +++ b/test/watchCases/cache/unsafe-cache/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "development", diff --git a/test/watchCases/chunks/esm-async-chunks-hmr/test.config.js b/test/watchCases/chunks/esm-async-chunks-hmr/test.config.js index 024d917ac..ab9f34700 100644 --- a/test/watchCases/chunks/esm-async-chunks-hmr/test.config.js +++ b/test/watchCases/chunks/esm-async-chunks-hmr/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { bundlePath: /^main\./ }; diff --git a/test/watchCases/chunks/esm-async-chunks-hmr/webpack.config.js b/test/watchCases/chunks/esm-async-chunks-hmr/webpack.config.js index 7957917ec..63b9e6ddb 100644 --- a/test/watchCases/chunks/esm-async-chunks-hmr/webpack.config.js +++ b/test/watchCases/chunks/esm-async-chunks-hmr/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: { diff --git a/test/watchCases/long-term-caching/issue-8766-with-cache/webpack.config.js b/test/watchCases/long-term-caching/issue-8766-with-cache/webpack.config.js index 5438f5e84..de61ef61e 100644 --- a/test/watchCases/long-term-caching/issue-8766-with-cache/webpack.config.js +++ b/test/watchCases/long-term-caching/issue-8766-with-cache/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/watchCases/long-term-caching/issue-8766/webpack.config.js b/test/watchCases/long-term-caching/issue-8766/webpack.config.js index b3c40d339..7f2c6d1e8 100644 --- a/test/watchCases/long-term-caching/issue-8766/webpack.config.js +++ b/test/watchCases/long-term-caching/issue-8766/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production", diff --git a/test/watchCases/plugins/automatic-prefetch-plugin-9485/webpack.config.js b/test/watchCases/plugins/automatic-prefetch-plugin-9485/webpack.config.js index cfc6b797d..ddc4ffad2 100644 --- a/test/watchCases/plugins/automatic-prefetch-plugin-9485/webpack.config.js +++ b/test/watchCases/plugins/automatic-prefetch-plugin-9485/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); const webpack = require("../../../../"); diff --git a/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js b/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js index 6b46d011d..22091f5c8 100644 --- a/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js +++ b/test/watchCases/plugins/automatic-prefetch-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/plugins/define-plugin/webpack.config.js b/test/watchCases/plugins/define-plugin/webpack.config.js index 48a78da52..347482523 100644 --- a/test/watchCases/plugins/define-plugin/webpack.config.js +++ b/test/watchCases/plugins/define-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const fs = require("fs"); const path = require("path"); const webpack = require("../../../../"); diff --git a/test/watchCases/plugins/dll-reference-plugin/webpack.config.js b/test/watchCases/plugins/dll-reference-plugin/webpack.config.js index 9f4b18a4b..67eac4484 100644 --- a/test/watchCases/plugins/dll-reference-plugin/webpack.config.js +++ b/test/watchCases/plugins/dll-reference-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js b/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js index bb8848ce2..5a0619d92 100644 --- a/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js +++ b/test/watchCases/plugins/mini-css-extract-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const MCEP = require("mini-css-extract-plugin"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/plugins/module-concatenation-plugin/webpack.config.js b/test/watchCases/plugins/module-concatenation-plugin/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/watchCases/plugins/module-concatenation-plugin/webpack.config.js +++ b/test/watchCases/plugins/module-concatenation-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/watchCases/plugins/profiling-plugin/deprecations.js b/test/watchCases/plugins/profiling-plugin/deprecations.js index dee16addc..368f9474d 100644 --- a/test/watchCases/plugins/profiling-plugin/deprecations.js +++ b/test/watchCases/plugins/profiling-plugin/deprecations.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = [ { code: /DEP_WEBPACK_COMPILATION_NORMAL_MODULE_LOADER_HOOK/ } ]; diff --git a/test/watchCases/plugins/profiling-plugin/webpack.config.js b/test/watchCases/plugins/profiling-plugin/webpack.config.js index 0395d6687..7678920da 100644 --- a/test/watchCases/plugins/profiling-plugin/webpack.config.js +++ b/test/watchCases/plugins/profiling-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/plugins/watch-ignore-plugin/webpack.config.js b/test/watchCases/plugins/watch-ignore-plugin/webpack.config.js index 076857a06..d7040c426 100644 --- a/test/watchCases/plugins/watch-ignore-plugin/webpack.config.js +++ b/test/watchCases/plugins/watch-ignore-plugin/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const webpack = require("../../../../"); /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/recover-from-error/missing-module/0/errors.js b/test/watchCases/recover-from-error/missing-module/0/errors.js index 8a65e54f0..d8543ba25 100644 --- a/test/watchCases/recover-from-error/missing-module/0/errors.js +++ b/test/watchCases/recover-from-error/missing-module/0/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module not found/, /Can't resolve 'some-module' /]]; diff --git a/test/watchCases/recover-from-error/parse-failed-esm/0/errors.js b/test/watchCases/recover-from-error/parse-failed-esm/0/errors.js index 534e9facc..7b246fd2c 100644 --- a/test/watchCases/recover-from-error/parse-failed-esm/0/errors.js +++ b/test/watchCases/recover-from-error/parse-failed-esm/0/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module parse failed/]]; diff --git a/test/watchCases/recover-from-error/parse-failed-esm/2/errors.js b/test/watchCases/recover-from-error/parse-failed-esm/2/errors.js index 534e9facc..7b246fd2c 100644 --- a/test/watchCases/recover-from-error/parse-failed-esm/2/errors.js +++ b/test/watchCases/recover-from-error/parse-failed-esm/2/errors.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Module parse failed/]]; diff --git a/test/watchCases/runtime/dynamic-import/webpack.config.js b/test/watchCases/runtime/dynamic-import/webpack.config.js index b536f6cfe..29c0e41be 100644 --- a/test/watchCases/runtime/dynamic-import/webpack.config.js +++ b/test/watchCases/runtime/dynamic-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/watchCases/runtime/static-import/test.config.js b/test/watchCases/runtime/static-import/test.config.js index 3080b9d1e..1c56555af 100644 --- a/test/watchCases/runtime/static-import/test.config.js +++ b/test/watchCases/runtime/static-import/test.config.js @@ -1,3 +1,5 @@ +"use strict"; + module.exports = { bundlePath: ["./runtime~main.js", "./main.js"] }; diff --git a/test/watchCases/runtime/static-import/webpack.config.js b/test/watchCases/runtime/static-import/webpack.config.js index c95208c17..f58bbe2c2 100644 --- a/test/watchCases/runtime/static-import/webpack.config.js +++ b/test/watchCases/runtime/static-import/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { output: { diff --git a/test/watchCases/scope-hoisting/caching-inner-source/webpack.config.js b/test/watchCases/scope-hoisting/caching-inner-source/webpack.config.js index c939ba33f..40cc8810a 100644 --- a/test/watchCases/scope-hoisting/caching-inner-source/webpack.config.js +++ b/test/watchCases/scope-hoisting/caching-inner-source/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/watchCases/sharing/provide-unsafe-cache/webpack.config.js b/test/watchCases/sharing/provide-unsafe-cache/webpack.config.js index efd2c9970..0c909d86e 100644 --- a/test/watchCases/sharing/provide-unsafe-cache/webpack.config.js +++ b/test/watchCases/sharing/provide-unsafe-cache/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const { ProvideSharedPlugin } = require("../../../../").sharing; /** @type {import("../../../../").Configuration} */ diff --git a/test/watchCases/side-effects/issue-7400/test.filter.js b/test/watchCases/side-effects/issue-7400/test.filter.js index 105189111..5995446f5 100644 --- a/test/watchCases/side-effects/issue-7400/test.filter.js +++ b/test/watchCases/side-effects/issue-7400/test.filter.js @@ -1,2 +1,4 @@ +"use strict"; + module.exports = config => !(config.experiments && config.experiments.cacheUnaffected); diff --git a/test/watchCases/side-effects/issue-7400/webpack.config.js b/test/watchCases/side-effects/issue-7400/webpack.config.js index 58251b86a..98df839f5 100644 --- a/test/watchCases/side-effects/issue-7400/webpack.config.js +++ b/test/watchCases/side-effects/issue-7400/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { optimization: { diff --git a/test/watchCases/simple/multi-compiler/webpack.config.js b/test/watchCases/simple/multi-compiler/webpack.config.js index 1c53840c3..ff0a302d2 100644 --- a/test/watchCases/simple/multi-compiler/webpack.config.js +++ b/test/watchCases/simple/multi-compiler/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration[]} */ module.exports = [ { diff --git a/test/watchCases/simple/production/webpack.config.js b/test/watchCases/simple/production/webpack.config.js index dffc81bba..7389b128c 100644 --- a/test/watchCases/simple/production/webpack.config.js +++ b/test/watchCases/simple/production/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { mode: "production" diff --git a/test/watchCases/snapshot/unable-to-snapshot/webpack.config.js b/test/watchCases/snapshot/unable-to-snapshot/webpack.config.js index 52c5156b7..36821b010 100644 --- a/test/watchCases/snapshot/unable-to-snapshot/webpack.config.js +++ b/test/watchCases/snapshot/unable-to-snapshot/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + const path = require("path"); /** @type {(env: Env, options: TestOptions) => import("../../../../").Configuration} */ diff --git a/test/watchCases/warnings/warnings-contribute-to-hash/0/warnings.js b/test/watchCases/warnings/warnings-contribute-to-hash/0/warnings.js index 77561d2be..153b74a03 100644 --- a/test/watchCases/warnings/warnings-contribute-to-hash/0/warnings.js +++ b/test/watchCases/warnings/warnings-contribute-to-hash/0/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/Warning1/]]; diff --git a/test/watchCases/warnings/warnings-contribute-to-hash/1/warnings.js b/test/watchCases/warnings/warnings-contribute-to-hash/1/warnings.js index cf7a02b47..ff2d1ad20 100644 --- a/test/watchCases/warnings/warnings-contribute-to-hash/1/warnings.js +++ b/test/watchCases/warnings/warnings-contribute-to-hash/1/warnings.js @@ -1 +1,3 @@ +"use strict"; + module.exports = [[/New Warning/]]; diff --git a/test/watchCases/wasm/caching/test.filter.js b/test/watchCases/wasm/caching/test.filter.js index 8f89b2fa4..331c7995f 100644 --- a/test/watchCases/wasm/caching/test.filter.js +++ b/test/watchCases/wasm/caching/test.filter.js @@ -1,3 +1,5 @@ +"use strict"; + const supportsWebAssembly = require("../../../helpers/supportsWebAssembly"); module.exports = () => supportsWebAssembly(); diff --git a/test/watchCases/wasm/caching/webpack.config.js b/test/watchCases/wasm/caching/webpack.config.js index d2aff73f7..961b6df85 100644 --- a/test/watchCases/wasm/caching/webpack.config.js +++ b/test/watchCases/wasm/caching/webpack.config.js @@ -1,3 +1,5 @@ +"use strict"; + /** @type {import("../../../../").Configuration} */ module.exports = { experiments: {