webpack 5.64.2 → 5.66.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/lib/CacheFacade.js +2 -9
- package/lib/Chunk.js +2 -0
- package/lib/Compilation.js +79 -38
- package/lib/Dependency.js +10 -0
- package/lib/DependencyTemplate.js +9 -0
- package/lib/ExternalModule.js +93 -53
- package/lib/Generator.js +2 -0
- package/lib/Module.js +24 -1
- package/lib/ModuleFilenameHelpers.js +5 -1
- package/lib/NormalModule.js +3 -1
- package/lib/RuntimeGlobals.js +11 -1
- package/lib/RuntimePlugin.js +25 -0
- package/lib/RuntimeTemplate.js +113 -2
- package/lib/Template.js +2 -1
- package/lib/WatchIgnorePlugin.js +14 -1
- package/lib/Watching.js +32 -18
- package/lib/WebpackOptionsApply.js +43 -2
- package/lib/asset/AssetGenerator.js +10 -7
- package/lib/asset/RawDataUrlModule.js +145 -0
- package/lib/config/browserslistTargetHandler.js +38 -1
- package/lib/config/defaults.js +60 -4
- package/lib/config/target.js +10 -0
- package/lib/container/ContainerEntryModule.js +4 -3
- package/lib/css/CssGenerator.js +106 -0
- package/lib/css/CssLoadingRuntimeModule.js +393 -0
- package/lib/css/CssModulesPlugin.js +444 -0
- package/lib/css/CssParser.js +618 -0
- package/lib/css/walkCssTokens.js +659 -0
- package/lib/dependencies/CssExportDependency.js +85 -0
- package/lib/dependencies/CssImportDependency.js +75 -0
- package/lib/dependencies/CssLocalIdentifierDependency.js +119 -0
- package/lib/dependencies/CssSelfLocalIdentifierDependency.js +101 -0
- package/lib/dependencies/CssUrlDependency.js +132 -0
- package/lib/dependencies/URLDependency.js +3 -8
- package/lib/esm/ModuleChunkFormatPlugin.js +74 -49
- package/lib/esm/ModuleChunkLoadingRuntimeModule.js +1 -1
- package/lib/hmr/lazyCompilationBackend.js +3 -1
- package/lib/index.js +3 -0
- package/lib/javascript/ArrayPushCallbackChunkFormatPlugin.js +2 -2
- package/lib/javascript/ChunkHelpers.js +33 -0
- package/lib/javascript/JavascriptGenerator.js +1 -0
- package/lib/javascript/JavascriptParser.js +16 -8
- package/lib/javascript/StartupHelpers.js +4 -28
- package/lib/library/AssignLibraryPlugin.js +31 -13
- package/lib/library/EnableLibraryPlugin.js +11 -0
- package/lib/node/NodeWatchFileSystem.js +85 -31
- package/lib/node/ReadFileChunkLoadingRuntimeModule.js +1 -1
- package/lib/node/RequireChunkLoadingRuntimeModule.js +1 -1
- package/lib/optimize/ConcatenatedModule.js +10 -4
- package/lib/sharing/ConsumeSharedModule.js +4 -0
- package/lib/sharing/ConsumeSharedRuntimeModule.js +25 -4
- package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
- package/lib/util/create-schema-validation.js +9 -2
- package/lib/util/extractUrlAndGlobal.js +3 -0
- package/lib/util/fs.js +10 -0
- package/lib/util/hash/xxhash64.js +2 -2
- package/lib/util/internalSerializables.js +11 -0
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +3 -3
- package/lib/webpack.js +9 -1
- package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +3 -2
- package/package.json +4 -4
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +63 -1
- package/schemas/plugins/DllReferencePlugin.check.js +1 -1
- package/schemas/plugins/HashedModuleIdsPlugin.check.js +1 -1
- package/schemas/plugins/ProgressPlugin.check.js +1 -1
- package/schemas/plugins/asset/AssetParserOptions.check.js +1 -1
- package/schemas/plugins/container/ContainerPlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerPlugin.json +2 -1
- package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
- package/schemas/plugins/container/ContainerReferencePlugin.json +1 -0
- package/schemas/plugins/container/ExternalsType.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
- package/schemas/plugins/container/ModuleFederationPlugin.json +3 -1
- package/schemas/plugins/css/CssGeneratorOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssGeneratorOptions.check.js +6 -0
- package/schemas/plugins/css/CssGeneratorOptions.json +3 -0
- package/schemas/plugins/css/CssParserOptions.check.d.ts +7 -0
- package/schemas/plugins/css/CssParserOptions.check.js +6 -0
- package/schemas/plugins/css/CssParserOptions.json +3 -0
- package/schemas/plugins/optimize/AggressiveSplittingPlugin.check.js +1 -1
- package/schemas/plugins/optimize/LimitChunkCountPlugin.check.js +1 -1
- package/schemas/plugins/optimize/MinChunkSizePlugin.check.js +1 -1
- package/types.d.ts +147 -21
@@ -3,4 +3,4 @@
|
|
3
3
|
* DO NOT MODIFY BY HAND.
|
4
4
|
* Run `yarn special-lint-fix` to update
|
5
5
|
*/
|
6
|
-
"use strict";function r(e,{instancePath:t="",parentData:
|
6
|
+
"use strict";function r(e,{instancePath:t="",parentData:n,parentDataProperty:i,rootData:o=e}={}){if(!e||"object"!=typeof e||Array.isArray(e))return r.errors=[{params:{type:"object"}}],!1;{let t;if(void 0===e.minChunkSize&&(t="minChunkSize"))return r.errors=[{params:{missingProperty:t}}],!1;{const t=0;for(const t in e)if("chunkOverhead"!==t&&"entryChunkMultiplicator"!==t&&"minChunkSize"!==t)return r.errors=[{params:{additionalProperty:t}}],!1;if(0===t){if(void 0!==e.chunkOverhead){const t=0;if("number"!=typeof e.chunkOverhead)return r.errors=[{params:{type:"number"}}],!1;var a=0===t}else a=!0;if(a){if(void 0!==e.entryChunkMultiplicator){const t=0;if("number"!=typeof e.entryChunkMultiplicator)return r.errors=[{params:{type:"number"}}],!1;a=0===t}else a=!0;if(a)if(void 0!==e.minChunkSize){const t=0;if("number"!=typeof e.minChunkSize)return r.errors=[{params:{type:"number"}}],!1;a=0===t}else a=!0}}}}return r.errors=null,!0}module.exports=r,module.exports.default=r;
|
package/types.d.ts
CHANGED
@@ -702,6 +702,10 @@ declare class Chunk {
|
|
702
702
|
| null
|
703
703
|
| string
|
704
704
|
| ((arg0: PathData, arg1?: AssetInfo) => string);
|
705
|
+
cssFilenameTemplate:
|
706
|
+
| null
|
707
|
+
| string
|
708
|
+
| ((arg0: PathData, arg1?: AssetInfo) => string);
|
705
709
|
runtime: RuntimeSpec;
|
706
710
|
files: Set<string>;
|
707
711
|
auxiliaryFiles: Set<string>;
|
@@ -1217,6 +1221,11 @@ declare interface CodeGenerationContext {
|
|
1217
1221
|
* when in concatenated module, information about other concatenated modules
|
1218
1222
|
*/
|
1219
1223
|
concatenationScope?: ConcatenationScope;
|
1224
|
+
|
1225
|
+
/**
|
1226
|
+
* code generation results of other modules (need to have a codeGenerationDependency to use that)
|
1227
|
+
*/
|
1228
|
+
codeGenerationResults: CodeGenerationResults;
|
1220
1229
|
}
|
1221
1230
|
declare interface CodeGenerationResult {
|
1222
1231
|
/**
|
@@ -2095,6 +2104,7 @@ declare interface Configuration {
|
|
2095
2104
|
| "commonjs"
|
2096
2105
|
| "commonjs2"
|
2097
2106
|
| "commonjs-module"
|
2107
|
+
| "commonjs-static"
|
2098
2108
|
| "amd"
|
2099
2109
|
| "amd-require"
|
2100
2110
|
| "umd"
|
@@ -2141,7 +2151,7 @@ declare interface Configuration {
|
|
2141
2151
|
/**
|
2142
2152
|
* Enable production optimizations or development hints.
|
2143
2153
|
*/
|
2144
|
-
mode?: "
|
2154
|
+
mode?: "none" | "development" | "production";
|
2145
2155
|
|
2146
2156
|
/**
|
2147
2157
|
* Options affecting the normal modules (`NormalModuleFactory`).
|
@@ -2226,15 +2236,15 @@ declare interface Configuration {
|
|
2226
2236
|
*/
|
2227
2237
|
stats?:
|
2228
2238
|
| boolean
|
2239
|
+
| StatsOptions
|
2229
2240
|
| "none"
|
2241
|
+
| "verbose"
|
2230
2242
|
| "summary"
|
2231
2243
|
| "errors-only"
|
2232
2244
|
| "errors-warnings"
|
2233
2245
|
| "minimal"
|
2234
2246
|
| "normal"
|
2235
|
-
| "detailed"
|
2236
|
-
| "verbose"
|
2237
|
-
| StatsOptions;
|
2247
|
+
| "detailed";
|
2238
2248
|
|
2239
2249
|
/**
|
2240
2250
|
* Environment to build for. An array of environments to build for all of them when possible.
|
@@ -2582,6 +2592,12 @@ declare class Dependency {
|
|
2582
2592
|
readonly type: string;
|
2583
2593
|
readonly category: string;
|
2584
2594
|
loc: DependencyLocation;
|
2595
|
+
setLoc(
|
2596
|
+
startLine?: any,
|
2597
|
+
startColumn?: any,
|
2598
|
+
endLine?: any,
|
2599
|
+
endColumn?: any
|
2600
|
+
): void;
|
2585
2601
|
getResourceIdentifier(): null | string;
|
2586
2602
|
couldAffectReferencingModule(): boolean | typeof TRANSITIVE;
|
2587
2603
|
|
@@ -2697,6 +2713,11 @@ declare interface DependencyTemplateContext {
|
|
2697
2713
|
* when in a concatenated module, information about other concatenated modules
|
2698
2714
|
*/
|
2699
2715
|
concatenationScope?: ConcatenationScope;
|
2716
|
+
|
2717
|
+
/**
|
2718
|
+
* the code generation results
|
2719
|
+
*/
|
2720
|
+
codeGenerationResults: CodeGenerationResults;
|
2700
2721
|
}
|
2701
2722
|
declare abstract class DependencyTemplates {
|
2702
2723
|
get(dependency: DependencyConstructor): DependencyTemplate;
|
@@ -3246,6 +3267,16 @@ declare interface Environment {
|
|
3246
3267
|
* The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').
|
3247
3268
|
*/
|
3248
3269
|
module?: boolean;
|
3270
|
+
|
3271
|
+
/**
|
3272
|
+
* The environment supports optional chaining ('obj?.a' or 'obj?.()').
|
3273
|
+
*/
|
3274
|
+
optionalChaining?: boolean;
|
3275
|
+
|
3276
|
+
/**
|
3277
|
+
* The environment supports template literals.
|
3278
|
+
*/
|
3279
|
+
templateLiteral?: boolean;
|
3249
3280
|
}
|
3250
3281
|
declare class EnvironmentPlugin {
|
3251
3282
|
constructor(...keys: any[]);
|
@@ -3328,6 +3359,11 @@ declare interface ExperimentsCommon {
|
|
3328
3359
|
*/
|
3329
3360
|
cacheUnaffected?: boolean;
|
3330
3361
|
|
3362
|
+
/**
|
3363
|
+
* Enable css support.
|
3364
|
+
*/
|
3365
|
+
css?: boolean;
|
3366
|
+
|
3331
3367
|
/**
|
3332
3368
|
* Apply defaults of next major version.
|
3333
3369
|
*/
|
@@ -3843,6 +3879,7 @@ type ExternalsType =
|
|
3843
3879
|
| "commonjs"
|
3844
3880
|
| "commonjs2"
|
3845
3881
|
| "commonjs-module"
|
3882
|
+
| "commonjs-static"
|
3846
3883
|
| "amd"
|
3847
3884
|
| "amd-require"
|
3848
3885
|
| "umd"
|
@@ -4187,6 +4224,11 @@ declare interface GenerateContext {
|
|
4187
4224
|
*/
|
4188
4225
|
concatenationScope?: ConcatenationScope;
|
4189
4226
|
|
4227
|
+
/**
|
4228
|
+
* code generation results of other modules (need to have a codeGenerationDependency to use that)
|
4229
|
+
*/
|
4230
|
+
codeGenerationResults?: CodeGenerationResults;
|
4231
|
+
|
4190
4232
|
/**
|
4191
4233
|
* which kind of code should be generated
|
4192
4234
|
*/
|
@@ -4547,7 +4589,7 @@ declare interface InfrastructureLogging {
|
|
4547
4589
|
/**
|
4548
4590
|
* Log level.
|
4549
4591
|
*/
|
4550
|
-
level?: "none" | "
|
4592
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose";
|
4551
4593
|
|
4552
4594
|
/**
|
4553
4595
|
* Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.
|
@@ -4693,7 +4735,7 @@ declare class JavascriptModulesPlugin {
|
|
4693
4735
|
static chunkHasJs: (chunk: Chunk, chunkGraph: ChunkGraph) => boolean;
|
4694
4736
|
}
|
4695
4737
|
declare class JavascriptParser extends Parser {
|
4696
|
-
constructor(sourceType?: "module" | "
|
4738
|
+
constructor(sourceType?: "module" | "auto" | "script");
|
4697
4739
|
hooks: Readonly<{
|
4698
4740
|
evaluateTypeof: HookMap<
|
4699
4741
|
SyncBailHook<
|
@@ -4963,7 +5005,7 @@ declare class JavascriptParser extends Parser {
|
|
4963
5005
|
program: SyncBailHook<[Program, Comment[]], boolean | void>;
|
4964
5006
|
finish: SyncBailHook<[Program, Comment[]], boolean | void>;
|
4965
5007
|
}>;
|
4966
|
-
sourceType: "module" | "
|
5008
|
+
sourceType: "module" | "auto" | "script";
|
4967
5009
|
scope: ScopeInfo;
|
4968
5010
|
state: ParserState;
|
4969
5011
|
comments: any;
|
@@ -5303,7 +5345,7 @@ declare interface JavascriptParserOptions {
|
|
5303
5345
|
/**
|
5304
5346
|
* Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
|
5305
5347
|
*/
|
5306
|
-
exportsPresence?: false | "
|
5348
|
+
exportsPresence?: false | "auto" | "error" | "warn";
|
5307
5349
|
|
5308
5350
|
/**
|
5309
5351
|
* Enable warnings for full dynamic dependencies.
|
@@ -5338,7 +5380,7 @@ declare interface JavascriptParserOptions {
|
|
5338
5380
|
/**
|
5339
5381
|
* Specifies the behavior of invalid export names in "import ... from ...".
|
5340
5382
|
*/
|
5341
|
-
importExportsPresence?: false | "
|
5383
|
+
importExportsPresence?: false | "auto" | "error" | "warn";
|
5342
5384
|
|
5343
5385
|
/**
|
5344
5386
|
* Include polyfills or mocks for various node stuff.
|
@@ -5348,7 +5390,7 @@ declare interface JavascriptParserOptions {
|
|
5348
5390
|
/**
|
5349
5391
|
* Specifies the behavior of invalid export names in "export ... from ...". This might be useful to disable during the migration from "export ... from ..." to "export type ... from ..." when reexporting types in TypeScript.
|
5350
5392
|
*/
|
5351
|
-
reexportExportsPresence?: false | "
|
5393
|
+
reexportExportsPresence?: false | "auto" | "error" | "warn";
|
5352
5394
|
|
5353
5395
|
/**
|
5354
5396
|
* Enable/disable parsing of require.context syntax.
|
@@ -5585,7 +5627,7 @@ declare interface KnownNormalizedStatsOptions {
|
|
5585
5627
|
modulesSpace: number;
|
5586
5628
|
chunkModulesSpace: number;
|
5587
5629
|
nestedModulesSpace: number;
|
5588
|
-
logging: false | "none" | "
|
5630
|
+
logging: false | "none" | "error" | "warn" | "info" | "log" | "verbose";
|
5589
5631
|
loggingDebug: ((value: string) => boolean)[];
|
5590
5632
|
loggingTrace: boolean;
|
5591
5633
|
}
|
@@ -5995,7 +6037,7 @@ declare interface LibraryOptions {
|
|
5995
6037
|
name?: string | string[] | LibraryCustomUmdObject;
|
5996
6038
|
|
5997
6039
|
/**
|
5998
|
-
* Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
|
6040
|
+
* Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
|
5999
6041
|
*/
|
6000
6042
|
type: string;
|
6001
6043
|
|
@@ -6482,6 +6524,7 @@ declare class Module extends DependenciesBlock {
|
|
6482
6524
|
buildMeta: BuildMeta;
|
6483
6525
|
buildInfo: Record<string, any>;
|
6484
6526
|
presentationalDependencies?: Dependency[];
|
6527
|
+
codeGenerationDependencies?: Dependency[];
|
6485
6528
|
id: string | number;
|
6486
6529
|
readonly hash: string;
|
6487
6530
|
readonly renderedHash: string;
|
@@ -6511,6 +6554,7 @@ declare class Module extends DependenciesBlock {
|
|
6511
6554
|
strict: boolean
|
6512
6555
|
): "namespace" | "default-only" | "default-with-named" | "dynamic";
|
6513
6556
|
addPresentationalDependency(presentationalDependency: Dependency): void;
|
6557
|
+
addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
|
6514
6558
|
addWarning(warning: WebpackError): void;
|
6515
6559
|
getWarnings(): undefined | Iterable<WebpackError>;
|
6516
6560
|
getNumberOfWarnings(): number;
|
@@ -6698,6 +6742,7 @@ declare interface ModuleFederationPluginOptions {
|
|
6698
6742
|
| "commonjs"
|
6699
6743
|
| "commonjs2"
|
6700
6744
|
| "commonjs-module"
|
6745
|
+
| "commonjs-static"
|
6701
6746
|
| "amd"
|
6702
6747
|
| "amd-require"
|
6703
6748
|
| "umd"
|
@@ -7543,7 +7588,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
|
|
7543
7588
|
rootContext: string;
|
7544
7589
|
fs: InputFileSystem;
|
7545
7590
|
sourceMap?: boolean;
|
7546
|
-
mode: "
|
7591
|
+
mode: "none" | "development" | "production";
|
7547
7592
|
webpack?: boolean;
|
7548
7593
|
_module?: NormalModule;
|
7549
7594
|
_compilation?: Compilation;
|
@@ -8129,6 +8174,20 @@ declare interface Output {
|
|
8129
8174
|
*/
|
8130
8175
|
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
8131
8176
|
|
8177
|
+
/**
|
8178
|
+
* Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
|
8179
|
+
*/
|
8180
|
+
cssChunkFilename?:
|
8181
|
+
| string
|
8182
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8183
|
+
|
8184
|
+
/**
|
8185
|
+
* Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
|
8186
|
+
*/
|
8187
|
+
cssFilename?:
|
8188
|
+
| string
|
8189
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8190
|
+
|
8132
8191
|
/**
|
8133
8192
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
8134
8193
|
*/
|
@@ -8235,7 +8294,7 @@ declare interface Output {
|
|
8235
8294
|
libraryExport?: string | string[];
|
8236
8295
|
|
8237
8296
|
/**
|
8238
|
-
* Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
|
8297
|
+
* Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
|
8239
8298
|
*/
|
8240
8299
|
libraryTarget?: string;
|
8241
8300
|
|
@@ -8424,6 +8483,20 @@ declare interface OutputNormalized {
|
|
8424
8483
|
*/
|
8425
8484
|
crossOriginLoading?: false | "anonymous" | "use-credentials";
|
8426
8485
|
|
8486
|
+
/**
|
8487
|
+
* Specifies the filename template of non-initial output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
|
8488
|
+
*/
|
8489
|
+
cssChunkFilename?:
|
8490
|
+
| string
|
8491
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8492
|
+
|
8493
|
+
/**
|
8494
|
+
* Specifies the filename template of output css files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
|
8495
|
+
*/
|
8496
|
+
cssFilename?:
|
8497
|
+
| string
|
8498
|
+
| ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
8499
|
+
|
8427
8500
|
/**
|
8428
8501
|
* Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
|
8429
8502
|
*/
|
@@ -9400,7 +9473,7 @@ declare interface ResolveOptionsWebpackOptions {
|
|
9400
9473
|
/**
|
9401
9474
|
* Plugins for the resolver.
|
9402
9475
|
*/
|
9403
|
-
plugins?: ("..."
|
9476
|
+
plugins?: (ResolvePluginInstance | "...")[];
|
9404
9477
|
|
9405
9478
|
/**
|
9406
9479
|
* Prefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
|
@@ -10012,18 +10085,21 @@ declare abstract class RuntimeTemplate {
|
|
10012
10085
|
compilation: Compilation;
|
10013
10086
|
outputOptions: OutputNormalized;
|
10014
10087
|
requestShortener: RequestShortener;
|
10088
|
+
globalObject: string;
|
10015
10089
|
isIIFE(): undefined | boolean;
|
10016
10090
|
isModule(): undefined | boolean;
|
10017
10091
|
supportsConst(): undefined | boolean;
|
10018
10092
|
supportsArrowFunction(): undefined | boolean;
|
10093
|
+
supportsOptionalChaining(): undefined | boolean;
|
10019
10094
|
supportsForOf(): undefined | boolean;
|
10020
10095
|
supportsDestructuring(): undefined | boolean;
|
10021
10096
|
supportsBigIntLiteral(): undefined | boolean;
|
10022
10097
|
supportsDynamicImport(): undefined | boolean;
|
10023
10098
|
supportsEcmaScriptModuleSyntax(): undefined | boolean;
|
10024
|
-
supportTemplateLiteral(): boolean;
|
10099
|
+
supportTemplateLiteral(): undefined | boolean;
|
10025
10100
|
returningFunction(returnValue?: any, args?: string): string;
|
10026
10101
|
basicFunction(args?: any, body?: any): string;
|
10102
|
+
concatenation(...args: (string | { expr: string })[]): string;
|
10027
10103
|
expressionFunction(expression?: any, args?: string): string;
|
10028
10104
|
emptyFunction(): "x => {}" | "function() {}";
|
10029
10105
|
destructureArray(items?: any, value?: any): string;
|
@@ -10400,6 +10476,24 @@ declare abstract class RuntimeTemplate {
|
|
10400
10476
|
*/
|
10401
10477
|
runtimeRequirements: Set<string>;
|
10402
10478
|
}): string;
|
10479
|
+
assetUrl(__0: {
|
10480
|
+
/**
|
10481
|
+
* the module
|
10482
|
+
*/
|
10483
|
+
module: Module;
|
10484
|
+
/**
|
10485
|
+
* the public path
|
10486
|
+
*/
|
10487
|
+
publicPath: string;
|
10488
|
+
/**
|
10489
|
+
* runtime
|
10490
|
+
*/
|
10491
|
+
runtime?: RuntimeSpec;
|
10492
|
+
/**
|
10493
|
+
* the code generation results
|
10494
|
+
*/
|
10495
|
+
codeGenerationResults: CodeGenerationResults;
|
10496
|
+
}): string;
|
10403
10497
|
}
|
10404
10498
|
declare abstract class RuntimeValue {
|
10405
10499
|
fn: (arg0: {
|
@@ -11239,7 +11333,7 @@ declare interface StatsOptions {
|
|
11239
11333
|
/**
|
11240
11334
|
* Add logging output.
|
11241
11335
|
*/
|
11242
|
-
logging?: boolean | "none" | "
|
11336
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose";
|
11243
11337
|
|
11244
11338
|
/**
|
11245
11339
|
* Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.
|
@@ -11408,15 +11502,15 @@ type StatsPrinterContext = KnownStatsPrinterContext & Record<string, any>;
|
|
11408
11502
|
type StatsProfile = KnownStatsProfile & Record<string, any>;
|
11409
11503
|
type StatsValue =
|
11410
11504
|
| boolean
|
11505
|
+
| StatsOptions
|
11411
11506
|
| "none"
|
11507
|
+
| "verbose"
|
11412
11508
|
| "summary"
|
11413
11509
|
| "errors-only"
|
11414
11510
|
| "errors-warnings"
|
11415
11511
|
| "minimal"
|
11416
11512
|
| "normal"
|
11417
|
-
| "detailed"
|
11418
|
-
| "verbose"
|
11419
|
-
| StatsOptions;
|
11513
|
+
| "detailed";
|
11420
11514
|
declare interface SyntheticDependencyLocation {
|
11421
11515
|
name: string;
|
11422
11516
|
index?: number;
|
@@ -11741,6 +11835,32 @@ declare interface Watcher {
|
|
11741
11835
|
* get info about directories
|
11742
11836
|
*/
|
11743
11837
|
getContextTimeInfoEntries: () => Map<string, FileSystemInfoEntry | "ignore">;
|
11838
|
+
|
11839
|
+
/**
|
11840
|
+
* get info about timestamps and changes
|
11841
|
+
*/
|
11842
|
+
getInfo?: () => WatcherInfo;
|
11843
|
+
}
|
11844
|
+
declare interface WatcherInfo {
|
11845
|
+
/**
|
11846
|
+
* get current aggregated changes that have not yet send to callback
|
11847
|
+
*/
|
11848
|
+
changes: Set<string>;
|
11849
|
+
|
11850
|
+
/**
|
11851
|
+
* get current aggregated removals that have not yet send to callback
|
11852
|
+
*/
|
11853
|
+
removals: Set<string>;
|
11854
|
+
|
11855
|
+
/**
|
11856
|
+
* get info about files
|
11857
|
+
*/
|
11858
|
+
fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
|
11859
|
+
|
11860
|
+
/**
|
11861
|
+
* get info about directories
|
11862
|
+
*/
|
11863
|
+
contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
|
11744
11864
|
}
|
11745
11865
|
declare abstract class Watching {
|
11746
11866
|
startTime: null | number;
|
@@ -11968,6 +12088,7 @@ declare interface WebpackOptionsNormalized {
|
|
11968
12088
|
| "commonjs"
|
11969
12089
|
| "commonjs2"
|
11970
12090
|
| "commonjs-module"
|
12091
|
+
| "commonjs-static"
|
11971
12092
|
| "amd"
|
11972
12093
|
| "amd-require"
|
11973
12094
|
| "umd"
|
@@ -12000,7 +12121,7 @@ declare interface WebpackOptionsNormalized {
|
|
12000
12121
|
/**
|
12001
12122
|
* Enable production optimizations or development hints.
|
12002
12123
|
*/
|
12003
|
-
mode?: "
|
12124
|
+
mode?: "none" | "development" | "production";
|
12004
12125
|
|
12005
12126
|
/**
|
12006
12127
|
* Options affecting the normal modules (`NormalModuleFactory`).
|
@@ -12263,7 +12384,9 @@ declare namespace exports {
|
|
12263
12384
|
export let chunkName: string;
|
12264
12385
|
export let runtimeId: string;
|
12265
12386
|
export let getChunkScriptFilename: string;
|
12387
|
+
export let getChunkCssFilename: string;
|
12266
12388
|
export let getChunkUpdateScriptFilename: string;
|
12389
|
+
export let getChunkUpdateCssFilename: string;
|
12267
12390
|
export let startup: string;
|
12268
12391
|
export let startupNoDefault: string;
|
12269
12392
|
export let startupOnlyAfter: string;
|
@@ -12672,6 +12795,7 @@ declare namespace exports {
|
|
12672
12795
|
RuleSetRule,
|
12673
12796
|
RuleSetUse,
|
12674
12797
|
RuleSetUseItem,
|
12798
|
+
StatsOptions,
|
12675
12799
|
Configuration,
|
12676
12800
|
WebpackOptionsNormalized,
|
12677
12801
|
WebpackPluginInstance,
|
@@ -12679,6 +12803,8 @@ declare namespace exports {
|
|
12679
12803
|
AssetInfo,
|
12680
12804
|
MultiStats,
|
12681
12805
|
ParserState,
|
12806
|
+
ResolvePluginInstance,
|
12807
|
+
Resolver,
|
12682
12808
|
Watching,
|
12683
12809
|
StatsAsset,
|
12684
12810
|
StatsChunk,
|