webpack 5.65.0 → 5.69.0
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.
- package/README.md +1 -1
- package/lib/APIPlugin.js +33 -0
- package/lib/Cache.js +1 -1
- package/lib/CacheFacade.js +4 -11
- package/lib/Chunk.js +2 -0
- package/lib/ChunkGraph.js +1 -2
- package/lib/CleanPlugin.js +1 -1
- package/lib/Compilation.js +93 -47
- package/lib/Compiler.js +57 -3
- package/lib/ContextModule.js +100 -41
- package/lib/ContextModuleFactory.js +60 -21
- package/lib/DelegatedModule.js +1 -1
- package/lib/Dependency.js +10 -0
- package/lib/DependencyTemplate.js +9 -0
- package/lib/DependencyTemplates.js +1 -1
- package/lib/DllModule.js +1 -1
- package/lib/EvalDevToolModulePlugin.js +16 -1
- package/lib/EvalSourceMapDevToolPlugin.js +18 -1
- package/lib/ExportsInfo.js +4 -4
- package/lib/ExternalModule.js +93 -53
- package/lib/ExternalModuleFactoryPlugin.js +1 -1
- package/lib/FileSystemInfo.js +29 -25
- package/lib/Generator.js +2 -0
- package/lib/HookWebpackError.js +1 -1
- package/lib/Module.js +25 -4
- package/lib/ModuleFilenameHelpers.js +5 -1
- package/lib/MultiCompiler.js +1 -1
- package/lib/MultiWatching.js +1 -1
- package/lib/NormalModule.js +9 -5
- package/lib/NormalModuleFactory.js +25 -27
- package/lib/ProgressPlugin.js +1 -1
- package/lib/RawModule.js +1 -1
- package/lib/RuntimeGlobals.js +29 -1
- package/lib/RuntimeModule.js +1 -1
- package/lib/RuntimePlugin.js +50 -0
- package/lib/RuntimeTemplate.js +21 -0
- package/lib/Template.js +2 -1
- package/lib/TemplatedPathPlugin.js +48 -23
- package/lib/Watching.js +2 -2
- package/lib/WebpackOptionsApply.js +43 -2
- package/lib/asset/AssetGenerator.js +67 -26
- package/lib/asset/AssetModulesPlugin.js +3 -0
- package/lib/asset/RawDataUrlModule.js +148 -0
- package/lib/async-modules/AwaitDependenciesInitFragment.js +4 -4
- package/lib/buildChunkGraph.js +1 -1
- package/lib/cache/ResolverCachePlugin.js +81 -29
- package/lib/cli.js +44 -3
- package/lib/config/defaults.js +86 -7
- package/lib/config/normalization.js +5 -0
- package/lib/container/ContainerEntryModule.js +4 -2
- package/lib/container/FallbackModule.js +4 -4
- package/lib/container/RemoteModule.js +4 -2
- package/lib/css/CssExportsGenerator.js +139 -0
- package/lib/css/CssGenerator.js +109 -0
- package/lib/css/CssLoadingRuntimeModule.js +440 -0
- package/lib/css/CssModulesPlugin.js +462 -0
- package/lib/css/CssParser.js +618 -0
- package/lib/css/walkCssTokens.js +659 -0
- package/lib/debug/ProfilingPlugin.js +15 -14
- package/lib/dependencies/ContextElementDependency.js +8 -2
- package/lib/dependencies/CreateScriptUrlDependency.js +12 -0
- package/lib/dependencies/CssExportDependency.js +85 -0
- package/lib/dependencies/CssImportDependency.js +75 -0
- package/lib/dependencies/CssLocalIdentifierDependency.js +119 -0
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +101 -0
- package/lib/dependencies/CssUrlDependency.js +132 -0
- package/lib/dependencies/ExportsInfoDependency.js +6 -0
- package/lib/dependencies/HarmonyCompatibilityDependency.js +5 -5
- package/lib/dependencies/ImportMetaPlugin.js +22 -3
- package/lib/dependencies/LoaderPlugin.js +2 -2
- package/lib/dependencies/URLDependency.js +3 -8
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +1 -1
- package/lib/hmr/LazyCompilationPlugin.js +45 -21
- package/lib/hmr/lazyCompilationBackend.js +4 -2
- package/lib/ids/DeterministicModuleIdsPlugin.js +55 -35
- package/lib/ids/HashedModuleIdsPlugin.js +9 -12
- package/lib/ids/IdHelpers.js +24 -10
- package/lib/ids/NamedModuleIdsPlugin.js +6 -9
- package/lib/ids/NaturalModuleIdsPlugin.js +10 -13
- package/lib/ids/OccurrenceModuleIdsPlugin.js +13 -10
- package/lib/ids/SyncModuleIdsPlugin.js +140 -0
- package/lib/index.js +10 -0
- package/lib/javascript/JavascriptGenerator.js +1 -0
- package/lib/javascript/JavascriptModulesPlugin.js +27 -2
- package/lib/javascript/StartupHelpers.js +6 -5
- package/lib/library/AssignLibraryPlugin.js +34 -5
- package/lib/library/EnableLibraryPlugin.js +11 -0
- package/lib/node/NodeTargetPlugin.js +1 -0
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +1 -1
- package/lib/node/RequireChunkLoadingRuntimeModule.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +21 -9
- package/lib/runtime/AsyncModuleRuntimeModule.js +25 -15
- package/lib/runtime/CreateScriptRuntimeModule.js +36 -0
- package/lib/runtime/CreateScriptUrlRuntimeModule.js +9 -34
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +76 -0
- package/lib/schemes/HttpUriPlugin.js +32 -11
- package/lib/serialization/FileMiddleware.js +44 -9
- package/lib/sharing/ConsumeSharedModule.js +4 -2
- package/lib/sharing/ProvideSharedModule.js +4 -2
- package/lib/sharing/utils.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +112 -67
- package/lib/stats/DefaultStatsPrinterPlugin.js +88 -23
- package/lib/util/ArrayHelpers.js +18 -4
- package/lib/util/AsyncQueue.js +1 -1
- package/lib/util/compileBooleanMatcher.js +1 -1
- package/lib/util/deterministicGrouping.js +1 -1
- package/lib/util/hash/xxhash64.js +2 -2
- package/lib/util/identifier.js +65 -44
- package/lib/util/internalSerializables.js +11 -0
- package/lib/util/nonNumericOnlyHash.js +22 -0
- package/lib/util/semver.js +17 -10
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +9 -3
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +2 -2
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -11
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +1 -1
- package/package.json +16 -23
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +96 -1
- package/schemas/plugins/asset/AssetGeneratorOptions.check.js +1 -1
- package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +1 -1
- package/schemas/plugins/container/ContainerPlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerPlugin.json +2 -1
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerReferencePlugin.json +1 -0
- package/schemas/plugins/container/ExternalsType.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +3 -1
- package/schemas/plugins/css/CssGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssGeneratorOptions.check.js +6 -0
- package/schemas/plugins/css/CssGeneratorOptions.json +3 -0
- package/schemas/plugins/css/CssParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssParserOptions.json +3 -0
- package/types.d.ts +295 -59
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.69.0",
|
|
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
|
-
"@types/eslint-scope": "^3.7.
|
|
9
|
-
"@types/estree": "^0.0.
|
|
8
|
+
"@types/eslint-scope": "^3.7.3",
|
|
9
|
+
"@types/estree": "^0.0.51",
|
|
10
10
|
"@webassemblyjs/ast": "1.11.1",
|
|
11
11
|
"@webassemblyjs/wasm-edit": "1.11.1",
|
|
12
12
|
"@webassemblyjs/wasm-parser": "1.11.1",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"acorn-import-assertions": "^1.7.6",
|
|
15
15
|
"browserslist": "^4.14.5",
|
|
16
16
|
"chrome-trace-event": "^1.0.2",
|
|
17
|
-
"enhanced-resolve": "^5.
|
|
17
|
+
"enhanced-resolve": "^5.9.0",
|
|
18
18
|
"es-module-lexer": "^0.9.0",
|
|
19
19
|
"eslint-scope": "5.1.1",
|
|
20
20
|
"events": "^3.2.0",
|
|
21
21
|
"glob-to-regexp": "^0.4.1",
|
|
22
|
-
"graceful-fs": "^4.2.
|
|
22
|
+
"graceful-fs": "^4.2.9",
|
|
23
23
|
"json-parse-better-errors": "^1.0.2",
|
|
24
24
|
"loader-runner": "^4.2.0",
|
|
25
25
|
"mime-types": "^2.1.27",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"tapable": "^2.1.1",
|
|
29
29
|
"terser-webpack-plugin": "^5.1.3",
|
|
30
30
|
"watchpack": "^2.3.1",
|
|
31
|
-
"webpack-sources": "^3.2.
|
|
31
|
+
"webpack-sources": "^3.2.3"
|
|
32
32
|
},
|
|
33
33
|
"peerDependenciesMeta": {
|
|
34
34
|
"webpack-cli": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"@babel/core": "^7.11.1",
|
|
40
40
|
"@babel/preset-react": "^7.10.4",
|
|
41
41
|
"@types/es-module-lexer": "^0.4.1",
|
|
42
|
-
"@types/jest": "^27.0
|
|
43
|
-
"@types/node": "^
|
|
42
|
+
"@types/jest": "^27.4.0",
|
|
43
|
+
"@types/node": "^17.0.16",
|
|
44
44
|
"assemblyscript": "^0.19.16",
|
|
45
45
|
"babel-loader": "^8.1.0",
|
|
46
46
|
"benchmark": "^2.1.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"es6-promise-polyfill": "^1.2.0",
|
|
57
57
|
"eslint": "^7.14.0",
|
|
58
58
|
"eslint-config-prettier": "^8.1.0",
|
|
59
|
-
"eslint-plugin-jest": "^24.
|
|
59
|
+
"eslint-plugin-jest": "^24.7.0",
|
|
60
60
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
61
61
|
"eslint-plugin-node": "^11.0.0",
|
|
62
62
|
"eslint-plugin-prettier": "^4.0.0",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
"husky": "^6.0.0",
|
|
67
67
|
"is-ci": "^3.0.0",
|
|
68
68
|
"istanbul": "^0.4.5",
|
|
69
|
-
"jest": "^27.
|
|
70
|
-
"jest-circus": "^27.
|
|
71
|
-
"jest-cli": "^27.
|
|
72
|
-
"jest-diff": "^27.
|
|
69
|
+
"jest": "^27.5.0",
|
|
70
|
+
"jest-circus": "^27.5.0",
|
|
71
|
+
"jest-cli": "^27.5.0",
|
|
72
|
+
"jest-diff": "^27.5.0",
|
|
73
73
|
"jest-junit": "^13.0.0",
|
|
74
74
|
"json-loader": "^0.5.7",
|
|
75
75
|
"json5": "^2.1.3",
|
|
@@ -98,9 +98,9 @@
|
|
|
98
98
|
"style-loader": "^2.0.0",
|
|
99
99
|
"terser": "^5.7.0",
|
|
100
100
|
"toml": "^3.0.0",
|
|
101
|
-
"tooling": "webpack/tooling#v1.
|
|
101
|
+
"tooling": "webpack/tooling#v1.21.0",
|
|
102
102
|
"ts-loader": "^8.0.2",
|
|
103
|
-
"typescript": "^4.
|
|
103
|
+
"typescript": "^4.5.5",
|
|
104
104
|
"url-loader": "^4.1.0",
|
|
105
105
|
"wast-loader": "^1.11.0",
|
|
106
106
|
"webassembly-feature": "1.3.0",
|
|
@@ -143,13 +143,6 @@
|
|
|
143
143
|
"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\"",
|
|
144
144
|
"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\"",
|
|
145
145
|
"test:unit": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --testMatch \"<rootDir>/test/*.unittest.js\"",
|
|
146
|
-
"travis:integration": "yarn cover:integration --ci $JEST",
|
|
147
|
-
"travis:basic": "yarn cover:basic --ci $JEST",
|
|
148
|
-
"travis:lintunit": "yarn lint && yarn cover:unit --ci $JEST",
|
|
149
|
-
"travis:benchmark": "yarn benchmark --ci",
|
|
150
|
-
"appveyor:integration": "yarn cover:integration --ci %JEST%",
|
|
151
|
-
"appveyor:unit": "yarn cover:unit --ci %JEST%",
|
|
152
|
-
"appveyor:benchmark": "yarn benchmark --ci",
|
|
153
146
|
"build:examples": "cd examples && node buildAll.js",
|
|
154
147
|
"type-report": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
|
|
155
148
|
"pretest": "yarn lint",
|
|
@@ -159,7 +152,7 @@
|
|
|
159
152
|
"type-lint": "tsc",
|
|
160
153
|
"typings-test": "tsc -p tsconfig.types.test.json",
|
|
161
154
|
"module-typings-test": "tsc -p tsconfig.module.test.json",
|
|
162
|
-
"spellcheck": "cspell \"
|
|
155
|
+
"spellcheck": "cspell \"**/*\"",
|
|
163
156
|
"special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
|
|
164
157
|
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
|
165
158
|
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",
|