webpack 5.42.1 → 5.45.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of webpack might be problematic. Click here for more details.
- package/lib/Compilation.js +5 -2
- package/lib/Compiler.js +4 -4
- package/lib/ExternalModule.js +18 -0
- package/lib/ExternalModuleFactoryPlugin.js +1 -1
- package/lib/FileSystemInfo.js +14 -15
- package/lib/FlagDependencyUsagePlugin.js +5 -1
- package/lib/MultiCompiler.js +10 -8
- package/lib/SourceMapDevToolPlugin.js +1 -1
- package/lib/Template.js +1 -0
- package/lib/Watching.js +12 -0
- package/lib/asset/AssetGenerator.js +28 -15
- package/lib/container/ContainerPlugin.js +4 -1
- package/lib/container/ModuleFederationPlugin.js +1 -0
- package/lib/dependencies/WorkerPlugin.js +1 -1
- package/lib/esm/ExportWebpackRequireRuntimeModule.js +29 -0
- package/lib/esm/ModuleChunkFormatPlugin.js +91 -11
- package/lib/esm/ModuleChunkLoadingPlugin.js +13 -0
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +46 -37
- package/lib/hmr/lazyCompilationBackend.js +5 -2
- package/lib/javascript/JavascriptModulesPlugin.js +3 -1
- package/lib/json/JsonData.js +41 -0
- package/lib/json/JsonGenerator.js +8 -2
- package/lib/json/JsonParser.js +2 -1
- package/lib/library/SystemLibraryPlugin.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +16 -0
- package/lib/optimize/RuntimeChunkPlugin.js +1 -1
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +5 -4
- package/lib/rules/RuleSetCompiler.js +2 -2
- package/lib/runtime/OnChunksLoadedRuntimeModule.js +5 -1
- package/lib/schemes/DataUriPlugin.js +7 -6
- package/lib/util/StackedCacheMap.js +110 -0
- package/lib/util/internalSerializables.js +1 -0
- package/lib/util/makeSerializable.js +0 -1
- package/lib/webpack.js +1 -1
- package/package.json +24 -18
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +9 -2
- package/schemas/plugins/container/ContainerPlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerPlugin.json +15 -0
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +15 -0
- package/types.d.ts +22 -9
- package/lib/util/StackedSetMap.js +0 -166
package/package.json
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.45.1",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|
7
7
|
"dependencies": {
|
8
8
|
"@types/eslint-scope": "^3.7.0",
|
9
|
-
"@types/estree": "^0.0.
|
10
|
-
"@webassemblyjs/ast": "1.11.
|
11
|
-
"@webassemblyjs/wasm-edit": "1.11.
|
12
|
-
"@webassemblyjs/wasm-parser": "1.11.
|
9
|
+
"@types/estree": "^0.0.50",
|
10
|
+
"@webassemblyjs/ast": "1.11.1",
|
11
|
+
"@webassemblyjs/wasm-edit": "1.11.1",
|
12
|
+
"@webassemblyjs/wasm-parser": "1.11.1",
|
13
13
|
"acorn": "^8.4.1",
|
14
14
|
"browserslist": "^4.14.5",
|
15
15
|
"chrome-trace-event": "^1.0.2",
|
16
16
|
"enhanced-resolve": "^5.8.0",
|
17
|
-
"es-module-lexer": "^0.
|
17
|
+
"es-module-lexer": "^0.7.1",
|
18
18
|
"eslint-scope": "5.1.1",
|
19
19
|
"events": "^3.2.0",
|
20
20
|
"glob-to-regexp": "^0.4.1",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"loader-runner": "^4.2.0",
|
24
24
|
"mime-types": "^2.1.27",
|
25
25
|
"neo-async": "^2.6.2",
|
26
|
-
"schema-utils": "^3.
|
26
|
+
"schema-utils": "^3.1.0",
|
27
27
|
"tapable": "^2.1.1",
|
28
28
|
"terser-webpack-plugin": "^5.1.3",
|
29
29
|
"watchpack": "^2.2.0",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"@babel/core": "^7.11.1",
|
39
39
|
"@babel/preset-react": "^7.10.4",
|
40
40
|
"@types/es-module-lexer": "^0.4.1",
|
41
|
-
"@types/jest": "^26.0.
|
41
|
+
"@types/jest": "^26.0.24",
|
42
42
|
"@types/node": "^15.0.1",
|
43
43
|
"babel-loader": "^8.1.0",
|
44
44
|
"benchmark": "^2.1.4",
|
@@ -54,7 +54,7 @@
|
|
54
54
|
"es6-promise-polyfill": "^1.2.0",
|
55
55
|
"eslint": "^7.14.0",
|
56
56
|
"eslint-config-prettier": "^8.1.0",
|
57
|
-
"eslint-plugin-jest": "^24.
|
57
|
+
"eslint-plugin-jest": "^24.3.6",
|
58
58
|
"eslint-plugin-jsdoc": "^33.0.0",
|
59
59
|
"eslint-plugin-node": "^11.0.0",
|
60
60
|
"eslint-plugin-prettier": "^3.1.4",
|
@@ -63,7 +63,8 @@
|
|
63
63
|
"husky": "^6.0.0",
|
64
64
|
"is-ci": "^3.0.0",
|
65
65
|
"istanbul": "^0.4.5",
|
66
|
-
"jest": "^
|
66
|
+
"jest": "^27.0.6",
|
67
|
+
"jest-circus": "^27.0.6",
|
67
68
|
"jest-diff": "^27.0.2",
|
68
69
|
"jest-junit": "^12.0.0",
|
69
70
|
"json-loader": "^0.5.7",
|
@@ -75,7 +76,7 @@
|
|
75
76
|
"lodash": "^4.17.19",
|
76
77
|
"lodash-es": "^4.17.15",
|
77
78
|
"memfs": "^3.2.0",
|
78
|
-
"mini-css-extract-plugin": "^1.
|
79
|
+
"mini-css-extract-plugin": "^1.6.1",
|
79
80
|
"mini-svg-data-uri": "^1.2.3",
|
80
81
|
"nyc": "^15.1.0",
|
81
82
|
"open-cli": "^6.0.1",
|
@@ -131,10 +132,11 @@
|
|
131
132
|
],
|
132
133
|
"scripts": {
|
133
134
|
"setup": "node ./setup/setup.js",
|
134
|
-
"
|
135
|
+
"jest": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
|
136
|
+
"test": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
|
135
137
|
"test:update-snapshots": "yarn jest -u",
|
136
|
-
"test:integration": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\"",
|
137
|
-
"test:basic": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/
|
138
|
+
"test:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
|
139
|
+
"test:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\"",
|
138
140
|
"test:unit": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
|
139
141
|
"travis:integration": "yarn cover:integration --ci $JEST",
|
140
142
|
"travis:basic": "yarn cover:basic --ci $JEST",
|
@@ -165,12 +167,14 @@
|
|
165
167
|
"benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.benchmark.js\" --runInBand",
|
166
168
|
"cover": "yarn cover:all && yarn cover:report",
|
167
169
|
"cover:clean": "rimraf .nyc_output coverage",
|
168
|
-
"cover:all": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --coverage",
|
169
|
-
"cover:basic": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/
|
170
|
-
"cover:integration": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.test.js\" --coverage",
|
170
|
+
"cover:all": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --coverage",
|
171
|
+
"cover:basic": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
|
172
|
+
"cover:integration": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
|
173
|
+
"cover:integration:a": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
|
174
|
+
"cover:integration:b": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
|
171
175
|
"cover:unit": "node --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
|
172
176
|
"cover:types": "node node_modules/tooling/type-coverage",
|
173
|
-
"cover:merge": "nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
|
177
|
+
"cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
|
174
178
|
"cover:report": "nyc report -t coverage"
|
175
179
|
},
|
176
180
|
"lint-staged": {
|
@@ -191,6 +195,8 @@
|
|
191
195
|
],
|
192
196
|
"testMatch": [
|
193
197
|
"<rootDir>/test/*.test.js",
|
198
|
+
"<rootDir>/test/*.basictest.js",
|
199
|
+
"<rootDir>/test/*.longtest.js",
|
194
200
|
"<rootDir>/test/*.unittest.js"
|
195
201
|
],
|
196
202
|
"watchPathIgnorePatterns": [
|