webpack 5.89.0 → 5.90.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.
- package/README.md +3 -0
- package/bin/webpack.js +1 -3
- package/hot/log.js +0 -2
- package/lib/APIPlugin.js +1 -1
- package/lib/ChunkGraph.js +1 -1
- package/lib/CleanPlugin.js +12 -12
- package/lib/Compilation.js +25 -16
- package/lib/Compiler.js +13 -0
- package/lib/ConcatenationScope.js +2 -2
- package/lib/ContextModule.js +4 -4
- package/lib/ContextModuleFactory.js +1 -1
- package/lib/DependencyTemplate.js +3 -1
- package/lib/EnvironmentNotSupportAsyncWarning.js +52 -0
- package/lib/EvalDevToolModulePlugin.js +1 -1
- package/lib/EvalSourceMapDevToolPlugin.js +1 -1
- package/lib/ExportsInfoApiPlugin.js +2 -2
- package/lib/ExternalModule.js +47 -12
- package/lib/ExternalModuleFactoryPlugin.js +1 -1
- package/lib/FileSystemInfo.js +20 -3
- package/lib/FlagDependencyExportsPlugin.js +1 -1
- package/lib/Generator.js +1 -0
- package/lib/HotModuleReplacementPlugin.js +3 -3
- package/lib/LibManifestPlugin.js +4 -1
- package/lib/Module.js +2 -1
- package/lib/ModuleFilenameHelpers.js +1 -1
- package/lib/ModuleInfoHeaderPlugin.js +1 -1
- package/lib/MultiStats.js +2 -2
- package/lib/NodeStuffPlugin.js +48 -0
- package/lib/NormalModule.js +13 -11
- package/lib/NormalModuleFactory.js +7 -7
- package/lib/RuntimeTemplate.js +15 -11
- package/lib/SourceMapDevToolPlugin.js +2 -2
- package/lib/WebpackOptionsApply.js +4 -3
- package/lib/asset/AssetModulesPlugin.js +2 -3
- package/lib/cache/AddManagedPathsPlugin.js +6 -1
- package/lib/cache/IdleFileCachePlugin.js +12 -5
- package/lib/cache/PackFileCacheStrategy.js +3 -3
- package/lib/cache/ResolverCachePlugin.js +2 -2
- package/lib/config/browserslistTargetHandler.js +24 -5
- package/lib/config/defaults.js +87 -52
- package/lib/config/normalization.js +17 -18
- package/lib/config/target.js +5 -0
- package/lib/container/ContainerReferencePlugin.js +1 -1
- package/lib/css/CssExportsGenerator.js +14 -1
- package/lib/css/CssGenerator.js +14 -1
- package/lib/css/CssLoadingRuntimeModule.js +23 -23
- package/lib/css/CssModulesPlugin.js +68 -32
- package/lib/css/CssParser.js +8 -3
- package/lib/debug/ProfilingPlugin.js +2 -2
- package/lib/dependencies/CachedConstDependency.js +8 -1
- package/lib/dependencies/CommonJsImportsParserPlugin.js +1 -1
- package/lib/dependencies/ContextElementDependency.js +1 -1
- package/lib/dependencies/ExternalModuleDependency.js +98 -0
- package/lib/dependencies/ExternalModuleInitFragment.js +124 -0
- package/lib/dependencies/HarmonyAcceptDependency.js +1 -1
- package/lib/dependencies/HarmonyDetectionParserPlugin.js +7 -1
- package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +18 -18
- package/lib/dependencies/HarmonyExportInitFragment.js +4 -4
- package/lib/dependencies/HarmonyImportDependency.js +4 -4
- package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +6 -6
- package/lib/dependencies/ImportDependency.js +26 -6
- package/lib/dependencies/JsonExportsDependency.js +1 -1
- package/lib/dependencies/LoaderPlugin.js +2 -1
- package/lib/dependencies/PureExpressionDependency.js +12 -4
- package/lib/dependencies/RequireIncludeDependency.js +1 -1
- package/lib/dependencies/WebpackIsIncludedDependency.js +1 -1
- package/lib/dependencies/WorkerPlugin.js +7 -1
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +6 -6
- package/lib/hmr/HotModuleReplacement.runtime.js +3 -5
- package/lib/hmr/lazyCompilationBackend.js +4 -4
- package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
- package/lib/index.js +4 -0
- package/lib/javascript/JavascriptGenerator.js +16 -1
- package/lib/javascript/JavascriptModulesPlugin.js +33 -33
- package/lib/javascript/JavascriptParser.js +8 -0
- package/lib/json/JsonGenerator.js +1 -1
- package/lib/library/AmdLibraryPlugin.js +5 -1
- package/lib/library/AssignLibraryPlugin.js +1 -1
- package/lib/library/SystemLibraryPlugin.js +1 -1
- package/lib/library/UmdLibraryPlugin.js +39 -39
- package/lib/logging/createConsoleLogger.js +1 -19
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +8 -8
- package/lib/node/RequireChunkLoadingRuntimeModule.js +8 -8
- package/lib/node/nodeConsole.js +1 -5
- package/lib/optimize/ConcatenatedModule.js +7 -7
- package/lib/optimize/InnerGraphPlugin.js +9 -1
- package/lib/optimize/ModuleConcatenationPlugin.js +2 -2
- package/lib/optimize/RemoveParentModulesPlugin.js +123 -47
- package/lib/optimize/SideEffectsFlagPlugin.js +15 -3
- package/lib/optimize/SplitChunksPlugin.js +16 -16
- package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +2 -2
- package/lib/rules/RuleSetCompiler.js +1 -1
- package/lib/runtime/AutoPublicPathRuntimeModule.js +2 -2
- package/lib/runtime/GetChunkFilenameRuntimeModule.js +4 -4
- package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +4 -4
- package/lib/runtime/LoadScriptRuntimeModule.js +2 -2
- package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +23 -22
- package/lib/runtime/StartupEntrypointRuntimeModule.js +2 -2
- package/lib/schemes/HttpUriPlugin.js +1 -1
- package/lib/serialization/FileMiddleware.js +4 -4
- package/lib/serialization/ObjectMiddleware.js +4 -4
- package/lib/sharing/ConsumeSharedPlugin.js +5 -5
- package/lib/sharing/ConsumeSharedRuntimeModule.js +8 -4
- package/lib/sharing/ProvideSharedModule.js +2 -2
- package/lib/sharing/SharePlugin.js +2 -2
- package/lib/sharing/ShareRuntimeModule.js +1 -1
- package/lib/sharing/utils.js +24 -28
- package/lib/stats/DefaultStatsFactoryPlugin.js +10 -10
- package/lib/stats/DefaultStatsPresetPlugin.js +3 -7
- package/lib/stats/DefaultStatsPrinterPlugin.js +34 -31
- package/lib/util/cleverMerge.js +4 -4
- package/lib/util/hash/xxhash64.js +2 -2
- package/lib/util/identifier.js +2 -2
- package/lib/util/internalSerializables.js +6 -0
- package/lib/util/runtime.js +18 -1
- package/lib/util/semver.js +19 -24
- package/lib/util/smartGrouping.js +1 -1
- package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +1 -1
- package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +2 -2
- package/lib/wasm-async/AsyncWebAssemblyParser.js +6 -0
- package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +2 -2
- package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +2 -2
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +13 -13
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +6 -6
- package/package.json +23 -23
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +140 -32
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +6 -0
- package/schemas/plugins/css/CssAutoGeneratorOptions.json +3 -0
- package/schemas/plugins/css/CssAutoParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssAutoParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssAutoParserOptions.json +3 -0
- package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +6 -0
- package/schemas/plugins/css/CssGlobalGeneratorOptions.json +3 -0
- package/schemas/plugins/css/CssGlobalParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssGlobalParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssGlobalParserOptions.json +3 -0
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +6 -0
- package/schemas/plugins/css/CssModuleGeneratorOptions.json +3 -0
- package/schemas/plugins/css/CssModuleParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssModuleParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssModuleParserOptions.json +3 -0
- package/schemas/plugins/css/CssParserOptions.check.js +1 -1
- package/types.d.ts +172 -20
package/types.d.ts
CHANGED
@@ -1518,10 +1518,15 @@ declare interface CodeGenerationContext {
|
|
1518
1518
|
chunkGraph: ChunkGraph;
|
1519
1519
|
|
1520
1520
|
/**
|
1521
|
-
* the
|
1521
|
+
* the runtime code should be generated for
|
1522
1522
|
*/
|
1523
1523
|
runtime: RuntimeSpec;
|
1524
1524
|
|
1525
|
+
/**
|
1526
|
+
* the runtimes code should be generated for
|
1527
|
+
*/
|
1528
|
+
runtimes?: RuntimeSpec[];
|
1529
|
+
|
1525
1530
|
/**
|
1526
1531
|
* when in concatenated module, information about other concatenated modules
|
1527
1532
|
*/
|
@@ -2242,6 +2247,7 @@ declare class Compiler {
|
|
2242
2247
|
recordsOutputPath: null | string;
|
2243
2248
|
records: object;
|
2244
2249
|
managedPaths: Set<string | RegExp>;
|
2250
|
+
unmanagedPaths: Set<string | RegExp>;
|
2245
2251
|
immutablePaths: Set<string | RegExp>;
|
2246
2252
|
modifiedFiles?: ReadonlySet<string>;
|
2247
2253
|
removedFiles?: ReadonlySet<string>;
|
@@ -2882,14 +2888,84 @@ type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
|
|
2882
2888
|
Record<string, any>;
|
2883
2889
|
|
2884
2890
|
/**
|
2885
|
-
*
|
2891
|
+
* Generator options for css/auto modules.
|
2892
|
+
*/
|
2893
|
+
declare interface CssAutoGeneratorOptions {
|
2894
|
+
/**
|
2895
|
+
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2896
|
+
*/
|
2897
|
+
exportsOnly?: boolean;
|
2898
|
+
}
|
2899
|
+
|
2900
|
+
/**
|
2901
|
+
* Parser options for css/auto modules.
|
2902
|
+
*/
|
2903
|
+
declare interface CssAutoParserOptions {
|
2904
|
+
/**
|
2905
|
+
* Use ES modules named export for css exports.
|
2906
|
+
*/
|
2907
|
+
namedExports?: boolean;
|
2908
|
+
}
|
2909
|
+
|
2910
|
+
/**
|
2911
|
+
* Generator options for css modules.
|
2912
|
+
*/
|
2913
|
+
declare interface CssGeneratorOptions {
|
2914
|
+
/**
|
2915
|
+
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2916
|
+
*/
|
2917
|
+
exportsOnly?: boolean;
|
2918
|
+
}
|
2919
|
+
|
2920
|
+
/**
|
2921
|
+
* Generator options for css/global modules.
|
2886
2922
|
*/
|
2887
|
-
declare interface
|
2923
|
+
declare interface CssGlobalGeneratorOptions {
|
2888
2924
|
/**
|
2889
2925
|
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2890
2926
|
*/
|
2891
2927
|
exportsOnly?: boolean;
|
2892
2928
|
}
|
2929
|
+
|
2930
|
+
/**
|
2931
|
+
* Parser options for css/global modules.
|
2932
|
+
*/
|
2933
|
+
declare interface CssGlobalParserOptions {
|
2934
|
+
/**
|
2935
|
+
* Use ES modules named export for css exports.
|
2936
|
+
*/
|
2937
|
+
namedExports?: boolean;
|
2938
|
+
}
|
2939
|
+
|
2940
|
+
/**
|
2941
|
+
* Generator options for css/module modules.
|
2942
|
+
*/
|
2943
|
+
declare interface CssModuleGeneratorOptions {
|
2944
|
+
/**
|
2945
|
+
* Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
|
2946
|
+
*/
|
2947
|
+
exportsOnly?: boolean;
|
2948
|
+
}
|
2949
|
+
|
2950
|
+
/**
|
2951
|
+
* Parser options for css/module modules.
|
2952
|
+
*/
|
2953
|
+
declare interface CssModuleParserOptions {
|
2954
|
+
/**
|
2955
|
+
* Use ES modules named export for css exports.
|
2956
|
+
*/
|
2957
|
+
namedExports?: boolean;
|
2958
|
+
}
|
2959
|
+
|
2960
|
+
/**
|
2961
|
+
* Parser options for css modules.
|
2962
|
+
*/
|
2963
|
+
declare interface CssParserOptions {
|
2964
|
+
/**
|
2965
|
+
* Use ES modules named export for css exports.
|
2966
|
+
*/
|
2967
|
+
namedExports?: boolean;
|
2968
|
+
}
|
2893
2969
|
type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
|
2894
2970
|
declare class DefinePlugin {
|
2895
2971
|
/**
|
@@ -3065,10 +3141,15 @@ declare interface DependencyTemplateContext {
|
|
3065
3141
|
module: Module;
|
3066
3142
|
|
3067
3143
|
/**
|
3068
|
-
* current
|
3144
|
+
* current runtime, for which code is generated
|
3069
3145
|
*/
|
3070
3146
|
runtime: RuntimeSpec;
|
3071
3147
|
|
3148
|
+
/**
|
3149
|
+
* current runtimes, for which code is generated
|
3150
|
+
*/
|
3151
|
+
runtimes?: RuntimeSpec[];
|
3152
|
+
|
3072
3153
|
/**
|
3073
3154
|
* mutable array of init fragments for the current module
|
3074
3155
|
*/
|
@@ -3083,6 +3164,11 @@ declare interface DependencyTemplateContext {
|
|
3083
3164
|
* the code generation results
|
3084
3165
|
*/
|
3085
3166
|
codeGenerationResults: CodeGenerationResults;
|
3167
|
+
|
3168
|
+
/**
|
3169
|
+
* chunkInitFragments
|
3170
|
+
*/
|
3171
|
+
chunkInitFragments: InitFragment<GenerateContext>[];
|
3086
3172
|
}
|
3087
3173
|
declare abstract class DependencyTemplates {
|
3088
3174
|
get(dependency: DependencyConstructor): undefined | DependencyTemplate;
|
@@ -3154,13 +3240,6 @@ declare interface DeterministicModuleIdsPluginOptions {
|
|
3154
3240
|
*/
|
3155
3241
|
failOnConflict?: boolean;
|
3156
3242
|
}
|
3157
|
-
|
3158
|
-
/**
|
3159
|
-
* Options for the webpack-dev-server.
|
3160
|
-
*/
|
3161
|
-
declare interface DevServer {
|
3162
|
-
[index: string]: any;
|
3163
|
-
}
|
3164
3243
|
declare class DllPlugin {
|
3165
3244
|
constructor(options: DllPluginOptions);
|
3166
3245
|
options: {
|
@@ -3670,6 +3749,11 @@ declare interface Environment {
|
|
3670
3749
|
*/
|
3671
3750
|
arrowFunction?: boolean;
|
3672
3751
|
|
3752
|
+
/**
|
3753
|
+
* The environment supports async function and await ('async function () { await ... }').
|
3754
|
+
*/
|
3755
|
+
asyncFunction?: boolean;
|
3756
|
+
|
3673
3757
|
/**
|
3674
3758
|
* The environment supports BigInt as literal (123n).
|
3675
3759
|
*/
|
@@ -3840,7 +3924,7 @@ declare interface ExperimentsExtra {
|
|
3840
3924
|
/**
|
3841
3925
|
* Enable css support.
|
3842
3926
|
*/
|
3843
|
-
css?: boolean
|
3927
|
+
css?: boolean;
|
3844
3928
|
|
3845
3929
|
/**
|
3846
3930
|
* Compile entrypoints and import()s only when they are accessed.
|
@@ -3861,7 +3945,7 @@ declare interface ExperimentsNormalizedExtra {
|
|
3861
3945
|
/**
|
3862
3946
|
* Enable css support.
|
3863
3947
|
*/
|
3864
|
-
css?:
|
3948
|
+
css?: boolean;
|
3865
3949
|
|
3866
3950
|
/**
|
3867
3951
|
* Compile entrypoints and import()s only when they are accessed.
|
@@ -4525,7 +4609,7 @@ declare interface FileSystem {
|
|
4525
4609
|
| "binary"
|
4526
4610
|
| ((
|
4527
4611
|
arg0?: null | NodeJS.ErrnoException,
|
4528
|
-
arg1?: (string | Buffer)[] |
|
4612
|
+
arg1?: (string | Buffer)[] | Dirent[]
|
4529
4613
|
) => void)
|
4530
4614
|
| ReaddirOptions
|
4531
4615
|
| "utf-8"
|
@@ -4536,7 +4620,7 @@ declare interface FileSystem {
|
|
4536
4620
|
| "buffer",
|
4537
4621
|
arg2?: (
|
4538
4622
|
arg0?: null | NodeJS.ErrnoException,
|
4539
|
-
arg1?: (string | Buffer)[] |
|
4623
|
+
arg1?: (string | Buffer)[] | Dirent[]
|
4540
4624
|
) => void
|
4541
4625
|
) => void;
|
4542
4626
|
readJson?: {
|
@@ -4585,6 +4669,8 @@ declare abstract class FileSystemInfo {
|
|
4585
4669
|
contextTshQueue: AsyncQueue<string, string, null | ContextTimestampAndHash>;
|
4586
4670
|
managedItemQueue: AsyncQueue<string, string, null | string>;
|
4587
4671
|
managedItemDirectoryQueue: AsyncQueue<string, string, Set<string>>;
|
4672
|
+
unmanagedPathsWithSlash: string[];
|
4673
|
+
unmanagedPathsRegExps: RegExp[];
|
4588
4674
|
managedPaths: (string | RegExp)[];
|
4589
4675
|
managedPathsWithSlash: string[];
|
4590
4676
|
managedPathsRegExps: RegExp[];
|
@@ -4698,6 +4784,11 @@ declare interface GenerateContext {
|
|
4698
4784
|
*/
|
4699
4785
|
runtime: RuntimeSpec;
|
4700
4786
|
|
4787
|
+
/**
|
4788
|
+
* the runtimes
|
4789
|
+
*/
|
4790
|
+
runtimes?: RuntimeSpec[];
|
4791
|
+
|
4701
4792
|
/**
|
4702
4793
|
* when in concatenated module, information about other concatenated modules
|
4703
4794
|
*/
|
@@ -4752,6 +4843,26 @@ declare interface GeneratorOptionsByModuleTypeKnown {
|
|
4752
4843
|
*/
|
4753
4844
|
"asset/resource"?: AssetResourceGeneratorOptions;
|
4754
4845
|
|
4846
|
+
/**
|
4847
|
+
* Generator options for css modules.
|
4848
|
+
*/
|
4849
|
+
css?: CssGeneratorOptions;
|
4850
|
+
|
4851
|
+
/**
|
4852
|
+
* Generator options for css/auto modules.
|
4853
|
+
*/
|
4854
|
+
"css/auto"?: CssAutoGeneratorOptions;
|
4855
|
+
|
4856
|
+
/**
|
4857
|
+
* Generator options for css/global modules.
|
4858
|
+
*/
|
4859
|
+
"css/global"?: CssGlobalGeneratorOptions;
|
4860
|
+
|
4861
|
+
/**
|
4862
|
+
* Generator options for css/module modules.
|
4863
|
+
*/
|
4864
|
+
"css/module"?: CssModuleGeneratorOptions;
|
4865
|
+
|
4755
4866
|
/**
|
4756
4867
|
* No generator options are supported for this module type.
|
4757
4868
|
*/
|
@@ -4846,6 +4957,11 @@ declare interface HandleModuleCreationOptions {
|
|
4846
4957
|
* connect the resolved module with the origin module
|
4847
4958
|
*/
|
4848
4959
|
connectOrigin?: boolean;
|
4960
|
+
|
4961
|
+
/**
|
4962
|
+
* check the cycle dependencies of the created module
|
4963
|
+
*/
|
4964
|
+
checkCycle?: boolean;
|
4849
4965
|
}
|
4850
4966
|
declare class HarmonyImportDependency extends ModuleDependency {
|
4851
4967
|
constructor(request: string, sourceOrder: number, assertions?: Assertions);
|
@@ -6823,7 +6939,7 @@ declare interface LazyCompilationDefaultBackendOptions {
|
|
6823
6939
|
/**
|
6824
6940
|
* Specifies where to listen to from the server.
|
6825
6941
|
*/
|
6826
|
-
listen?: number | ListenOptions | ((server:
|
6942
|
+
listen?: number | ListenOptions | ((server: Server) => void);
|
6827
6943
|
|
6828
6944
|
/**
|
6829
6945
|
* Specifies the protocol the client should use to connect to the server.
|
@@ -6836,7 +6952,7 @@ declare interface LazyCompilationDefaultBackendOptions {
|
|
6836
6952
|
server?:
|
6837
6953
|
| ServerOptionsImport<typeof IncomingMessage>
|
6838
6954
|
| ServerOptionsHttps<typeof IncomingMessage, typeof ServerResponse>
|
6839
|
-
| (() =>
|
6955
|
+
| (() => Server);
|
6840
6956
|
}
|
6841
6957
|
|
6842
6958
|
/**
|
@@ -8317,12 +8433,12 @@ declare interface NodeOptions {
|
|
8317
8433
|
/**
|
8318
8434
|
* Include a polyfill for the '__dirname' variable.
|
8319
8435
|
*/
|
8320
|
-
__dirname?: boolean | "warn-mock" | "mock" | "eval-only";
|
8436
|
+
__dirname?: boolean | "warn-mock" | "mock" | "node-module" | "eval-only";
|
8321
8437
|
|
8322
8438
|
/**
|
8323
8439
|
* Include a polyfill for the '__filename' variable.
|
8324
8440
|
*/
|
8325
|
-
__filename?: boolean | "warn-mock" | "mock" | "eval-only";
|
8441
|
+
__filename?: boolean | "warn-mock" | "mock" | "node-module" | "eval-only";
|
8326
8442
|
|
8327
8443
|
/**
|
8328
8444
|
* Include a polyfill for the 'global' variable.
|
@@ -9758,6 +9874,26 @@ declare interface ParserOptionsByModuleTypeKnown {
|
|
9758
9874
|
*/
|
9759
9875
|
"asset/source"?: EmptyParserOptions;
|
9760
9876
|
|
9877
|
+
/**
|
9878
|
+
* Parser options for css modules.
|
9879
|
+
*/
|
9880
|
+
css?: CssParserOptions;
|
9881
|
+
|
9882
|
+
/**
|
9883
|
+
* Parser options for css/auto modules.
|
9884
|
+
*/
|
9885
|
+
"css/auto"?: CssAutoParserOptions;
|
9886
|
+
|
9887
|
+
/**
|
9888
|
+
* Parser options for css/global modules.
|
9889
|
+
*/
|
9890
|
+
"css/global"?: CssGlobalParserOptions;
|
9891
|
+
|
9892
|
+
/**
|
9893
|
+
* Parser options for css/module modules.
|
9894
|
+
*/
|
9895
|
+
"css/module"?: CssModuleParserOptions;
|
9896
|
+
|
9761
9897
|
/**
|
9762
9898
|
* Parser options for javascript modules.
|
9763
9899
|
*/
|
@@ -11263,6 +11399,7 @@ declare abstract class RuntimeTemplate {
|
|
11263
11399
|
isModule(): undefined | boolean;
|
11264
11400
|
supportsConst(): undefined | boolean;
|
11265
11401
|
supportsArrowFunction(): undefined | boolean;
|
11402
|
+
supportsAsyncFunction(): undefined | boolean;
|
11266
11403
|
supportsOptionalChaining(): undefined | boolean;
|
11267
11404
|
supportsForOf(): undefined | boolean;
|
11268
11405
|
supportsDestructuring(): undefined | boolean;
|
@@ -11945,6 +12082,11 @@ declare interface SnapshotOptionsWebpackOptions {
|
|
11945
12082
|
*/
|
11946
12083
|
timestamp?: boolean;
|
11947
12084
|
};
|
12085
|
+
|
12086
|
+
/**
|
12087
|
+
* List of paths that are not managed by a package manager and the contents are subject to change.
|
12088
|
+
*/
|
12089
|
+
unmanagedPaths?: (string | RegExp)[];
|
11948
12090
|
}
|
11949
12091
|
declare abstract class SortableSet<T> extends Set<T> {
|
11950
12092
|
/**
|
@@ -13298,7 +13440,7 @@ declare interface WebpackOptionsNormalized {
|
|
13298
13440
|
/**
|
13299
13441
|
* Options for the webpack-dev-server.
|
13300
13442
|
*/
|
13301
|
-
devServer?:
|
13443
|
+
devServer?: false | { [index: string]: any };
|
13302
13444
|
|
13303
13445
|
/**
|
13304
13446
|
* A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
|
@@ -13645,6 +13787,11 @@ declare namespace exports {
|
|
13645
13787
|
export let matchPart: (str: string, test: Matcher) => boolean;
|
13646
13788
|
export let matchObject: (obj: MatchObject, str: string) => boolean;
|
13647
13789
|
}
|
13790
|
+
export namespace OptimizationStages {
|
13791
|
+
export let STAGE_BASIC: -10;
|
13792
|
+
export let STAGE_DEFAULT: 0;
|
13793
|
+
export let STAGE_ADVANCED: 10;
|
13794
|
+
}
|
13648
13795
|
export namespace RuntimeGlobals {
|
13649
13796
|
export let require: "__webpack_require__";
|
13650
13797
|
export let requireScope: "__webpack_require__.*";
|
@@ -13955,6 +14102,10 @@ declare namespace exports {
|
|
13955
14102
|
export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
|
13956
14103
|
export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
|
13957
14104
|
export let mergeRuntime: (a: RuntimeSpec, b: RuntimeSpec) => RuntimeSpec;
|
14105
|
+
export let deepMergeRuntime: (
|
14106
|
+
runtimes: RuntimeSpec[],
|
14107
|
+
runtime: RuntimeSpec
|
14108
|
+
) => RuntimeSpec;
|
13958
14109
|
export let mergeRuntimeCondition: (
|
13959
14110
|
a: RuntimeCondition,
|
13960
14111
|
b: RuntimeCondition,
|
@@ -14122,6 +14273,7 @@ declare namespace exports {
|
|
14122
14273
|
EntryOptions,
|
14123
14274
|
PathData,
|
14124
14275
|
AssetEmittedInfo,
|
14276
|
+
MultiCompilerOptions,
|
14125
14277
|
MultiStats,
|
14126
14278
|
ResolveData,
|
14127
14279
|
ParserState,
|