webpack 5.91.0 → 5.92.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.

Potentially problematic release.


This version of webpack might be problematic. Click here for more details.

Files changed (174) hide show
  1. package/bin/webpack.js +1 -2
  2. package/lib/APIPlugin.js +6 -2
  3. package/lib/Cache.js +1 -1
  4. package/lib/Chunk.js +7 -4
  5. package/lib/ChunkGraph.js +20 -7
  6. package/lib/ChunkGroup.js +9 -3
  7. package/lib/CleanPlugin.js +1 -1
  8. package/lib/Compilation.js +33 -27
  9. package/lib/Compiler.js +28 -8
  10. package/lib/ConcatenationScope.js +3 -3
  11. package/lib/ContextModule.js +95 -43
  12. package/lib/DefinePlugin.js +14 -4
  13. package/lib/Dependency.js +8 -8
  14. package/lib/DependencyTemplate.js +10 -5
  15. package/lib/DllReferencePlugin.js +1 -1
  16. package/lib/EvalDevToolModulePlugin.js +11 -0
  17. package/lib/ExportsInfo.js +22 -4
  18. package/lib/ExternalModule.js +49 -18
  19. package/lib/FileSystemInfo.js +68 -41
  20. package/lib/FlagDependencyExportsPlugin.js +21 -7
  21. package/lib/Generator.js +2 -3
  22. package/lib/HotModuleReplacementPlugin.js +108 -45
  23. package/lib/IgnorePlugin.js +4 -1
  24. package/lib/LibManifestPlugin.js +2 -2
  25. package/lib/Module.js +11 -12
  26. package/lib/ModuleFactory.js +3 -3
  27. package/lib/ModuleFilenameHelpers.js +29 -16
  28. package/lib/ModuleGraph.js +5 -5
  29. package/lib/MultiCompiler.js +36 -1
  30. package/lib/NormalModule.js +10 -12
  31. package/lib/NormalModuleFactory.js +17 -8
  32. package/lib/Parser.js +1 -1
  33. package/lib/PlatformPlugin.js +39 -0
  34. package/lib/ProgressPlugin.js +1 -1
  35. package/lib/RecordIdsPlugin.js +4 -4
  36. package/lib/ResolverFactory.js +3 -3
  37. package/lib/RuntimeTemplate.js +22 -18
  38. package/lib/Stats.js +1 -1
  39. package/lib/Template.js +5 -5
  40. package/lib/TemplatedPathPlugin.js +16 -1
  41. package/lib/asset/AssetGenerator.js +15 -0
  42. package/lib/buildChunkGraph.js +3 -3
  43. package/lib/cache/MemoryWithGcCachePlugin.js +1 -1
  44. package/lib/cache/PackFileCacheStrategy.js +2 -2
  45. package/lib/cache/ResolverCachePlugin.js +8 -8
  46. package/lib/cache/getLazyHashedEtag.js +1 -1
  47. package/lib/cli.js +5 -5
  48. package/lib/config/browserslistTargetHandler.js +7 -1
  49. package/lib/config/defaults.js +85 -34
  50. package/lib/config/target.js +18 -11
  51. package/lib/container/ContainerEntryModule.js +1 -1
  52. package/lib/css/CssExportsGenerator.js +43 -17
  53. package/lib/css/CssGenerator.js +22 -12
  54. package/lib/css/CssLoadingRuntimeModule.js +8 -5
  55. package/lib/css/CssModulesPlugin.js +197 -100
  56. package/lib/css/CssParser.js +24 -15
  57. package/lib/css/walkCssTokens.js +1 -1
  58. package/lib/debug/ProfilingPlugin.js +1 -1
  59. package/lib/dependencies/ContextElementDependency.js +2 -2
  60. package/lib/dependencies/CssExportDependency.js +2 -2
  61. package/lib/dependencies/CssLocalIdentifierDependency.js +9 -2
  62. package/lib/dependencies/CssUrlDependency.js +5 -4
  63. package/lib/dependencies/ExportsInfoDependency.js +1 -1
  64. package/lib/dependencies/ExternalModuleDependency.js +4 -2
  65. package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +2 -2
  66. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +2 -2
  67. package/lib/dependencies/HarmonyImportDependency.js +2 -2
  68. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +41 -18
  69. package/lib/dependencies/HarmonyImportSideEffectDependency.js +2 -2
  70. package/lib/dependencies/HarmonyImportSpecifierDependency.js +43 -32
  71. package/lib/dependencies/ImportDependency.js +2 -2
  72. package/lib/dependencies/ImportEagerDependency.js +2 -2
  73. package/lib/dependencies/ImportMetaPlugin.js +1 -1
  74. package/lib/dependencies/ImportParserPlugin.js +3 -1
  75. package/lib/dependencies/ImportWeakDependency.js +2 -2
  76. package/lib/dependencies/LoaderPlugin.js +2 -2
  77. package/lib/dependencies/ModuleDependency.js +2 -2
  78. package/lib/dependencies/PureExpressionDependency.js +63 -49
  79. package/lib/dependencies/WorkerDependency.js +1 -1
  80. package/lib/esm/ModuleChunkLoadingRuntimeModule.js +90 -2
  81. package/lib/hmr/LazyCompilationPlugin.js +2 -2
  82. package/lib/ids/ChunkModuleIdRangePlugin.js +1 -1
  83. package/lib/ids/DeterministicChunkIdsPlugin.js +1 -1
  84. package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
  85. package/lib/ids/IdHelpers.js +6 -6
  86. package/lib/ids/NamedChunkIdsPlugin.js +1 -1
  87. package/lib/ids/NamedModuleIdsPlugin.js +1 -1
  88. package/lib/ids/SyncModuleIdsPlugin.js +2 -2
  89. package/lib/index.js +11 -0
  90. package/lib/javascript/CommonJsChunkFormatPlugin.js +1 -1
  91. package/lib/javascript/JavascriptGenerator.js +0 -1
  92. package/lib/javascript/JavascriptModulesPlugin.js +174 -17
  93. package/lib/javascript/JavascriptParser.js +37 -16
  94. package/lib/library/AbstractLibraryPlugin.js +2 -2
  95. package/lib/library/AmdLibraryPlugin.js +2 -2
  96. package/lib/library/AssignLibraryPlugin.js +3 -3
  97. package/lib/library/ExportPropertyLibraryPlugin.js +2 -2
  98. package/lib/library/JsonpLibraryPlugin.js +2 -2
  99. package/lib/library/ModuleLibraryPlugin.js +2 -2
  100. package/lib/library/SystemLibraryPlugin.js +2 -2
  101. package/lib/library/UmdLibraryPlugin.js +33 -12
  102. package/lib/logging/createConsoleLogger.js +2 -2
  103. package/lib/node/CommonJsChunkLoadingPlugin.js +2 -1
  104. package/lib/node/NodeEnvironmentPlugin.js +1 -1
  105. package/lib/node/NodeTemplatePlugin.js +1 -1
  106. package/lib/node/ReadFileCompileWasmPlugin.js +1 -1
  107. package/lib/node/nodeConsole.js +1 -1
  108. package/lib/optimize/AggressiveMergingPlugin.js +1 -1
  109. package/lib/optimize/ConcatenatedModule.js +11 -76
  110. package/lib/optimize/InnerGraph.js +1 -1
  111. package/lib/optimize/LimitChunkCountPlugin.js +1 -2
  112. package/lib/optimize/ModuleConcatenationPlugin.js +1 -1
  113. package/lib/optimize/RealContentHashPlugin.js +3 -3
  114. package/lib/optimize/SideEffectsFlagPlugin.js +2 -2
  115. package/lib/optimize/SplitChunksPlugin.js +8 -8
  116. package/lib/performance/SizeLimitsPlugin.js +2 -2
  117. package/lib/rules/ObjectMatcherRulePlugin.js +11 -1
  118. package/lib/rules/RuleSetCompiler.js +9 -7
  119. package/lib/runtime/LoadScriptRuntimeModule.js +1 -1
  120. package/lib/runtime/StartupChunkDependenciesPlugin.js +1 -1
  121. package/lib/schemes/HttpUriPlugin.js +1 -1
  122. package/lib/serialization/BinaryMiddleware.js +4 -4
  123. package/lib/serialization/FileMiddleware.js +3 -3
  124. package/lib/serialization/NullPrototypeObjectSerializer.js +2 -2
  125. package/lib/serialization/ObjectMiddleware.js +6 -5
  126. package/lib/serialization/PlainObjectSerializer.js +2 -2
  127. package/lib/serialization/SerializerMiddleware.js +2 -2
  128. package/lib/serialization/SingleItemMiddleware.js +2 -2
  129. package/lib/serialization/types.js +1 -1
  130. package/lib/sharing/ConsumeSharedModule.js +1 -1
  131. package/lib/sharing/ProvideSharedPlugin.js +1 -1
  132. package/lib/sharing/resolveMatchedConfigs.js +1 -1
  133. package/lib/stats/DefaultStatsFactoryPlugin.js +20 -20
  134. package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
  135. package/lib/stats/StatsFactory.js +2 -2
  136. package/lib/stats/StatsPrinter.js +6 -6
  137. package/lib/util/ArrayQueue.js +14 -21
  138. package/lib/util/AsyncQueue.js +1 -1
  139. package/lib/util/Queue.js +8 -2
  140. package/lib/util/SortableSet.js +16 -4
  141. package/lib/util/TupleQueue.js +8 -2
  142. package/lib/util/WeakTupleMap.js +3 -3
  143. package/lib/util/binarySearchBounds.js +1 -1
  144. package/lib/util/cleverMerge.js +2 -2
  145. package/lib/util/comparators.js +4 -2
  146. package/lib/util/conventions.js +1 -1
  147. package/lib/util/createHash.js +3 -5
  148. package/lib/util/deprecation.js +3 -3
  149. package/lib/util/deterministicGrouping.js +2 -2
  150. package/lib/util/findGraphRoots.js +1 -1
  151. package/lib/util/fs.js +15 -15
  152. package/lib/util/identifier.js +5 -5
  153. package/lib/util/mergeScope.js +79 -0
  154. package/lib/util/runtime.js +2 -17
  155. package/lib/util/semver.js +3 -0
  156. package/lib/util/smartGrouping.js +3 -3
  157. package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +4 -2
  158. package/lib/wasm-async/AsyncWebAssemblyGenerator.js +1 -1
  159. package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +3 -3
  160. package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +1 -1
  161. package/lib/wasm-sync/WebAssemblyGenerator.js +17 -17
  162. package/lib/wasm-sync/WebAssemblyModulesPlugin.js +1 -1
  163. package/lib/wasm-sync/WebAssemblyUtils.js +2 -1
  164. package/lib/web/FetchCompileWasmPlugin.js +1 -1
  165. package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -1
  166. package/lib/webpack.js +12 -3
  167. package/package.json +20 -18
  168. package/schemas/WebpackOptions.check.js +1 -1
  169. package/schemas/WebpackOptions.json +30 -2
  170. package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +1 -1
  171. package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
  172. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
  173. package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
  174. package/types.d.ts +213 -81
