webpack 5.99.9 → 5.100.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.
- package/bin/webpack.js +8 -2
- package/hot/log.js +15 -15
- package/hot/poll.js +1 -0
- package/lib/APIPlugin.js +3 -3
- package/lib/AbstractMethodError.js +1 -0
- package/lib/AutomaticPrefetchPlugin.js +1 -0
- package/lib/BannerPlugin.js +1 -1
- package/lib/CaseSensitiveModulesWarning.js +4 -4
- package/lib/Chunk.js +6 -6
- package/lib/ChunkGraph.js +37 -31
- package/lib/ChunkGroup.js +4 -4
- package/lib/ChunkTemplate.js +1 -1
- package/lib/CleanPlugin.js +94 -17
- package/lib/CodeGenerationResults.js +1 -1
- package/lib/CompatibilityPlugin.js +5 -2
- package/lib/Compilation.js +67 -45
- package/lib/Compiler.js +46 -16
- package/lib/ConcatenationScope.js +15 -6
- package/lib/ConstPlugin.js +5 -3
- package/lib/ContextModule.js +16 -12
- package/lib/ContextModuleFactory.js +4 -3
- package/lib/ContextReplacementPlugin.js +4 -2
- package/lib/CssModule.js +2 -2
- package/lib/DefinePlugin.js +111 -3
- package/lib/DelegatedModuleFactoryPlugin.js +18 -18
- package/lib/Dependency.js +11 -4
- package/lib/DependencyTemplate.js +1 -0
- package/lib/DllEntryPlugin.js +3 -1
- package/lib/DllPlugin.js +4 -3
- package/lib/DllReferencePlugin.js +2 -2
- package/lib/DynamicEntryPlugin.js +1 -1
- package/lib/EntryOptionPlugin.js +5 -0
- package/lib/ErrorHelpers.js +4 -4
- package/lib/EvalDevToolModulePlugin.js +3 -3
- package/lib/EvalSourceMapDevToolPlugin.js +7 -7
- package/lib/ExportsInfo.js +48 -39
- package/lib/ExternalModule.js +15 -11
- package/lib/ExternalModuleFactoryPlugin.js +5 -2
- package/lib/FileSystemInfo.js +51 -36
- package/lib/FlagDependencyExportsPlugin.js +14 -7
- package/lib/FlagDependencyUsagePlugin.js +1 -1
- package/lib/Generator.js +14 -1
- package/lib/HookWebpackError.js +1 -0
- package/lib/HotModuleReplacementPlugin.js +77 -50
- package/lib/IgnorePlugin.js +5 -2
- package/lib/InvalidDependenciesModuleWarning.js +1 -1
- package/lib/JavascriptMetaInfoPlugin.js +0 -1
- package/lib/LibManifestPlugin.js +4 -2
- package/lib/LoaderOptionsPlugin.js +6 -4
- package/lib/MainTemplate.js +2 -2
- package/lib/Module.js +21 -6
- package/lib/ModuleFactory.js +1 -0
- package/lib/ModuleGraph.js +24 -2
- package/lib/ModuleGraphConnection.js +5 -5
- package/lib/ModuleInfoHeaderPlugin.js +2 -1
- package/lib/ModuleParseError.js +1 -0
- package/lib/ModuleSourceTypesConstants.js +12 -12
- package/lib/ModuleTemplate.js +1 -1
- package/lib/ModuleTypeConstants.js +21 -21
- package/lib/MultiCompiler.js +6 -6
- package/lib/NormalModule.js +31 -44
- package/lib/NormalModuleFactory.js +34 -20
- package/lib/NormalModuleReplacementPlugin.js +1 -1
- package/lib/NullFactory.js +1 -0
- package/lib/OptimizationStages.js +1 -1
- package/lib/Parser.js +1 -0
- package/lib/ProgressPlugin.js +12 -5
- package/lib/ProvidePlugin.js +5 -1
- package/lib/RawModule.js +14 -0
- package/lib/RecordIdsPlugin.js +3 -3
- package/lib/RuntimeGlobals.js +175 -155
- package/lib/RuntimeModule.js +1 -0
- package/lib/RuntimePlugin.js +33 -7
- package/lib/RuntimeTemplate.js +111 -11
- package/lib/SourceMapDevToolModuleOptionsPlugin.js +15 -25
- package/lib/SourceMapDevToolPlugin.js +19 -17
- package/lib/Template.js +2 -2
- package/lib/TemplatedPathPlugin.js +1 -1
- package/lib/WarnDeprecatedOptionPlugin.js +7 -8
- package/lib/WatchIgnorePlugin.js +4 -3
- package/lib/WebpackIsIncludedPlugin.js +2 -1
- package/lib/WebpackOptionsApply.js +115 -27
- package/lib/asset/AssetGenerator.js +15 -11
- package/lib/asset/AssetModulesPlugin.js +19 -17
- package/lib/asset/AssetSourceGenerator.js +4 -4
- package/lib/asset/RawDataUrlModule.js +4 -2
- package/lib/async-modules/AwaitDependenciesInitFragment.js +1 -1
- package/lib/buildChunkGraph.js +6 -3
- package/lib/cache/AddBuildDependenciesPlugin.js +5 -6
- package/lib/cache/IdleFileCachePlugin.js +7 -4
- package/lib/cache/MemoryCachePlugin.js +1 -0
- package/lib/cache/MemoryWithGcCachePlugin.js +1 -0
- package/lib/cache/PackFileCacheStrategy.js +26 -20
- package/lib/cache/ResolverCachePlugin.js +16 -8
- package/lib/cli.js +15 -10
- package/lib/config/browserslistTargetHandler.js +3 -3
- package/lib/config/defaults.js +25 -17
- package/lib/config/normalization.js +2 -1
- package/lib/config/target.js +6 -5
- package/lib/container/ContainerPlugin.js +1 -1
- package/lib/container/ContainerReferencePlugin.js +1 -1
- package/lib/container/FallbackModule.js +2 -1
- package/lib/container/HoistContainerReferencesPlugin.js +1 -1
- package/lib/container/ModuleFederationPlugin.js +2 -2
- package/lib/container/RemoteModule.js +1 -1
- package/lib/css/CssGenerator.js +9 -6
- package/lib/css/CssModulesPlugin.js +44 -31
- package/lib/css/CssParser.js +6 -4
- package/lib/css/walkCssTokens.js +33 -37
- package/lib/debug/ProfilingPlugin.js +6 -6
- package/lib/dependencies/AMDDefineDependencyParserPlugin.js +8 -8
- package/lib/dependencies/AMDPlugin.js +12 -8
- package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +28 -26
- package/lib/dependencies/CachedConstDependency.js +1 -5
- package/lib/dependencies/CommonJsExportRequireDependency.js +6 -4
- package/lib/dependencies/CommonJsExportsParserPlugin.js +22 -25
- package/lib/dependencies/CommonJsFullRequireDependency.js +1 -9
- package/lib/dependencies/CommonJsImportsParserPlugin.js +100 -114
- package/lib/dependencies/CommonJsPlugin.js +15 -16
- package/lib/dependencies/ContextDependencyHelpers.js +2 -1
- package/lib/dependencies/ContextDependencyTemplateAsId.js +1 -0
- package/lib/dependencies/ContextDependencyTemplateAsRequireCall.js +1 -0
- package/lib/dependencies/CssIcssExportDependency.js +1 -1
- package/lib/dependencies/CssLocalIdentifierDependency.js +2 -2
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +2 -1
- package/lib/dependencies/DynamicExports.js +9 -9
- package/lib/dependencies/ExportsInfoDependency.js +1 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +122 -101
- package/lib/dependencies/HarmonyExportExpressionDependency.js +1 -1
- package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +95 -19
- package/lib/dependencies/HarmonyExportInitFragment.js +1 -1
- package/lib/dependencies/HarmonyImportDependency.js +11 -5
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +238 -162
- package/lib/dependencies/HarmonyImportSideEffectDependency.js +4 -1
- package/lib/dependencies/HarmonyImportSpecifierDependency.js +20 -9
- package/lib/dependencies/HarmonyModulesPlugin.js +23 -12
- package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -0
- package/lib/dependencies/ImportMetaContextPlugin.js +2 -1
- package/lib/dependencies/ImportMetaPlugin.js +2 -2
- package/lib/dependencies/ImportParserPlugin.js +40 -9
- package/lib/dependencies/ImportPlugin.js +3 -1
- package/lib/dependencies/LoaderPlugin.js +1 -0
- package/lib/dependencies/ModuleDependency.js +3 -1
- package/lib/dependencies/ModuleDependencyTemplateAsRequireId.js +1 -0
- package/lib/dependencies/RequireContextPlugin.js +3 -1
- package/lib/dependencies/RequireEnsurePlugin.js +6 -6
- package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +33 -34
- package/lib/dependencies/RequireIncludePlugin.js +1 -0
- package/lib/dependencies/RuntimeRequirementsDependency.js +1 -1
- package/lib/dependencies/SystemPlugin.js +1 -1
- package/lib/dependencies/URLContextDependency.js +65 -0
- package/lib/dependencies/URLPlugin.js +17 -157
- package/lib/dependencies/WorkerPlugin.js +23 -10
- package/lib/dependencies/processExportInfo.js +2 -1
- package/lib/esm/ModuleChunkFormatPlugin.js +269 -185
- package/lib/esm/ModuleChunkLoadingPlugin.js +39 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +70 -3
- package/lib/hmr/HotModuleReplacement.runtime.js +0 -1
- package/lib/hmr/HotModuleReplacementRuntimeModule.js +1 -1
- package/lib/hmr/JavascriptHotModuleReplacementHelper.js +37 -0
- package/lib/hmr/LazyCompilationPlugin.js +4 -2
- package/lib/hmr/lazyCompilationBackend.js +4 -2
- package/lib/ids/ChunkModuleIdRangePlugin.js +6 -3
- package/lib/ids/DeterministicChunkIdsPlugin.js +30 -35
- package/lib/ids/DeterministicModuleIdsPlugin.js +4 -3
- package/lib/ids/HashedModuleIdsPlugin.js +5 -4
- package/lib/ids/IdHelpers.js +21 -17
- package/lib/ids/NamedChunkIdsPlugin.js +5 -5
- package/lib/ids/NamedModuleIdsPlugin.js +4 -4
- package/lib/ids/NaturalChunkIdsPlugin.js +2 -1
- package/lib/ids/NaturalModuleIdsPlugin.js +1 -1
- package/lib/ids/OccurrenceChunkIdsPlugin.js +3 -2
- package/lib/ids/OccurrenceModuleIdsPlugin.js +1 -1
- package/lib/ids/SyncModuleIdsPlugin.js +1 -1
- package/lib/index.js +13 -3
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +113 -119
- package/lib/javascript/BasicEvaluatedExpression.js +2 -1
- package/lib/javascript/ChunkHelpers.js +1 -0
- package/lib/javascript/CommonJsChunkFormatPlugin.js +121 -136
- package/lib/javascript/EnableChunkLoadingPlugin.js +6 -3
- package/lib/javascript/JavascriptGenerator.js +14 -2
- package/lib/javascript/JavascriptModulesPlugin.js +68 -27
- package/lib/javascript/JavascriptParser.js +117 -76
- package/lib/javascript/JavascriptParserHelpers.js +41 -41
- package/lib/javascript/StartupHelpers.js +17 -17
- package/lib/json/JsonGenerator.js +4 -2
- package/lib/json/JsonModulesPlugin.js +2 -2
- package/lib/json/JsonParser.js +1 -1
- package/lib/library/AbstractLibraryPlugin.js +6 -2
- package/lib/library/AssignLibraryPlugin.js +21 -6
- package/lib/library/EnableLibraryPlugin.js +23 -3
- package/lib/library/UmdLibraryPlugin.js +15 -6
- package/lib/logging/createConsoleLogger.js +3 -3
- package/lib/logging/runtime.js +9 -9
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +4 -22
- package/lib/node/RequireChunkLoadingRuntimeModule.js +4 -22
- package/lib/node/nodeConsole.js +4 -2
- package/lib/optimize/AggressiveMergingPlugin.js +45 -46
- package/lib/optimize/AggressiveSplittingPlugin.js +13 -12
- package/lib/optimize/ConcatenatedModule.js +227 -57
- package/lib/optimize/EnsureChunkConditionsPlugin.js +58 -58
- package/lib/optimize/FlagIncludedChunksPlugin.js +3 -1
- package/lib/optimize/InnerGraph.js +115 -112
- package/lib/optimize/InnerGraphPlugin.js +2 -2
- package/lib/optimize/LimitChunkCountPlugin.js +4 -2
- package/lib/optimize/MangleExportsPlugin.js +4 -3
- package/lib/optimize/MergeDuplicateChunksPlugin.js +80 -81
- package/lib/optimize/MinChunkSizePlugin.js +6 -3
- package/lib/optimize/ModuleConcatenationPlugin.js +31 -22
- package/lib/optimize/RealContentHashPlugin.js +26 -20
- package/lib/optimize/RemoveEmptyChunksPlugin.js +2 -1
- package/lib/optimize/RemoveParentModulesPlugin.js +1 -0
- package/lib/optimize/SideEffectsFlagPlugin.js +3 -2
- package/lib/optimize/SplitChunksPlugin.js +16 -13
- package/lib/rules/BasicEffectRulePlugin.js +4 -2
- package/lib/rules/BasicMatcherRulePlugin.js +3 -1
- package/lib/rules/ObjectMatcherRulePlugin.js +3 -1
- package/lib/rules/RuleSetCompiler.js +19 -5
- package/lib/rules/UseEffectRulePlugin.js +17 -9
- package/lib/runtime/AsyncModuleRuntimeModule.js +64 -9
- package/lib/runtime/CreateFakeNamespaceObjectRuntimeModule.js +1 -1
- package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +214 -0
- package/lib/runtime/RuntimeIdRuntimeModule.js +2 -1
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +8 -7
- package/lib/schemes/FileUriPlugin.js +1 -1
- package/lib/schemes/HttpUriPlugin.js +27 -19
- package/lib/schemes/VirtualUrlPlugin.js +222 -0
- package/lib/serialization/AggregateErrorSerializer.js +1 -1
- package/lib/serialization/BinaryMiddleware.js +5 -4
- package/lib/serialization/FileMiddleware.js +7 -4
- package/lib/serialization/ObjectMiddleware.js +14 -8
- package/lib/serialization/Serializer.js +5 -3
- package/lib/serialization/SerializerMiddleware.js +2 -0
- package/lib/sharing/ConsumeSharedModule.js +1 -1
- package/lib/sharing/ConsumeSharedPlugin.js +3 -3
- package/lib/sharing/ConsumeSharedRuntimeModule.js +2 -2
- package/lib/sharing/ProvideSharedModule.js +1 -1
- package/lib/sharing/ProvideSharedPlugin.js +3 -2
- package/lib/sharing/SharePlugin.js +2 -1
- package/lib/sharing/ShareRuntimeModule.js +3 -5
- package/lib/sharing/utils.js +34 -34
- package/lib/stats/DefaultStatsFactoryPlugin.js +49 -46
- package/lib/stats/DefaultStatsPresetPlugin.js +13 -13
- package/lib/stats/DefaultStatsPrinterPlugin.js +15 -9
- package/lib/stats/StatsFactory.js +6 -3
- package/lib/stats/StatsPrinter.js +6 -7
- package/lib/url/URLParserPlugin.js +266 -0
- package/lib/util/ArrayQueue.js +1 -1
- package/lib/util/AsyncQueue.js +1 -1
- package/lib/util/Hash.js +2 -0
- package/lib/util/IterableHelpers.js +1 -1
- package/lib/util/LazyBucketSortedSet.js +2 -1
- package/lib/util/LazySet.js +11 -6
- package/lib/util/ParallelismFactorCalculator.js +1 -1
- package/lib/util/SetHelpers.js +3 -3
- package/lib/util/SortableSet.js +2 -2
- package/lib/util/StackedCacheMap.js +3 -1
- package/lib/util/StackedMap.js +2 -2
- package/lib/util/StringXor.js +1 -0
- package/lib/util/TupleSet.js +1 -0
- package/lib/util/URLAbsoluteSpecifier.js +1 -1
- package/lib/util/cleverMerge.js +95 -58
- package/lib/util/comparators.js +154 -127
- package/lib/util/compileBooleanMatcher.js +8 -3
- package/lib/util/concatenate.js +8 -7
- package/lib/util/conventions.js +72 -73
- package/lib/util/create-schema-validation.js +2 -1
- package/lib/util/createHash.js +10 -4
- package/lib/util/deprecation.js +69 -66
- package/lib/util/deterministicGrouping.js +4 -2
- package/lib/util/extractUrlAndGlobal.js +1 -1
- package/lib/util/findGraphRoots.js +2 -2
- package/lib/util/fs.js +30 -23
- package/lib/util/hash/md4.js +2 -2
- package/lib/util/hash/wasm-hash.js +4 -2
- package/lib/util/identifier.js +13 -12
- package/lib/util/internalSerializables.js +2 -0
- package/lib/util/magicComment.js +5 -5
- package/lib/util/processAsyncTree.js +1 -1
- package/lib/util/propertyAccess.js +1 -1
- package/lib/util/propertyName.js +1 -1
- package/lib/util/registerExternalSerializer.js +1 -2
- package/lib/util/removeBOM.js +1 -1
- package/lib/util/runtime.js +29 -21
- package/lib/util/semver.js +1 -1
- package/lib/util/serialization.js +3 -0
- package/lib/util/source.js +3 -2
- package/lib/validateSchema.js +1 -0
- package/lib/wasm/EnableWasmLoadingPlugin.js +6 -3
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +4 -1
- package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +46 -49
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +2 -2
- package/lib/wasm-sync/WebAssemblyGenerator.js +2 -3
- package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +3 -2
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +3 -0
- package/lib/wasm-sync/WebAssemblyUtils.js +1 -1
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +4 -22
- package/lib/webpack.js +4 -5
- package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +1 -0
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +6 -24
- package/lib/webworker/WebWorkerTemplatePlugin.js +1 -0
- package/package.json +119 -113
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +17 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.d.ts +7 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.check.js +6 -0
- package/schemas/plugins/schemes/VirtualUrlPlugin.json +77 -0
- package/types.d.ts +1243 -409
package/package.json
CHANGED
|
@@ -1,20 +1,97 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webpack",
|
|
3
|
-
"version": "5.
|
|
4
|
-
"author": "Tobias Koppers @sokra",
|
|
3
|
+
"version": "5.100.1",
|
|
5
4
|
"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.",
|
|
5
|
+
"homepage": "https://github.com/webpack/webpack",
|
|
6
|
+
"bugs": "https://github.com/webpack/webpack/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/webpack/webpack.git"
|
|
10
|
+
},
|
|
11
|
+
"funding": {
|
|
12
|
+
"type": "opencollective",
|
|
13
|
+
"url": "https://opencollective.com/webpack"
|
|
14
|
+
},
|
|
6
15
|
"license": "MIT",
|
|
16
|
+
"author": "Tobias Koppers @sokra",
|
|
17
|
+
"main": "lib/index.js",
|
|
18
|
+
"types": "types.d.ts",
|
|
19
|
+
"bin": {
|
|
20
|
+
"webpack": "bin/webpack.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"lib/",
|
|
24
|
+
"bin/",
|
|
25
|
+
"hot/",
|
|
26
|
+
"schemas/",
|
|
27
|
+
"SECURITY.md",
|
|
28
|
+
"module.d.ts",
|
|
29
|
+
"types.d.ts"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"prepare": "husky",
|
|
33
|
+
"setup": "node ./setup/setup.js",
|
|
34
|
+
"prelint": "yarn setup",
|
|
35
|
+
"lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-module-test && yarn lint:yarn && yarn fmt:check && yarn lint:spellcheck",
|
|
36
|
+
"lint:code": "node node_modules/eslint/bin/eslint.js --cache .",
|
|
37
|
+
"lint:special": "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/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
|
|
38
|
+
"lint:types": "tsc",
|
|
39
|
+
"lint:types-test": "tsc -p tsconfig.types.test.json",
|
|
40
|
+
"lint:types-module-test": "tsc -p tsconfig.module.test.json",
|
|
41
|
+
"lint:yarn": "yarn-deduplicate --fail --list -s highest yarn.lock",
|
|
42
|
+
"lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
|
|
43
|
+
"report:types": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
|
|
44
|
+
"validate:types": "tsc -p tsconfig.validation.json",
|
|
45
|
+
"fmt": "yarn fmt:base --log-level warn --write",
|
|
46
|
+
"fmt:check": "yarn fmt:base --check",
|
|
47
|
+
"fmt:base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
|
|
48
|
+
"fix": "yarn fix:code && yarn fix:yarn && yarn fix:special && yarn fmt",
|
|
49
|
+
"fix:code": "yarn lint:code --fix",
|
|
50
|
+
"fix:yarn": "yarn-deduplicate -s highest yarn.lock",
|
|
51
|
+
"fix:special": "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/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
|
|
52
|
+
"build:examples": "cd examples && node buildAll.js",
|
|
53
|
+
"benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./test/BenchmarkTestCases.benchmark.mjs",
|
|
54
|
+
"pretest": "yarn lint",
|
|
55
|
+
"test": "yarn test:base",
|
|
56
|
+
"test:update-snapshots": "yarn test:base -u",
|
|
57
|
+
"test:basic": "yarn test:base --testMatch \"<rootDir>/test/*.basictest.js\"",
|
|
58
|
+
"test:unit": "yarn test:base --testMatch \"<rootDir>/test/*.unittest.js\"",
|
|
59
|
+
"test:integration": "yarn test:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
|
|
60
|
+
"test:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
|
|
61
|
+
"cover": "yarn cover:all && yarn cover:report",
|
|
62
|
+
"cover:clean": "rimraf .nyc_output coverage",
|
|
63
|
+
"cover:all": "yarn cover:base --coverage",
|
|
64
|
+
"cover:unit": "yarn cover:base --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
|
|
65
|
+
"cover:basic": "yarn cover:base --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
|
|
66
|
+
"cover:integration": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
|
|
67
|
+
"cover:integration:a": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
|
|
68
|
+
"cover:integration:b": "yarn cover:base --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
|
|
69
|
+
"cover:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage",
|
|
70
|
+
"cover:types": "node node_modules/tooling/type-coverage",
|
|
71
|
+
"cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
|
|
72
|
+
"cover:report": "nyc report --reporter=lcov --reporter=text -t coverage"
|
|
73
|
+
},
|
|
74
|
+
"lint-staged": {
|
|
75
|
+
"*.{js,cjs,mjs}": [
|
|
76
|
+
"node node_modules/eslint/bin/eslint.js --cache --fix"
|
|
77
|
+
],
|
|
78
|
+
"*": [
|
|
79
|
+
"node node_modules/prettier/bin/prettier.cjs --cache --write --ignore-unknown",
|
|
80
|
+
"cspell --cache --no-must-find-files"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
7
83
|
"dependencies": {
|
|
8
84
|
"@types/eslint-scope": "^3.7.7",
|
|
9
|
-
"@types/estree": "^1.0.
|
|
85
|
+
"@types/estree": "^1.0.8",
|
|
10
86
|
"@types/json-schema": "^7.0.15",
|
|
11
87
|
"@webassemblyjs/ast": "^1.14.1",
|
|
12
88
|
"@webassemblyjs/wasm-edit": "^1.14.1",
|
|
13
89
|
"@webassemblyjs/wasm-parser": "^1.14.1",
|
|
14
|
-
"acorn": "^8.
|
|
90
|
+
"acorn": "^8.15.0",
|
|
91
|
+
"acorn-import-phases": "^1.0.3",
|
|
15
92
|
"browserslist": "^4.24.0",
|
|
16
93
|
"chrome-trace-event": "^1.0.2",
|
|
17
|
-
"enhanced-resolve": "^5.17.
|
|
94
|
+
"enhanced-resolve": "^5.17.2",
|
|
18
95
|
"es-module-lexer": "^1.2.1",
|
|
19
96
|
"eslint-scope": "5.1.1",
|
|
20
97
|
"events": "^3.2.0",
|
|
@@ -28,59 +105,58 @@
|
|
|
28
105
|
"tapable": "^2.1.1",
|
|
29
106
|
"terser-webpack-plugin": "^5.3.11",
|
|
30
107
|
"watchpack": "^2.4.1",
|
|
31
|
-
"webpack-sources": "^3.
|
|
32
|
-
},
|
|
33
|
-
"peerDependenciesMeta": {
|
|
34
|
-
"webpack-cli": {
|
|
35
|
-
"optional": true
|
|
36
|
-
}
|
|
108
|
+
"webpack-sources": "^3.3.3"
|
|
37
109
|
},
|
|
38
110
|
"devDependencies": {
|
|
39
111
|
"@babel/core": "^7.27.1",
|
|
40
112
|
"@babel/preset-react": "^7.27.1",
|
|
41
113
|
"@codspeed/tinybench-plugin": "^4.0.1",
|
|
42
|
-
"@eslint/js": "^9.
|
|
43
|
-
"@
|
|
114
|
+
"@eslint/js": "^9.29.0",
|
|
115
|
+
"@eslint/markdown": "^6.6.0",
|
|
116
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
44
117
|
"@types/glob-to-regexp": "^0.4.4",
|
|
45
|
-
"@types/
|
|
118
|
+
"@types/graceful-fs": "^4.1.9",
|
|
119
|
+
"@types/jest": "^30.0.0",
|
|
46
120
|
"@types/mime-types": "^2.1.4",
|
|
47
|
-
"@types/node": "^
|
|
121
|
+
"@types/node": "^24.0.13",
|
|
48
122
|
"@types/xxhashjs": "^0.2.4",
|
|
49
|
-
"assemblyscript": "^0.
|
|
123
|
+
"assemblyscript": "^0.28.2",
|
|
50
124
|
"babel-loader": "^10.0.0",
|
|
51
125
|
"bundle-loader": "^0.5.6",
|
|
52
126
|
"coffee-loader": "^5.0.0",
|
|
53
127
|
"coffeescript": "^2.5.1",
|
|
54
|
-
"core-js": "^3.
|
|
55
|
-
"cspell": "^9.
|
|
128
|
+
"core-js": "^3.43.0",
|
|
129
|
+
"cspell": "^9.1.1",
|
|
56
130
|
"css-loader": "^7.1.2",
|
|
57
131
|
"date-fns": "^4.0.0",
|
|
58
132
|
"es5-ext": "^0.10.53",
|
|
59
133
|
"es6-promise-polyfill": "^1.2.0",
|
|
60
|
-
"eslint": "^9.
|
|
134
|
+
"eslint": "^9.29.0",
|
|
61
135
|
"eslint-config-prettier": "^10.1.1",
|
|
62
|
-
"eslint-
|
|
63
|
-
"eslint-plugin-
|
|
64
|
-
"eslint-plugin-
|
|
65
|
-
"eslint-plugin-
|
|
66
|
-
"eslint-plugin-
|
|
136
|
+
"eslint-config-webpack": "^4.3.0",
|
|
137
|
+
"eslint-plugin-import": "^2.32.0",
|
|
138
|
+
"eslint-plugin-jest": "^29.0.1",
|
|
139
|
+
"eslint-plugin-jsdoc": "^51.2.3",
|
|
140
|
+
"eslint-plugin-n": "^17.21.0",
|
|
141
|
+
"eslint-plugin-prettier": "^5.5.0",
|
|
142
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
67
143
|
"file-loader": "^6.0.0",
|
|
68
144
|
"fork-ts-checker-webpack-plugin": "^9.0.2",
|
|
69
145
|
"globals": "^16.0.0",
|
|
70
146
|
"hash-wasm": "^4.9.0",
|
|
71
147
|
"husky": "^9.0.11",
|
|
72
148
|
"istanbul": "^0.4.5",
|
|
73
|
-
"jest": "^
|
|
74
|
-
"jest-circus": "^
|
|
75
|
-
"jest-cli": "^
|
|
76
|
-
"jest-diff": "^
|
|
77
|
-
"jest-environment-node": "^
|
|
149
|
+
"jest": "^30.0.3",
|
|
150
|
+
"jest-circus": "^30.0.3",
|
|
151
|
+
"jest-cli": "^30.0.3",
|
|
152
|
+
"jest-diff": "^30.0.3",
|
|
153
|
+
"jest-environment-node": "^30.0.2",
|
|
78
154
|
"jest-junit": "^16.0.0",
|
|
79
155
|
"json-loader": "^0.5.7",
|
|
80
156
|
"json5": "^2.1.3",
|
|
81
157
|
"less": "^4.0.0",
|
|
82
158
|
"less-loader": "^12.2.0",
|
|
83
|
-
"lint-staged": "^16.
|
|
159
|
+
"lint-staged": "^16.1.2",
|
|
84
160
|
"lodash": "^4.17.19",
|
|
85
161
|
"lodash-es": "^4.17.15",
|
|
86
162
|
"memfs": "^4.14.0",
|
|
@@ -89,9 +165,9 @@
|
|
|
89
165
|
"node-gyp": "^11.2.0",
|
|
90
166
|
"nyc": "^17.1.0",
|
|
91
167
|
"open-cli": "^8.0.0",
|
|
92
|
-
"prettier": "^3.
|
|
168
|
+
"prettier": "^3.6.0",
|
|
93
169
|
"prettier-2": "npm:prettier@^2",
|
|
94
|
-
"pretty-format": "^
|
|
170
|
+
"pretty-format": "^30.0.2",
|
|
95
171
|
"pug": "^3.0.3",
|
|
96
172
|
"pug-loader": "^2.4.0",
|
|
97
173
|
"raw-loader": "^4.0.1",
|
|
@@ -99,14 +175,14 @@
|
|
|
99
175
|
"react-dom": "^19.0.0",
|
|
100
176
|
"rimraf": "^3.0.2",
|
|
101
177
|
"script-loader": "^0.7.2",
|
|
102
|
-
"simple-git": "^3.
|
|
178
|
+
"simple-git": "^3.28.0",
|
|
103
179
|
"strip-ansi": "^6.0.0",
|
|
104
180
|
"style-loader": "^4.0.0",
|
|
105
|
-
"terser": "^5.
|
|
106
|
-
"three": "^0.
|
|
181
|
+
"terser": "^5.43.1",
|
|
182
|
+
"three": "^0.178.0",
|
|
107
183
|
"tinybench": "^4.0.1",
|
|
108
184
|
"toml": "^3.0.0",
|
|
109
|
-
"tooling": "webpack/tooling#v1.
|
|
185
|
+
"tooling": "webpack/tooling#v1.24.3",
|
|
110
186
|
"ts-loader": "^9.5.1",
|
|
111
187
|
"typescript": "^5.8.2",
|
|
112
188
|
"url-loader": "^4.1.0",
|
|
@@ -117,83 +193,13 @@
|
|
|
117
193
|
"yamljs": "^0.3.0",
|
|
118
194
|
"yarn-deduplicate": "^6.0.1"
|
|
119
195
|
},
|
|
196
|
+
"peerDependenciesMeta": {
|
|
197
|
+
"webpack-cli": {
|
|
198
|
+
"optional": true
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e",
|
|
120
202
|
"engines": {
|
|
121
203
|
"node": ">=10.13.0"
|
|
122
|
-
}
|
|
123
|
-
"repository": {
|
|
124
|
-
"type": "git",
|
|
125
|
-
"url": "https://github.com/webpack/webpack.git"
|
|
126
|
-
},
|
|
127
|
-
"funding": {
|
|
128
|
-
"type": "opencollective",
|
|
129
|
-
"url": "https://opencollective.com/webpack"
|
|
130
|
-
},
|
|
131
|
-
"homepage": "https://github.com/webpack/webpack",
|
|
132
|
-
"bugs": "https://github.com/webpack/webpack/issues",
|
|
133
|
-
"main": "lib/index.js",
|
|
134
|
-
"bin": {
|
|
135
|
-
"webpack": "bin/webpack.js"
|
|
136
|
-
},
|
|
137
|
-
"types": "types.d.ts",
|
|
138
|
-
"files": [
|
|
139
|
-
"lib/",
|
|
140
|
-
"bin/",
|
|
141
|
-
"hot/",
|
|
142
|
-
"schemas/",
|
|
143
|
-
"SECURITY.md",
|
|
144
|
-
"module.d.ts",
|
|
145
|
-
"types.d.ts"
|
|
146
|
-
],
|
|
147
|
-
"scripts": {
|
|
148
|
-
"prepare": "husky",
|
|
149
|
-
"setup": "node ./setup/setup.js",
|
|
150
|
-
"prelint": "yarn setup",
|
|
151
|
-
"lint": "yarn lint:code && yarn lint:special && yarn lint:types && yarn lint:types-test && yarn lint:types-module-test && yarn lint:yarn && yarn fmt:check && yarn lint:spellcheck",
|
|
152
|
-
"lint:code": "node node_modules/eslint/bin/eslint.js --cache .",
|
|
153
|
-
"lint:special": "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",
|
|
154
|
-
"lint:types": "tsc",
|
|
155
|
-
"lint:types-test": "tsc -p tsconfig.types.test.json",
|
|
156
|
-
"lint:types-module-test": "tsc -p tsconfig.module.test.json",
|
|
157
|
-
"lint:yarn": "yarn-deduplicate --fail --list -s highest yarn.lock",
|
|
158
|
-
"lint:spellcheck": "cspell --cache --no-must-find-files --quiet \"**/*.*\"",
|
|
159
|
-
"report:types": "rimraf coverage && yarn cover:types && yarn cover:report && open-cli coverage/lcov-report/index.html",
|
|
160
|
-
"validate:types": "tsc -p tsconfig.validation.json",
|
|
161
|
-
"fmt": "yarn fmt:base --log-level warn --write",
|
|
162
|
-
"fmt:check": "yarn fmt:base --check",
|
|
163
|
-
"fmt:base": "node node_modules/prettier/bin/prettier.cjs --cache --ignore-unknown .",
|
|
164
|
-
"fix": "yarn fix:code && fix:yarn && fix:special && yarn fmt",
|
|
165
|
-
"fix:code": "yarn lint:code --fix",
|
|
166
|
-
"fix:yarn": "yarn-deduplicate -s highest yarn.lock",
|
|
167
|
-
"fix:special": "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",
|
|
168
|
-
"build:examples": "cd examples && node buildAll.js",
|
|
169
|
-
"benchmark": "node --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation --hash-seed=1 --random-seed=1 --no-opt --predictable --predictable-gc-schedule --interpreted-frames-native-stack --allow-natives-syntax --expose-gc --no-concurrent-sweeping ./test/BenchmarkTestCases.benchmark.mjs",
|
|
170
|
-
"pretest": "yarn lint",
|
|
171
|
-
"test": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules --trace-deprecation node_modules/jest-cli/bin/jest --logHeapUsage",
|
|
172
|
-
"test:update-snapshots": "yarn test -u",
|
|
173
|
-
"test:basic": "yarn test --testMatch \"<rootDir>/test/*.basictest.js\"",
|
|
174
|
-
"test:unit": "yarn test --testMatch \"<rootDir>/test/*.unittest.js\"",
|
|
175
|
-
"test:integration": "yarn test --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\"",
|
|
176
|
-
"cover": "yarn cover:all && yarn cover:report",
|
|
177
|
-
"cover:clean": "rimraf .nyc_output coverage",
|
|
178
|
-
"cover:all": "yarn cover:base --coverage",
|
|
179
|
-
"cover:unit": "yarn cover:base --testMatch \"<rootDir>/test/*.unittest.js\" --coverage",
|
|
180
|
-
"cover:basic": "yarn cover:base --testMatch \"<rootDir>/test/*.basictest.js\" --coverage",
|
|
181
|
-
"cover:integration": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,longtest,test}.js\" --coverage",
|
|
182
|
-
"cover:integration:a": "yarn cover:base --testMatch \"<rootDir>/test/*.{basictest,test}.js\" --coverage",
|
|
183
|
-
"cover:integration:b": "yarn cover:base --testMatch \"<rootDir>/test/*.longtest.js\" --coverage",
|
|
184
|
-
"cover:base": "node --expose-gc --max-old-space-size=4096 --experimental-vm-modules node_modules/jest-cli/bin/jest --logHeapUsage",
|
|
185
|
-
"cover:types": "node node_modules/tooling/type-coverage",
|
|
186
|
-
"cover:merge": "yarn mkdirp .nyc_output && nyc merge .nyc_output coverage/coverage-nyc.json && rimraf .nyc_output",
|
|
187
|
-
"cover:report": "nyc report --reporter=lcov --reporter=text -t coverage"
|
|
188
|
-
},
|
|
189
|
-
"lint-staged": {
|
|
190
|
-
"*.{js,cjs,mjs}": [
|
|
191
|
-
"node node_modules/eslint/bin/eslint.js --cache --fix"
|
|
192
|
-
],
|
|
193
|
-
"*": [
|
|
194
|
-
"node node_modules/prettier/bin/prettier.cjs --cache --write --ignore-unknown",
|
|
195
|
-
"cspell --cache --no-must-find-files"
|
|
196
|
-
]
|
|
197
|
-
},
|
|
198
|
-
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
204
|
+
}
|
|
199
205
|
}
|