webpack 5.91.0 → 5.92.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/bin/webpack.js +1 -2
- package/lib/APIPlugin.js +6 -2
- package/lib/Cache.js +1 -1
- package/lib/Chunk.js +7 -4
- package/lib/ChunkGraph.js +20 -7
- package/lib/ChunkGroup.js +9 -3
- package/lib/CleanPlugin.js +1 -1
- package/lib/Compilation.js +33 -27
- package/lib/Compiler.js +28 -8
- package/lib/ConcatenationScope.js +3 -3
- package/lib/ContextModule.js +95 -43
- package/lib/DefinePlugin.js +14 -4
- package/lib/Dependency.js +8 -8
- package/lib/DependencyTemplate.js +10 -5
- package/lib/DllReferencePlugin.js +1 -1
- package/lib/EvalDevToolModulePlugin.js +11 -0
- package/lib/ExportsInfo.js +22 -4
- package/lib/ExternalModule.js +49 -18
- package/lib/FileSystemInfo.js +68 -41
- package/lib/FlagDependencyExportsPlugin.js +21 -7
- package/lib/Generator.js +2 -3
- package/lib/HotModuleReplacementPlugin.js +108 -45
- package/lib/IgnorePlugin.js +4 -1
- package/lib/LibManifestPlugin.js +2 -2
- package/lib/Module.js +11 -12
- package/lib/ModuleFactory.js +3 -3
- package/lib/ModuleFilenameHelpers.js +29 -16
- package/lib/ModuleGraph.js +5 -5
- package/lib/MultiCompiler.js +36 -1
- package/lib/NormalModule.js +10 -12
- package/lib/NormalModuleFactory.js +17 -8
- package/lib/Parser.js +1 -1
- package/lib/PlatformPlugin.js +39 -0
- package/lib/ProgressPlugin.js +1 -1
- package/lib/RecordIdsPlugin.js +4 -4
- package/lib/ResolverFactory.js +3 -3
- package/lib/RuntimeTemplate.js +22 -18
- package/lib/Stats.js +1 -1
- package/lib/Template.js +5 -5
- package/lib/TemplatedPathPlugin.js +16 -1
- package/lib/asset/AssetGenerator.js +15 -0
- package/lib/buildChunkGraph.js +3 -3
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -1
- package/lib/cache/PackFileCacheStrategy.js +2 -2
- package/lib/cache/ResolverCachePlugin.js +8 -8
- package/lib/cache/getLazyHashedEtag.js +1 -1
- package/lib/cli.js +5 -5
- package/lib/config/browserslistTargetHandler.js +7 -1
- package/lib/config/defaults.js +85 -34
- package/lib/config/target.js +18 -11
- package/lib/container/ContainerEntryModule.js +1 -1
- package/lib/css/CssExportsGenerator.js +43 -17
- package/lib/css/CssGenerator.js +22 -12
- package/lib/css/CssLoadingRuntimeModule.js +8 -5
- package/lib/css/CssModulesPlugin.js +197 -100
- package/lib/css/CssParser.js +24 -15
- package/lib/css/walkCssTokens.js +1 -1
- package/lib/debug/ProfilingPlugin.js +1 -1
- package/lib/dependencies/ContextElementDependency.js +2 -2
- package/lib/dependencies/CssExportDependency.js +2 -2
- package/lib/dependencies/CssLocalIdentifierDependency.js +9 -2
- package/lib/dependencies/CssUrlDependency.js +5 -4
- package/lib/dependencies/ExportsInfoDependency.js +1 -1
- package/lib/dependencies/ExternalModuleDependency.js +4 -2
- package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +2 -2
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +2 -2
- package/lib/dependencies/HarmonyImportDependency.js +2 -2
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +41 -18
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +2 -2
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +43 -32
- package/lib/dependencies/ImportDependency.js +2 -2
- package/lib/dependencies/ImportEagerDependency.js +2 -2
- package/lib/dependencies/ImportMetaPlugin.js +1 -1
- package/lib/dependencies/ImportParserPlugin.js +3 -1
- package/lib/dependencies/ImportWeakDependency.js +2 -2
- package/lib/dependencies/LoaderPlugin.js +2 -2
- package/lib/dependencies/ModuleDependency.js +2 -2
- package/lib/dependencies/PureExpressionDependency.js +63 -49
- package/lib/dependencies/WorkerDependency.js +1 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +90 -2
- package/lib/hmr/LazyCompilationPlugin.js +2 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +1 -1
- package/lib/ids/DeterministicChunkIdsPlugin.js +1 -1
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
- package/lib/ids/IdHelpers.js +6 -6
- package/lib/ids/NamedChunkIdsPlugin.js +1 -1
- package/lib/ids/NamedModuleIdsPlugin.js +1 -1
- package/lib/ids/SyncModuleIdsPlugin.js +2 -2
- package/lib/index.js +11 -0
- package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -1
- package/lib/javascript/JavascriptGenerator.js +0 -1
- package/lib/javascript/JavascriptModulesPlugin.js +174 -17
- package/lib/javascript/JavascriptParser.js +37 -16
- package/lib/library/AbstractLibraryPlugin.js +2 -2
- package/lib/library/AmdLibraryPlugin.js +2 -2
- package/lib/library/AssignLibraryPlugin.js +3 -3
- package/lib/library/ExportPropertyLibraryPlugin.js +2 -2
- package/lib/library/JsonpLibraryPlugin.js +2 -2
- package/lib/library/ModuleLibraryPlugin.js +2 -2
- package/lib/library/SystemLibraryPlugin.js +2 -2
- package/lib/library/UmdLibraryPlugin.js +33 -12
- package/lib/logging/createConsoleLogger.js +2 -2
- package/lib/node/CommonJsChunkLoadingPlugin.js +2 -1
- package/lib/node/NodeEnvironmentPlugin.js +1 -1
- package/lib/node/NodeTemplatePlugin.js +1 -1
- package/lib/node/ReadFileCompileWasmPlugin.js +1 -1
- package/lib/node/nodeConsole.js +1 -1
- package/lib/optimize/AggressiveMergingPlugin.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +11 -76
- package/lib/optimize/InnerGraph.js +1 -1
- package/lib/optimize/LimitChunkCountPlugin.js +1 -2
- package/lib/optimize/ModuleConcatenationPlugin.js +1 -1
- package/lib/optimize/RealContentHashPlugin.js +3 -3
- package/lib/optimize/SideEffectsFlagPlugin.js +2 -2
- package/lib/optimize/SplitChunksPlugin.js +8 -8
- package/lib/performance/SizeLimitsPlugin.js +2 -2
- package/lib/rules/ObjectMatcherRulePlugin.js +11 -1
- package/lib/rules/RuleSetCompiler.js +9 -7
- package/lib/runtime/LoadScriptRuntimeModule.js +1 -1
- package/lib/runtime/StartupChunkDependenciesPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +1 -1
- package/lib/serialization/BinaryMiddleware.js +4 -4
- package/lib/serialization/FileMiddleware.js +3 -3
- package/lib/serialization/NullPrototypeObjectSerializer.js +2 -2
- package/lib/serialization/ObjectMiddleware.js +6 -5
- package/lib/serialization/PlainObjectSerializer.js +2 -2
- package/lib/serialization/SerializerMiddleware.js +2 -2
- package/lib/serialization/SingleItemMiddleware.js +2 -2
- package/lib/serialization/types.js +1 -1
- package/lib/sharing/ConsumeSharedModule.js +1 -1
- package/lib/sharing/ProvideSharedPlugin.js +1 -1
- package/lib/sharing/resolveMatchedConfigs.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +20 -20
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/stats/StatsFactory.js +2 -2
- package/lib/stats/StatsPrinter.js +6 -6
- package/lib/util/ArrayQueue.js +14 -21
- package/lib/util/AsyncQueue.js +1 -1
- package/lib/util/Queue.js +8 -2
- package/lib/util/SortableSet.js +16 -4
- package/lib/util/TupleQueue.js +8 -2
- package/lib/util/WeakTupleMap.js +3 -3
- package/lib/util/binarySearchBounds.js +1 -1
- package/lib/util/cleverMerge.js +2 -2
- package/lib/util/comparators.js +4 -2
- package/lib/util/conventions.js +1 -1
- package/lib/util/createHash.js +3 -5
- package/lib/util/deprecation.js +3 -3
- package/lib/util/deterministicGrouping.js +2 -2
- package/lib/util/findGraphRoots.js +1 -1
- package/lib/util/fs.js +15 -15
- package/lib/util/identifier.js +5 -5
- package/lib/util/mergeScope.js +79 -0
- package/lib/util/runtime.js +2 -17
- package/lib/util/semver.js +3 -0
- package/lib/util/smartGrouping.js +3 -3
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +4 -2
- package/lib/wasm-async/AsyncWebAssemblyGenerator.js +1 -1
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +3 -3
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +1 -1
- package/lib/wasm-sync/WebAssemblyGenerator.js +17 -17
- package/lib/wasm-sync/WebAssemblyModulesPlugin.js +1 -1
- package/lib/wasm-sync/WebAssemblyUtils.js +2 -1
- package/lib/web/FetchCompileWasmPlugin.js +1 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/webpack.js +12 -3
- package/package.json +20 -18
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +30 -2
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
- package/types.d.ts +213 -81
@@ -6,7 +6,7 @@
|
|
6
6
|
"use strict";
|
7
7
|
|
8
8
|
/**
|
9
|
-
* @typedef {
|
9
|
+
* @typedef {object} GroupOptions
|
10
10
|
* @property {boolean=} groupChildren
|
11
11
|
* @property {boolean=} force
|
12
12
|
* @property {number=} targetGroupCount
|
@@ -15,7 +15,7 @@
|
|
15
15
|
/**
|
16
16
|
* @template T
|
17
17
|
* @template R
|
18
|
-
* @typedef {
|
18
|
+
* @typedef {object} GroupConfig
|
19
19
|
* @property {function(T): string[]} getKeys
|
20
20
|
* @property {function(string, (R | T)[], T[]): R} createGroup
|
21
21
|
* @property {function(string, T[]): GroupOptions=} getOptions
|
@@ -24,7 +24,7 @@
|
|
24
24
|
/**
|
25
25
|
* @template T
|
26
26
|
* @template R
|
27
|
-
* @typedef {
|
27
|
+
* @typedef {object} ItemWithGroups
|
28
28
|
* @property {T} item
|
29
29
|
* @property {Set<Group<T, R>>} groups
|
30
30
|
*/
|
@@ -13,7 +13,7 @@ const Template = require("../Template");
|
|
13
13
|
/** @typedef {import("../Compilation")} Compilation */
|
14
14
|
|
15
15
|
/**
|
16
|
-
* @typedef {
|
16
|
+
* @typedef {object} AsyncWasmLoadingRuntimeModuleOptions
|
17
17
|
* @property {function(string): string} generateLoadBinaryCode
|
18
18
|
* @property {boolean} supportsStreaming
|
19
19
|
*/
|
@@ -69,7 +69,9 @@ class AsyncWasmLoadingRuntimeModule extends RuntimeModule {
|
|
69
69
|
const concat = (/** @type {string[]} */ ...text) => text.join("");
|
70
70
|
return [
|
71
71
|
`var req = ${loader};`,
|
72
|
-
`var fallback = ${runtimeTemplate.returningFunction(
|
72
|
+
`var fallback = ${runtimeTemplate.returningFunction(
|
73
|
+
Template.asString(["req", Template.indent(fallback)])
|
74
|
+
)};`,
|
73
75
|
concat(
|
74
76
|
"return req.then(",
|
75
77
|
runtimeTemplate.basicFunction("res", [
|
@@ -14,7 +14,7 @@ const Generator = require("../Generator");
|
|
14
14
|
const TYPES = new Set(["webassembly"]);
|
15
15
|
|
16
16
|
/**
|
17
|
-
* @typedef {
|
17
|
+
* @typedef {object} AsyncWebAssemblyGeneratorOptions
|
18
18
|
* @property {boolean} [mangleImports] mangle imports
|
19
19
|
*/
|
20
20
|
|
@@ -39,7 +39,7 @@ const getAsyncWebAssemblyParser = memoize(() =>
|
|
39
39
|
);
|
40
40
|
|
41
41
|
/**
|
42
|
-
* @typedef {
|
42
|
+
* @typedef {object} WebAssemblyRenderContext
|
43
43
|
* @property {Chunk} chunk the chunk
|
44
44
|
* @property {DependencyTemplates} dependencyTemplates the dependency templates
|
45
45
|
* @property {RuntimeTemplate} runtimeTemplate the runtime template
|
@@ -49,12 +49,12 @@ const getAsyncWebAssemblyParser = memoize(() =>
|
|
49
49
|
*/
|
50
50
|
|
51
51
|
/**
|
52
|
-
* @typedef {
|
52
|
+
* @typedef {object} CompilationHooks
|
53
53
|
* @property {SyncWaterfallHook<[Source, Module, WebAssemblyRenderContext]>} renderModuleContent
|
54
54
|
*/
|
55
55
|
|
56
56
|
/**
|
57
|
-
* @typedef {
|
57
|
+
* @typedef {object} AsyncWebAssemblyModulesPluginOptions
|
58
58
|
* @property {boolean} [mangleImports] mangle imports
|
59
59
|
*/
|
60
60
|
|
@@ -210,7 +210,7 @@ const generateImportObject = (
|
|
210
210
|
};
|
211
211
|
|
212
212
|
/**
|
213
|
-
* @typedef {
|
213
|
+
* @typedef {object} WasmChunkLoadingRuntimeModuleOptions
|
214
214
|
* @property {(path: string) => string} generateLoadBinaryCode
|
215
215
|
* @property {boolean} [supportsStreaming]
|
216
216
|
* @property {boolean} [mangleImports]
|
@@ -55,8 +55,8 @@ const compose = (...fns) => {
|
|
55
55
|
/**
|
56
56
|
* Removes the start instruction
|
57
57
|
*
|
58
|
-
* @param {
|
59
|
-
* @param {
|
58
|
+
* @param {object} state state
|
59
|
+
* @param {object} state.ast Module's ast
|
60
60
|
* @returns {ArrayBufferTransform} transform
|
61
61
|
*/
|
62
62
|
const removeStartFunc = state => bin => {
|
@@ -70,7 +70,7 @@ const removeStartFunc = state => bin => {
|
|
70
70
|
/**
|
71
71
|
* Get imported globals
|
72
72
|
*
|
73
|
-
* @param {
|
73
|
+
* @param {object} ast Module's AST
|
74
74
|
* @returns {t.ModuleImport[]} - nodes
|
75
75
|
*/
|
76
76
|
const getImportedGlobals = ast => {
|
@@ -91,8 +91,8 @@ const getImportedGlobals = ast => {
|
|
91
91
|
/**
|
92
92
|
* Get the count for imported func
|
93
93
|
*
|
94
|
-
* @param {
|
95
|
-
* @returns {
|
94
|
+
* @param {object} ast Module's AST
|
95
|
+
* @returns {number} - count
|
96
96
|
*/
|
97
97
|
const getCountImportedFunc = ast => {
|
98
98
|
let count = 0;
|
@@ -111,7 +111,7 @@ const getCountImportedFunc = ast => {
|
|
111
111
|
/**
|
112
112
|
* Get next type index
|
113
113
|
*
|
114
|
-
* @param {
|
114
|
+
* @param {object} ast Module's AST
|
115
115
|
* @returns {t.Index} - index
|
116
116
|
*/
|
117
117
|
const getNextTypeIndex = ast => {
|
@@ -131,8 +131,8 @@ const getNextTypeIndex = ast => {
|
|
131
131
|
* in order to have the correct index we shift the index by number of external
|
132
132
|
* functions.
|
133
133
|
*
|
134
|
-
* @param {
|
135
|
-
* @param {
|
134
|
+
* @param {object} ast Module's AST
|
135
|
+
* @param {number} countImportedFunc number of imported funcs
|
136
136
|
* @returns {t.Index} - index
|
137
137
|
*/
|
138
138
|
const getNextFuncIndex = (ast, countImportedFunc) => {
|
@@ -178,8 +178,8 @@ const createDefaultInitForGlobal = globalType => {
|
|
178
178
|
*
|
179
179
|
* Note that globals will become mutable.
|
180
180
|
*
|
181
|
-
* @param {
|
182
|
-
* @param {
|
181
|
+
* @param {object} state transformation state
|
182
|
+
* @param {object} state.ast Module's ast
|
183
183
|
* @param {t.Instruction[]} state.additionalInitCode list of addition instructions for the init function
|
184
184
|
* @returns {ArrayBufferTransform} transform
|
185
185
|
*/
|
@@ -248,8 +248,8 @@ const rewriteImportedGlobals = state => bin => {
|
|
248
248
|
|
249
249
|
/**
|
250
250
|
* Rewrite the export names
|
251
|
-
* @param {
|
252
|
-
* @param {
|
251
|
+
* @param {object} state state
|
252
|
+
* @param {object} state.ast Module's ast
|
253
253
|
* @param {Module} state.module Module
|
254
254
|
* @param {ModuleGraph} state.moduleGraph module graph
|
255
255
|
* @param {Set<string>} state.externalExports Module
|
@@ -283,8 +283,8 @@ const rewriteExportNames =
|
|
283
283
|
|
284
284
|
/**
|
285
285
|
* Mangle import names and modules
|
286
|
-
* @param {
|
287
|
-
* @param {
|
286
|
+
* @param {object} state state
|
287
|
+
* @param {object} state.ast Module's ast
|
288
288
|
* @param {Map<string, UsedWasmDependency>} state.usedDependencyMap mappings to mangle names
|
289
289
|
* @returns {ArrayBufferTransform} transform
|
290
290
|
*/
|
@@ -313,8 +313,8 @@ const rewriteImports =
|
|
313
313
|
*
|
314
314
|
* The init function fills the globals given input arguments.
|
315
315
|
*
|
316
|
-
* @param {
|
317
|
-
* @param {
|
316
|
+
* @param {object} state transformation state
|
317
|
+
* @param {object} state.ast Module's ast
|
318
318
|
* @param {t.Identifier} state.initFuncId identifier of the init function
|
319
319
|
* @param {t.Index} state.startAtFuncOffset index of the start function
|
320
320
|
* @param {t.ModuleImport[]} state.importedGlobals list of imported globals
|
@@ -418,7 +418,7 @@ const getUsedDependencyMap = (moduleGraph, module, mangle) => {
|
|
418
418
|
const TYPES = new Set(["webassembly"]);
|
419
419
|
|
420
420
|
/**
|
421
|
-
* @typedef {
|
421
|
+
* @typedef {object} WebAssemblyGeneratorOptions
|
422
422
|
* @property {boolean} [mangleImports] mangle imports
|
423
423
|
*/
|
424
424
|
|
@@ -31,7 +31,7 @@ const getWebAssemblyParser = memoize(() => require("./WebAssemblyParser"));
|
|
31
31
|
const PLUGIN_NAME = "WebAssemblyModulesPlugin";
|
32
32
|
|
33
33
|
/**
|
34
|
-
* @typedef {
|
34
|
+
* @typedef {object} WebAssemblyModulesPluginOptions
|
35
35
|
* @property {boolean} [mangleImports] mangle imports
|
36
36
|
*/
|
37
37
|
|
@@ -11,7 +11,8 @@ const WebAssemblyImportDependency = require("../dependencies/WebAssemblyImportDe
|
|
11
11
|
/** @typedef {import("../Module")} Module */
|
12
12
|
/** @typedef {import("../ModuleGraph")} ModuleGraph */
|
13
13
|
|
14
|
-
/**
|
14
|
+
/**
|
15
|
+
* @typedef {object} UsedWasmDependency
|
15
16
|
* @property {WebAssemblyImportDependency} dependency the dependency
|
16
17
|
* @property {string} name the export name
|
17
18
|
* @property {string} module the module name
|
@@ -17,7 +17,7 @@ const WasmChunkLoadingRuntimeModule = require("../wasm-sync/WasmChunkLoadingRunt
|
|
17
17
|
const PLUGIN_NAME = "FetchCompileWasmPlugin";
|
18
18
|
|
19
19
|
/**
|
20
|
-
* @typedef {
|
20
|
+
* @typedef {object} FetchCompileWasmPluginOptions
|
21
21
|
* @property {boolean} [mangleImports] mangle imports
|
22
22
|
*/
|
23
23
|
|
@@ -18,7 +18,7 @@ const compileBooleanMatcher = require("../util/compileBooleanMatcher");
|
|
18
18
|
/** @typedef {import("../Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
|
19
19
|
|
20
20
|
/**
|
21
|
-
* @typedef {
|
21
|
+
* @typedef {object} JsonpCompilationPluginHooks
|
22
22
|
* @property {SyncWaterfallHook<[string, Chunk]>} linkPreload
|
23
23
|
* @property {SyncWaterfallHook<[string, Chunk]>} linkPrefetch
|
24
24
|
*/
|
package/lib/webpack.js
CHANGED
@@ -42,7 +42,9 @@ const getValidateSchema = memoize(() => require("./validateSchema"));
|
|
42
42
|
* @returns {MultiCompiler} a multi-compiler
|
43
43
|
*/
|
44
44
|
const createMultiCompiler = (childOptions, options) => {
|
45
|
-
const compilers = childOptions.map(options =>
|
45
|
+
const compilers = childOptions.map((options, index) =>
|
46
|
+
createCompiler(options, index)
|
47
|
+
);
|
46
48
|
const compiler = new MultiCompiler(compilers, options);
|
47
49
|
for (const childCompiler of compilers) {
|
48
50
|
if (childCompiler.options.dependencies) {
|
@@ -57,9 +59,10 @@ const createMultiCompiler = (childOptions, options) => {
|
|
57
59
|
|
58
60
|
/**
|
59
61
|
* @param {WebpackOptions} rawOptions options object
|
62
|
+
* @param {number} [compilerIndex] index of compiler
|
60
63
|
* @returns {Compiler} a compiler
|
61
64
|
*/
|
62
|
-
const createCompiler = rawOptions => {
|
65
|
+
const createCompiler = (rawOptions, compilerIndex) => {
|
63
66
|
const options = getNormalizedWebpackOptions(rawOptions);
|
64
67
|
applyWebpackOptionsBaseDefaults(options);
|
65
68
|
const compiler = new Compiler(
|
@@ -79,7 +82,13 @@ const createCompiler = rawOptions => {
|
|
79
82
|
}
|
80
83
|
}
|
81
84
|
}
|
82
|
-
applyWebpackOptionsDefaults(
|
85
|
+
const resolvedDefaultOptions = applyWebpackOptionsDefaults(
|
86
|
+
options,
|
87
|
+
compilerIndex
|
88
|
+
);
|
89
|
+
if (resolvedDefaultOptions.platform) {
|
90
|
+
compiler.platform = resolvedDefaultOptions.platform;
|
91
|
+
}
|
83
92
|
compiler.hooks.environment.call();
|
84
93
|
compiler.hooks.afterEnvironment.call();
|
85
94
|
new WebpackOptionsApply().process(options, compiler);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "webpack",
|
3
|
-
"version": "5.
|
3
|
+
"version": "5.92.1",
|
4
4
|
"author": "Tobias Koppers @sokra",
|
5
5
|
"description": "Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.",
|
6
6
|
"license": "MIT",
|
@@ -11,10 +11,10 @@
|
|
11
11
|
"@webassemblyjs/wasm-edit": "^1.12.1",
|
12
12
|
"@webassemblyjs/wasm-parser": "^1.12.1",
|
13
13
|
"acorn": "^8.7.1",
|
14
|
-
"acorn-import-
|
14
|
+
"acorn-import-attributes": "^1.9.5",
|
15
15
|
"browserslist": "^4.21.10",
|
16
16
|
"chrome-trace-event": "^1.0.2",
|
17
|
-
"enhanced-resolve": "^5.
|
17
|
+
"enhanced-resolve": "^5.17.0",
|
18
18
|
"es-module-lexer": "^1.2.1",
|
19
19
|
"eslint-scope": "5.1.1",
|
20
20
|
"events": "^3.2.0",
|
@@ -36,8 +36,9 @@
|
|
36
36
|
}
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@babel/core": "^7.
|
40
|
-
"@babel/preset-react": "^7.
|
39
|
+
"@babel/core": "^7.24.7",
|
40
|
+
"@babel/preset-react": "^7.24.7",
|
41
|
+
"@eslint/js": "^9.4.0",
|
41
42
|
"@types/glob-to-regexp": "^0.4.4",
|
42
43
|
"@types/jest": "^29.5.11",
|
43
44
|
"@types/mime-types": "^2.1.4",
|
@@ -50,19 +51,20 @@
|
|
50
51
|
"coffeescript": "^2.5.1",
|
51
52
|
"core-js": "^3.6.5",
|
52
53
|
"coveralls": "^3.1.0",
|
53
|
-
"cspell": "^8.
|
54
|
+
"cspell": "^8.8.4",
|
54
55
|
"css-loader": "^5.0.1",
|
55
56
|
"date-fns": "^3.2.0",
|
56
57
|
"es5-ext": "^0.10.53",
|
57
58
|
"es6-promise-polyfill": "^1.2.0",
|
58
|
-
"eslint": "^
|
59
|
+
"eslint": "^9.4.0",
|
59
60
|
"eslint-config-prettier": "^9.1.0",
|
60
|
-
"eslint-plugin-jest": "^
|
61
|
-
"eslint-plugin-jsdoc": "^48.
|
62
|
-
"eslint-plugin-n": "^
|
61
|
+
"eslint-plugin-jest": "^28.6.0",
|
62
|
+
"eslint-plugin-jsdoc": "^48.2.9",
|
63
|
+
"eslint-plugin-n": "^17.8.1",
|
63
64
|
"eslint-plugin-prettier": "^5.1.3",
|
64
65
|
"file-loader": "^6.0.0",
|
65
66
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
67
|
+
"globals": "^15.4.0",
|
66
68
|
"hash-wasm": "^4.9.0",
|
67
69
|
"husky": "^9.0.11",
|
68
70
|
"is-ci": "^3.0.0",
|
@@ -77,28 +79,28 @@
|
|
77
79
|
"json5": "^2.1.3",
|
78
80
|
"less": "^4.0.0",
|
79
81
|
"less-loader": "^8.0.0",
|
80
|
-
"lint-staged": "^15.2.
|
82
|
+
"lint-staged": "^15.2.5",
|
81
83
|
"lodash": "^4.17.19",
|
82
84
|
"lodash-es": "^4.17.15",
|
83
|
-
"memfs": "^4.
|
85
|
+
"memfs": "^4.9.2",
|
84
86
|
"mini-css-extract-plugin": "^1.6.1",
|
85
87
|
"mini-svg-data-uri": "^1.2.3",
|
86
|
-
"nyc": "^
|
88
|
+
"nyc": "^17.0.0",
|
87
89
|
"open-cli": "^8.0.0",
|
88
90
|
"prettier": "^3.2.1",
|
89
91
|
"prettier-2": "npm:prettier@^2",
|
90
92
|
"pretty-format": "^29.5.0",
|
91
|
-
"pug": "^3.0.
|
93
|
+
"pug": "^3.0.3",
|
92
94
|
"pug-loader": "^2.4.0",
|
93
95
|
"raw-loader": "^4.0.1",
|
94
|
-
"react": "^18.
|
95
|
-
"react-dom": "^18.
|
96
|
+
"react": "^18.3.1",
|
97
|
+
"react-dom": "^18.3.1",
|
96
98
|
"rimraf": "^3.0.2",
|
97
99
|
"script-loader": "^0.7.2",
|
98
|
-
"simple-git": "^3.
|
100
|
+
"simple-git": "^3.25.0",
|
99
101
|
"strip-ansi": "^6.0.0",
|
100
102
|
"style-loader": "^2.0.0",
|
101
|
-
"terser": "^5.
|
103
|
+
"terser": "^5.31.1",
|
102
104
|
"toml": "^3.0.0",
|
103
105
|
"tooling": "webpack/tooling#v1.23.3",
|
104
106
|
"ts-loader": "^9.5.1",
|