@@ -6,7 +6,7 @@
6
6
  "use strict";
7
7
 
8
8
  /**
9
- * @typedef {Object} GroupOptions
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 {Object} GroupConfig
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 {Object} ItemWithGroups
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 {Object} AsyncWasmLoadingRuntimeModuleOptions
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(Template.asString(["req", Template.indent(fallback)]))};`,
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 {Object} AsyncWebAssemblyGeneratorOptions
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 {Object} WebAssemblyRenderContext
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 {Object} CompilationHooks
52
+ * @typedef {object} CompilationHooks
53
53
  * @property {SyncWaterfallHook<[Source, Module, WebAssemblyRenderContext]>} renderModuleContent
54
54
  */
55
55
 
56
56
  /**
57
- * @typedef {Object} AsyncWebAssemblyModulesPluginOptions
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 {Object} WasmChunkLoadingRuntimeModuleOptions
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 {Object} state state
59
- * @param {Object} state.ast Module's ast
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 {Object} ast Module's AST
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 {Object} ast Module's AST
95
- * @returns {Number} - count
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 {Object} ast Module's AST
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 {Object} ast Module's AST
135
- * @param {Number} countImportedFunc number of imported funcs
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 {Object} state transformation state
182
- * @param {Object} state.ast Module's ast
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 {Object} state state
252
- * @param {Object} state.ast Module's ast
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 {Object} state state
287
- * @param {Object} state.ast Module's ast
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 {Object} state transformation state
317
- * @param {Object} state.ast Module's ast
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 {Object} WebAssemblyGeneratorOptions
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 {Object} WebAssemblyModulesPluginOptions
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
- /** @typedef {Object} UsedWasmDependency
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 {Object} FetchCompileWasmPluginOptions
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 {Object} JsonpCompilationPluginHooks
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 => createCompiler(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(options);
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.91.0",
3
+ "version": "5.92.0",
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-assertions": "^1.9.0",
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.16.0",
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.23.7",
40
- "@babel/preset-react": "^7.23.3",
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.6.0",
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": "^8.48.0",
59
+ "eslint": "^9.4.0",
59
60
  "eslint-config-prettier": "^9.1.0",
60
- "eslint-plugin-jest": "^27.6.3",
61
- "eslint-plugin-jsdoc": "^48.1.0",
62
- "eslint-plugin-n": "^16.6.2",
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.2",
82
+ "lint-staged": "^15.2.5",
81
83
  "lodash": "^4.17.19",
82
84
  "lodash-es": "^4.17.15",
83
- "memfs": "^4.7.7",
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": "^15.1.0",
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.0",
93
+ "pug": "^3.0.3",
92
94
  "pug-loader": "^2.4.0",
93
95
  "raw-loader": "^4.0.1",
94
- "react": "^18.2.0",
95
- "react-dom": "^18.2.0",
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.17.0",
100
+ "simple-git": "^3.25.0",
99
101
  "strip-ansi": "^6.0.0",
100
102
  "style-loader": "^2.0.0",
101
- "terser": "^5.26.0",
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",