webpack 5.102.0 → 5.102.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/lib/ChunkGraph.js +2 -2
- package/lib/CodeGenerationResults.js +1 -1
- package/lib/Compilation.js +5 -11
- package/lib/ContextModule.js +3 -1
- package/lib/DefinePlugin.js +1 -1
- package/lib/DependencyTemplates.js +1 -1
- package/lib/FileSystemInfo.js +9 -12
- package/lib/ModuleFilenameHelpers.js +1 -1
- package/lib/NormalModule.js +1 -1
- package/lib/NormalModuleFactory.js +75 -4
- package/lib/RuntimeTemplate.js +10 -1
- package/lib/SourceMapDevToolPlugin.js +6 -8
- package/lib/asset/AssetBytesGenerator.js +1 -0
- package/lib/asset/AssetGenerator.js +2 -3
- package/lib/cache/getLazyHashedEtag.js +1 -1
- package/lib/config/browserslistTargetHandler.js +77 -76
- package/lib/config/defaults.js +7 -2
- package/lib/config/target.js +1 -1
- package/lib/css/CssModulesPlugin.js +2 -6
- package/lib/css/walkCssTokens.js +1 -1
- package/lib/dependencies/ContextElementDependency.js +2 -2
- package/lib/dependencies/CssLocalIdentifierDependency.js +1 -3
- package/lib/dependencies/HarmonyImportDependency.js +5 -2
- package/lib/dependencies/ImportContextDependency.js +13 -0
- package/lib/dependencies/ImportDependency.js +2 -2
- package/lib/dependencies/ImportMetaPlugin.js +1 -1
- package/lib/dependencies/WorkerPlugin.js +1 -3
- package/lib/ids/HashedModuleIdsPlugin.js +5 -7
- package/lib/ids/IdHelpers.js +1 -1
- package/lib/javascript/JavascriptModulesPlugin.js +2 -3
- package/lib/javascript/JavascriptParser.js +1 -1
- package/lib/library/SystemLibraryPlugin.js +15 -5
- package/lib/optimize/RealContentHashPlugin.js +5 -3
- package/lib/serialization/FileMiddleware.js +1 -1
- package/lib/serialization/ObjectMiddleware.js +1 -1
- package/lib/stats/DefaultStatsFactoryPlugin.js +1 -1
- package/lib/util/Hash.js +35 -5
- package/lib/util/create-schema-validation.js +1 -1
- package/lib/util/createHash.js +85 -15
- package/lib/util/hash/BatchedHash.js +47 -8
- package/lib/util/hash/wasm-hash.js +53 -13
- package/lib/wasm-async/AsyncWebAssemblyParser.js +0 -9
- package/lib/wasm-sync/WebAssemblyParser.js +0 -9
- package/lib/web/JsonpChunkLoadingRuntimeModule.js +1 -1
- package/package.json +18 -18
- package/schemas/WebpackOptions.check.js +1 -1
- package/schemas/WebpackOptions.json +16 -3
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.d.ts +7 -0
- package/schemas/plugins/ids/HashedModuleIdsPlugin.check.js +6 -0
- package/schemas/plugins/{HashedModuleIdsPlugin.json → ids/HashedModuleIdsPlugin.json} +15 -2
- package/types.d.ts +590 -196
- package/schemas/plugins/HashedModuleIdsPlugin.check.d.ts +0 -7
- package/schemas/plugins/HashedModuleIdsPlugin.check.js +0 -6
package/types.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ClassBody,
|
|
25
25
|
ClassDeclaration,
|
|
26
26
|
ClassExpression,
|
|
27
|
-
Comment,
|
|
27
|
+
Comment as CommentImport,
|
|
28
28
|
ConditionalExpression,
|
|
29
29
|
ContinueStatement,
|
|
30
30
|
DebuggerStatement,
|
|
@@ -99,9 +99,11 @@ import {
|
|
|
99
99
|
} from "inspector";
|
|
100
100
|
import { JSONSchema4, JSONSchema6, JSONSchema7 } from "json-schema";
|
|
101
101
|
import { ListenOptions } from "net";
|
|
102
|
-
import {
|
|
102
|
+
import {
|
|
103
|
+
ValidationErrorConfiguration,
|
|
104
|
+
validate as validateFunction
|
|
105
|
+
} from "schema-utils";
|
|
103
106
|
import { default as ValidationError } from "schema-utils/declarations/ValidationError";
|
|
104
|
-
import { ValidationErrorConfiguration } from "schema-utils/declarations/validate";
|
|
105
107
|
import {
|
|
106
108
|
AsArray,
|
|
107
109
|
AsyncParallelHook,
|
|
@@ -114,7 +116,8 @@ import {
|
|
|
114
116
|
SyncBailHook,
|
|
115
117
|
SyncHook,
|
|
116
118
|
SyncWaterfallHook,
|
|
117
|
-
TapOptions
|
|
119
|
+
TapOptions,
|
|
120
|
+
TypedHookMap
|
|
118
121
|
} from "tapable";
|
|
119
122
|
import { SecureContextOptions, TlsOptions } from "tls";
|
|
120
123
|
import { URL } from "url";
|
|
@@ -297,6 +300,14 @@ declare interface Asset {
|
|
|
297
300
|
*/
|
|
298
301
|
info: AssetInfo;
|
|
299
302
|
}
|
|
303
|
+
declare abstract class AssetBytesGenerator extends Generator {
|
|
304
|
+
generateError(
|
|
305
|
+
error: Error,
|
|
306
|
+
module: NormalModule,
|
|
307
|
+
generateContext: GenerateContext
|
|
308
|
+
): null | Source;
|
|
309
|
+
}
|
|
310
|
+
declare abstract class AssetBytesParser extends ParserClass {}
|
|
300
311
|
declare interface AssetDependencyMeta {
|
|
301
312
|
sourceType: "css-url";
|
|
302
313
|
}
|
|
@@ -311,6 +322,25 @@ type AssetFilterItemTypes =
|
|
|
311
322
|
| string
|
|
312
323
|
| RegExp
|
|
313
324
|
| ((name: string, asset: StatsAsset) => boolean);
|
|
325
|
+
declare abstract class AssetGenerator extends Generator {
|
|
326
|
+
dataUrlOptions?:
|
|
327
|
+
| AssetGeneratorDataUrlOptions
|
|
328
|
+
| ((
|
|
329
|
+
source: string | Buffer,
|
|
330
|
+
context: { filename: string; module: Module }
|
|
331
|
+
) => string);
|
|
332
|
+
filename?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
|
333
|
+
publicPath?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
|
334
|
+
outputPath?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
|
335
|
+
emit?: boolean;
|
|
336
|
+
getMimeType(module: NormalModule): string;
|
|
337
|
+
generateDataUri(module: NormalModule): string;
|
|
338
|
+
generateError(
|
|
339
|
+
error: Error,
|
|
340
|
+
module: NormalModule,
|
|
341
|
+
generateContext: GenerateContext
|
|
342
|
+
): null | Source;
|
|
343
|
+
}
|
|
314
344
|
|
|
315
345
|
/**
|
|
316
346
|
* Options object for data url generation.
|
|
@@ -349,6 +379,15 @@ declare interface AssetInlineGeneratorOptions {
|
|
|
349
379
|
context: { filename: string; module: Module }
|
|
350
380
|
) => string);
|
|
351
381
|
}
|
|
382
|
+
declare abstract class AssetParser extends ParserClass {
|
|
383
|
+
dataUrlCondition?:
|
|
384
|
+
| boolean
|
|
385
|
+
| AssetParserDataUrlOptions
|
|
386
|
+
| ((
|
|
387
|
+
source: string | Buffer,
|
|
388
|
+
context: { filename: string; module: Module }
|
|
389
|
+
) => boolean);
|
|
390
|
+
}
|
|
352
391
|
|
|
353
392
|
/**
|
|
354
393
|
* Options object for DataUrl condition.
|
|
@@ -404,6 +443,14 @@ declare interface AssetResourceGeneratorOptions {
|
|
|
404
443
|
*/
|
|
405
444
|
publicPath?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
|
|
406
445
|
}
|
|
446
|
+
declare abstract class AssetSourceGenerator extends Generator {
|
|
447
|
+
generateError(
|
|
448
|
+
error: Error,
|
|
449
|
+
module: NormalModule,
|
|
450
|
+
generateContext: GenerateContext
|
|
451
|
+
): null | Source;
|
|
452
|
+
}
|
|
453
|
+
declare abstract class AssetSourceParser extends ParserClass {}
|
|
407
454
|
declare class AsyncDependenciesBlock extends DependenciesBlock {
|
|
408
455
|
constructor(
|
|
409
456
|
groupOptions:
|
|
@@ -473,6 +520,7 @@ declare interface AsyncWebAssemblyModulesPluginOptions {
|
|
|
473
520
|
*/
|
|
474
521
|
mangleImports?: boolean;
|
|
475
522
|
}
|
|
523
|
+
declare abstract class AsyncWebAssemblyParser extends ParserClass {}
|
|
476
524
|
declare class AutomaticPrefetchPlugin {
|
|
477
525
|
constructor();
|
|
478
526
|
|
|
@@ -941,18 +989,18 @@ declare interface Bootstrap {
|
|
|
941
989
|
allowInlineStartup: boolean;
|
|
942
990
|
}
|
|
943
991
|
type BufferEncoding =
|
|
944
|
-
| "
|
|
992
|
+
| "base64"
|
|
993
|
+
| "base64url"
|
|
994
|
+
| "hex"
|
|
995
|
+
| "binary"
|
|
945
996
|
| "utf8"
|
|
946
997
|
| "utf-8"
|
|
947
998
|
| "utf16le"
|
|
948
999
|
| "utf-16le"
|
|
949
|
-
| "ucs2"
|
|
950
|
-
| "ucs-2"
|
|
951
|
-
| "base64"
|
|
952
|
-
| "base64url"
|
|
953
1000
|
| "latin1"
|
|
954
|
-
| "
|
|
955
|
-
| "
|
|
1001
|
+
| "ascii"
|
|
1002
|
+
| "ucs2"
|
|
1003
|
+
| "ucs-2";
|
|
956
1004
|
type BufferEncodingOption = "buffer" | { encoding: "buffer" };
|
|
957
1005
|
declare interface BufferEntry {
|
|
958
1006
|
map?: null | RawSourceMap;
|
|
@@ -2044,6 +2092,11 @@ declare interface ColorsOptions {
|
|
|
2044
2092
|
*/
|
|
2045
2093
|
useColor?: boolean;
|
|
2046
2094
|
}
|
|
2095
|
+
declare interface CommentCssParser {
|
|
2096
|
+
value: string;
|
|
2097
|
+
range: [number, number];
|
|
2098
|
+
loc: { start: Position; end: Position };
|
|
2099
|
+
}
|
|
2047
2100
|
declare interface CommonJsImportSettings {
|
|
2048
2101
|
name?: string;
|
|
2049
2102
|
context: string;
|
|
@@ -3558,6 +3611,23 @@ declare interface CssData {
|
|
|
3558
3611
|
*/
|
|
3559
3612
|
exports: Map<string, string>;
|
|
3560
3613
|
}
|
|
3614
|
+
declare abstract class CssGenerator extends Generator {
|
|
3615
|
+
convention?:
|
|
3616
|
+
| "as-is"
|
|
3617
|
+
| "camel-case"
|
|
3618
|
+
| "camel-case-only"
|
|
3619
|
+
| "dashes"
|
|
3620
|
+
| "dashes-only"
|
|
3621
|
+
| ((name: string) => string);
|
|
3622
|
+
localIdentName?: string;
|
|
3623
|
+
exportsOnly?: boolean;
|
|
3624
|
+
esModule?: boolean;
|
|
3625
|
+
generateError(
|
|
3626
|
+
error: Error,
|
|
3627
|
+
module: NormalModule,
|
|
3628
|
+
generateContext: GenerateContext
|
|
3629
|
+
): null | Source;
|
|
3630
|
+
}
|
|
3561
3631
|
|
|
3562
3632
|
/**
|
|
3563
3633
|
* Generator options for css modules.
|
|
@@ -3753,6 +3823,19 @@ declare class CssModulesPlugin {
|
|
|
3753
3823
|
): TemplatePath;
|
|
3754
3824
|
static chunkHasCss(chunk: Chunk, chunkGraph: ChunkGraph): boolean;
|
|
3755
3825
|
}
|
|
3826
|
+
declare abstract class CssParser extends ParserClass {
|
|
3827
|
+
defaultMode: "global" | "auto" | "pure" | "local";
|
|
3828
|
+
import: boolean;
|
|
3829
|
+
url: boolean;
|
|
3830
|
+
namedExports: boolean;
|
|
3831
|
+
comments?: CommentCssParser[];
|
|
3832
|
+
magicCommentContext: Context;
|
|
3833
|
+
getComments(range: [number, number]): CommentCssParser[];
|
|
3834
|
+
parseCommentOptions(range: [number, number]): {
|
|
3835
|
+
options: null | Record<string, any>;
|
|
3836
|
+
errors: null | (Error & { comment: CommentCssParser })[];
|
|
3837
|
+
};
|
|
3838
|
+
}
|
|
3756
3839
|
|
|
3757
3840
|
/**
|
|
3758
3841
|
* Parser options for css modules.
|
|
@@ -4435,18 +4518,18 @@ declare class EnableWasmLoadingPlugin {
|
|
|
4435
4518
|
type EncodingOption =
|
|
4436
4519
|
| undefined
|
|
4437
4520
|
| null
|
|
4438
|
-
| "
|
|
4521
|
+
| "base64"
|
|
4522
|
+
| "base64url"
|
|
4523
|
+
| "hex"
|
|
4524
|
+
| "binary"
|
|
4439
4525
|
| "utf8"
|
|
4440
4526
|
| "utf-8"
|
|
4441
4527
|
| "utf16le"
|
|
4442
4528
|
| "utf-16le"
|
|
4529
|
+
| "latin1"
|
|
4530
|
+
| "ascii"
|
|
4443
4531
|
| "ucs2"
|
|
4444
4532
|
| "ucs-2"
|
|
4445
|
-
| "base64"
|
|
4446
|
-
| "base64url"
|
|
4447
|
-
| "latin1"
|
|
4448
|
-
| "binary"
|
|
4449
|
-
| "hex"
|
|
4450
4533
|
| ObjectEncodingOptions;
|
|
4451
4534
|
type Entry =
|
|
4452
4535
|
| string
|
|
@@ -6159,13 +6242,36 @@ declare class Hash {
|
|
|
6159
6242
|
/**
|
|
6160
6243
|
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
|
6161
6244
|
*/
|
|
6162
|
-
update(data: string | Buffer
|
|
6245
|
+
update(data: string | Buffer): Hash;
|
|
6246
|
+
|
|
6247
|
+
/**
|
|
6248
|
+
* Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
|
|
6249
|
+
*/
|
|
6250
|
+
update(data: string, inputEncoding: HashDigest): Hash;
|
|
6163
6251
|
|
|
6164
6252
|
/**
|
|
6165
6253
|
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
|
6166
6254
|
*/
|
|
6167
|
-
digest(
|
|
6255
|
+
digest(): Buffer;
|
|
6256
|
+
|
|
6257
|
+
/**
|
|
6258
|
+
* Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
|
|
6259
|
+
*/
|
|
6260
|
+
digest(encoding: HashDigest): string;
|
|
6168
6261
|
}
|
|
6262
|
+
type HashDigest =
|
|
6263
|
+
| "base64"
|
|
6264
|
+
| "base64url"
|
|
6265
|
+
| "hex"
|
|
6266
|
+
| "binary"
|
|
6267
|
+
| "utf8"
|
|
6268
|
+
| "utf-8"
|
|
6269
|
+
| "utf16le"
|
|
6270
|
+
| "utf-16le"
|
|
6271
|
+
| "latin1"
|
|
6272
|
+
| "ascii"
|
|
6273
|
+
| "ucs2"
|
|
6274
|
+
| "ucs-2";
|
|
6169
6275
|
type HashFunction = string | typeof Hash;
|
|
6170
6276
|
declare interface HashLike {
|
|
6171
6277
|
/**
|
|
@@ -6183,7 +6289,9 @@ declare interface HashableObject {
|
|
|
6183
6289
|
}
|
|
6184
6290
|
declare class HashedModuleIdsPlugin {
|
|
6185
6291
|
constructor(options?: HashedModuleIdsPluginOptions);
|
|
6186
|
-
options: HashedModuleIdsPluginOptions
|
|
6292
|
+
options: Required<Omit<HashedModuleIdsPluginOptions, "context">> & {
|
|
6293
|
+
context?: string;
|
|
6294
|
+
};
|
|
6187
6295
|
|
|
6188
6296
|
/**
|
|
6189
6297
|
* Apply the plugin
|
|
@@ -6199,7 +6307,19 @@ declare interface HashedModuleIdsPluginOptions {
|
|
|
6199
6307
|
/**
|
|
6200
6308
|
* The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
|
|
6201
6309
|
*/
|
|
6202
|
-
hashDigest?:
|
|
6310
|
+
hashDigest?:
|
|
6311
|
+
| "base64"
|
|
6312
|
+
| "base64url"
|
|
6313
|
+
| "hex"
|
|
6314
|
+
| "binary"
|
|
6315
|
+
| "utf8"
|
|
6316
|
+
| "utf-8"
|
|
6317
|
+
| "utf16le"
|
|
6318
|
+
| "utf-16le"
|
|
6319
|
+
| "latin1"
|
|
6320
|
+
| "ascii"
|
|
6321
|
+
| "ucs2"
|
|
6322
|
+
| "ucs-2";
|
|
6203
6323
|
|
|
6204
6324
|
/**
|
|
6205
6325
|
* The prefix length of the hash digest to use, defaults to 4.
|
|
@@ -6380,35 +6500,6 @@ declare interface ImportDependencyMeta {
|
|
|
6380
6500
|
externalType?: "import" | "module";
|
|
6381
6501
|
}
|
|
6382
6502
|
type ImportExpressionJavascriptParser = ImportExpressionImport & {
|
|
6383
|
-
options?:
|
|
6384
|
-
| null
|
|
6385
|
-
| ImportExpressionImport
|
|
6386
|
-
| UnaryExpression
|
|
6387
|
-
| ArrayExpression
|
|
6388
|
-
| ArrowFunctionExpression
|
|
6389
|
-
| AssignmentExpression
|
|
6390
|
-
| AwaitExpression
|
|
6391
|
-
| BinaryExpression
|
|
6392
|
-
| SimpleCallExpression
|
|
6393
|
-
| NewExpression
|
|
6394
|
-
| ChainExpression
|
|
6395
|
-
| ClassExpression
|
|
6396
|
-
| ConditionalExpression
|
|
6397
|
-
| FunctionExpression
|
|
6398
|
-
| Identifier
|
|
6399
|
-
| SimpleLiteral
|
|
6400
|
-
| RegExpLiteral
|
|
6401
|
-
| BigIntLiteral
|
|
6402
|
-
| LogicalExpression
|
|
6403
|
-
| MemberExpression
|
|
6404
|
-
| MetaProperty
|
|
6405
|
-
| ObjectExpression
|
|
6406
|
-
| SequenceExpression
|
|
6407
|
-
| TaggedTemplateExpression
|
|
6408
|
-
| TemplateLiteral
|
|
6409
|
-
| ThisExpression
|
|
6410
|
-
| UpdateExpression
|
|
6411
|
-
| YieldExpression;
|
|
6412
6503
|
phase?: "defer";
|
|
6413
6504
|
};
|
|
6414
6505
|
declare interface ImportModuleOptions {
|
|
@@ -6570,18 +6661,18 @@ declare interface IntermediateFileSystemExtras {
|
|
|
6570
6661
|
createWriteStream: (
|
|
6571
6662
|
pathLike: PathLikeFs,
|
|
6572
6663
|
result?:
|
|
6573
|
-
| "
|
|
6664
|
+
| "base64"
|
|
6665
|
+
| "base64url"
|
|
6666
|
+
| "hex"
|
|
6667
|
+
| "binary"
|
|
6574
6668
|
| "utf8"
|
|
6575
6669
|
| "utf-8"
|
|
6576
6670
|
| "utf16le"
|
|
6577
6671
|
| "utf-16le"
|
|
6672
|
+
| "latin1"
|
|
6673
|
+
| "ascii"
|
|
6578
6674
|
| "ucs2"
|
|
6579
6675
|
| "ucs-2"
|
|
6580
|
-
| "base64"
|
|
6581
|
-
| "base64url"
|
|
6582
|
-
| "latin1"
|
|
6583
|
-
| "binary"
|
|
6584
|
-
| "hex"
|
|
6585
6676
|
| WriteStreamOptions
|
|
6586
6677
|
) => NodeJS.WritableStream;
|
|
6587
6678
|
open: Open;
|
|
@@ -6623,6 +6714,33 @@ declare interface IteratorObject<T, TReturn = unknown, TNext = unknown>
|
|
|
6623
6714
|
[Symbol.iterator](): IteratorObject<T, TReturn, TNext>;
|
|
6624
6715
|
[Symbol.dispose](): void;
|
|
6625
6716
|
}
|
|
6717
|
+
declare abstract class JavascriptGenerator extends Generator {
|
|
6718
|
+
generateError(
|
|
6719
|
+
error: Error,
|
|
6720
|
+
module: NormalModule,
|
|
6721
|
+
generateContext: GenerateContext
|
|
6722
|
+
): null | Source;
|
|
6723
|
+
sourceModule(
|
|
6724
|
+
module: Module,
|
|
6725
|
+
initFragments: InitFragment<GenerateContext>[],
|
|
6726
|
+
source: ReplaceSource,
|
|
6727
|
+
generateContext: GenerateContext
|
|
6728
|
+
): void;
|
|
6729
|
+
sourceBlock(
|
|
6730
|
+
module: Module,
|
|
6731
|
+
block: DependenciesBlock,
|
|
6732
|
+
initFragments: InitFragment<GenerateContext>[],
|
|
6733
|
+
source: ReplaceSource,
|
|
6734
|
+
generateContext: GenerateContext
|
|
6735
|
+
): void;
|
|
6736
|
+
sourceDependency(
|
|
6737
|
+
module: Module,
|
|
6738
|
+
dependency: Dependency,
|
|
6739
|
+
initFragments: InitFragment<GenerateContext>[],
|
|
6740
|
+
source: ReplaceSource,
|
|
6741
|
+
generateContext: GenerateContext
|
|
6742
|
+
): void;
|
|
6743
|
+
}
|
|
6626
6744
|
declare class JavascriptModulesPlugin {
|
|
6627
6745
|
constructor(options?: object);
|
|
6628
6746
|
options: object;
|
|
@@ -7107,15 +7225,15 @@ declare class JavascriptParser extends ParserClass {
|
|
|
7107
7225
|
[LogicalExpression],
|
|
7108
7226
|
boolean | void
|
|
7109
7227
|
>;
|
|
7110
|
-
program: SyncBailHook<[Program,
|
|
7228
|
+
program: SyncBailHook<[Program, CommentImport[]], boolean | void>;
|
|
7111
7229
|
terminate: SyncBailHook<[ReturnStatement | ThrowStatement], boolean | void>;
|
|
7112
|
-
finish: SyncBailHook<[Program,
|
|
7230
|
+
finish: SyncBailHook<[Program, CommentImport[]], boolean | void>;
|
|
7113
7231
|
unusedStatement: SyncBailHook<[Statement], boolean | void>;
|
|
7114
7232
|
}>;
|
|
7115
7233
|
sourceType: "module" | "auto" | "script";
|
|
7116
7234
|
scope: ScopeInfo;
|
|
7117
7235
|
state: ParserState;
|
|
7118
|
-
comments?:
|
|
7236
|
+
comments?: CommentImport[];
|
|
7119
7237
|
semicolons?: Set<number>;
|
|
7120
7238
|
statementPath?: StatementPathItem[];
|
|
7121
7239
|
prevStatement?:
|
|
@@ -7939,7 +8057,7 @@ declare class JavascriptParser extends ParserClass {
|
|
|
7939
8057
|
| MaybeNamedClassDeclaration,
|
|
7940
8058
|
commentsStartPos: number
|
|
7941
8059
|
): boolean;
|
|
7942
|
-
getComments(range: [number, number]):
|
|
8060
|
+
getComments(range: [number, number]): CommentImport[];
|
|
7943
8061
|
isAsiPosition(pos: number): boolean;
|
|
7944
8062
|
setAsiPosition(pos: number): void;
|
|
7945
8063
|
unsetAsiPosition(pos: number): void;
|
|
@@ -7975,7 +8093,7 @@ declare class JavascriptParser extends ParserClass {
|
|
|
7975
8093
|
evaluatedVariable(tagInfo: TagInfo): VariableInfo;
|
|
7976
8094
|
parseCommentOptions(range: [number, number]): {
|
|
7977
8095
|
options: null | Record<string, any>;
|
|
7978
|
-
errors: null | (Error & { comment:
|
|
8096
|
+
errors: null | (Error & { comment: CommentImport })[];
|
|
7979
8097
|
};
|
|
7980
8098
|
extractMemberExpressionChain(
|
|
7981
8099
|
expression:
|
|
@@ -8114,8 +8232,6 @@ declare class JavascriptParser extends ParserClass {
|
|
|
8114
8232
|
* Parser options for javascript modules.
|
|
8115
8233
|
*/
|
|
8116
8234
|
declare interface JavascriptParserOptions {
|
|
8117
|
-
[index: string]: any;
|
|
8118
|
-
|
|
8119
8235
|
/**
|
|
8120
8236
|
* Set the value of `require.amd` and `define.amd`. Or disable AMD support.
|
|
8121
8237
|
*/
|
|
@@ -8327,6 +8443,14 @@ declare abstract class JsonData {
|
|
|
8327
8443
|
| JsonValueFs[];
|
|
8328
8444
|
updateHash(hash: Hash): void;
|
|
8329
8445
|
}
|
|
8446
|
+
declare abstract class JsonGenerator extends Generator {
|
|
8447
|
+
options: JsonGeneratorOptions;
|
|
8448
|
+
generateError(
|
|
8449
|
+
error: Error,
|
|
8450
|
+
module: NormalModule,
|
|
8451
|
+
generateContext: GenerateContext
|
|
8452
|
+
): null | Source;
|
|
8453
|
+
}
|
|
8330
8454
|
|
|
8331
8455
|
/**
|
|
8332
8456
|
* Generator options for json modules.
|
|
@@ -8337,6 +8461,17 @@ declare interface JsonGeneratorOptions {
|
|
|
8337
8461
|
*/
|
|
8338
8462
|
JSONParse?: boolean;
|
|
8339
8463
|
}
|
|
8464
|
+
declare interface JsonModulesPluginParserOptions {
|
|
8465
|
+
/**
|
|
8466
|
+
* The depth of json dependency flagged as `exportInfo`.
|
|
8467
|
+
*/
|
|
8468
|
+
exportsDepth?: number;
|
|
8469
|
+
|
|
8470
|
+
/**
|
|
8471
|
+
* Function that executes for a module source string and should return json-compatible data.
|
|
8472
|
+
*/
|
|
8473
|
+
parse?: (input: string) => any;
|
|
8474
|
+
}
|
|
8340
8475
|
declare interface JsonObjectFs {
|
|
8341
8476
|
[index: string]:
|
|
8342
8477
|
| undefined
|
|
@@ -8357,6 +8492,9 @@ declare interface JsonObjectTypes {
|
|
|
8357
8492
|
| JsonObjectTypes
|
|
8358
8493
|
| JsonValueTypes[];
|
|
8359
8494
|
}
|
|
8495
|
+
declare abstract class JsonParser extends ParserClass {
|
|
8496
|
+
options: JsonModulesPluginParserOptions;
|
|
8497
|
+
}
|
|
8360
8498
|
|
|
8361
8499
|
/**
|
|
8362
8500
|
* Parser options for JSON modules.
|
|
@@ -11288,12 +11426,225 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
|
|
|
11288
11426
|
],
|
|
11289
11427
|
Module
|
|
11290
11428
|
>;
|
|
11291
|
-
createParser:
|
|
11292
|
-
|
|
11293
|
-
|
|
11294
|
-
|
|
11429
|
+
createParser: TypedHookMap<
|
|
11430
|
+
Record<
|
|
11431
|
+
"javascript/auto",
|
|
11432
|
+
SyncBailHook<[JavascriptParserOptions], JavascriptParser>
|
|
11433
|
+
> &
|
|
11434
|
+
Record<
|
|
11435
|
+
"javascript/dynamic",
|
|
11436
|
+
SyncBailHook<[JavascriptParserOptions], JavascriptParser>
|
|
11437
|
+
> &
|
|
11438
|
+
Record<
|
|
11439
|
+
"javascript/esm",
|
|
11440
|
+
SyncBailHook<[JavascriptParserOptions], JavascriptParser>
|
|
11441
|
+
> &
|
|
11442
|
+
Record<"json", SyncBailHook<[JsonParserOptions], JsonParser>> &
|
|
11443
|
+
Record<"asset", SyncBailHook<[AssetParserOptions], AssetParser>> &
|
|
11444
|
+
Record<
|
|
11445
|
+
"asset/inline",
|
|
11446
|
+
SyncBailHook<[EmptyParserOptions], AssetParser>
|
|
11447
|
+
> &
|
|
11448
|
+
Record<
|
|
11449
|
+
"asset/resource",
|
|
11450
|
+
SyncBailHook<[EmptyParserOptions], AssetParser>
|
|
11451
|
+
> &
|
|
11452
|
+
Record<
|
|
11453
|
+
"asset/source",
|
|
11454
|
+
SyncBailHook<[EmptyParserOptions], AssetSourceParser>
|
|
11455
|
+
> &
|
|
11456
|
+
Record<
|
|
11457
|
+
"asset/bytes",
|
|
11458
|
+
SyncBailHook<[EmptyParserOptions], AssetBytesParser>
|
|
11459
|
+
> &
|
|
11460
|
+
Record<
|
|
11461
|
+
"webassembly/async",
|
|
11462
|
+
SyncBailHook<[EmptyParserOptions], AsyncWebAssemblyParser>
|
|
11463
|
+
> &
|
|
11464
|
+
Record<
|
|
11465
|
+
"webassembly/sync",
|
|
11466
|
+
SyncBailHook<[EmptyParserOptions], WebAssemblyParser>
|
|
11467
|
+
> &
|
|
11468
|
+
Record<"css", SyncBailHook<[CssParserOptions], CssParser>> &
|
|
11469
|
+
Record<"css/auto", SyncBailHook<[CssAutoParserOptions], CssParser>> &
|
|
11470
|
+
Record<
|
|
11471
|
+
"css/module",
|
|
11472
|
+
SyncBailHook<[CssModuleParserOptions], CssParser>
|
|
11473
|
+
> &
|
|
11474
|
+
Record<
|
|
11475
|
+
"css/global",
|
|
11476
|
+
SyncBailHook<[CssGlobalParserOptions], CssParser>
|
|
11477
|
+
> &
|
|
11478
|
+
Record<string, SyncBailHook<[ParserOptions], ParserClass>>
|
|
11479
|
+
>;
|
|
11480
|
+
parser: TypedHookMap<
|
|
11481
|
+
Record<
|
|
11482
|
+
"javascript/auto",
|
|
11483
|
+
SyncBailHook<[JavascriptParser, JavascriptParserOptions], void>
|
|
11484
|
+
> &
|
|
11485
|
+
Record<
|
|
11486
|
+
"javascript/dynamic",
|
|
11487
|
+
SyncBailHook<[JavascriptParser, JavascriptParserOptions], void>
|
|
11488
|
+
> &
|
|
11489
|
+
Record<
|
|
11490
|
+
"javascript/esm",
|
|
11491
|
+
SyncBailHook<[JavascriptParser, JavascriptParserOptions], void>
|
|
11492
|
+
> &
|
|
11493
|
+
Record<"json", SyncBailHook<[JsonParser, JsonParserOptions], void>> &
|
|
11494
|
+
Record<"asset", SyncBailHook<[AssetParser, AssetParserOptions], void>> &
|
|
11495
|
+
Record<
|
|
11496
|
+
"asset/inline",
|
|
11497
|
+
SyncBailHook<[AssetParser, EmptyParserOptions], void>
|
|
11498
|
+
> &
|
|
11499
|
+
Record<
|
|
11500
|
+
"asset/resource",
|
|
11501
|
+
SyncBailHook<[AssetParser, EmptyParserOptions], void>
|
|
11502
|
+
> &
|
|
11503
|
+
Record<
|
|
11504
|
+
"asset/source",
|
|
11505
|
+
SyncBailHook<[AssetSourceParser, EmptyParserOptions], void>
|
|
11506
|
+
> &
|
|
11507
|
+
Record<
|
|
11508
|
+
"asset/bytes",
|
|
11509
|
+
SyncBailHook<[AssetBytesParser, EmptyParserOptions], void>
|
|
11510
|
+
> &
|
|
11511
|
+
Record<
|
|
11512
|
+
"webassembly/async",
|
|
11513
|
+
SyncBailHook<[AsyncWebAssemblyParser, EmptyParserOptions], void>
|
|
11514
|
+
> &
|
|
11515
|
+
Record<
|
|
11516
|
+
"webassembly/sync",
|
|
11517
|
+
SyncBailHook<[WebAssemblyParser, EmptyParserOptions], void>
|
|
11518
|
+
> &
|
|
11519
|
+
Record<"css", SyncBailHook<[CssParser, CssParserOptions], void>> &
|
|
11520
|
+
Record<
|
|
11521
|
+
"css/auto",
|
|
11522
|
+
SyncBailHook<[CssParser, CssAutoParserOptions], void>
|
|
11523
|
+
> &
|
|
11524
|
+
Record<
|
|
11525
|
+
"css/module",
|
|
11526
|
+
SyncBailHook<[CssParser, CssModuleParserOptions], void>
|
|
11527
|
+
> &
|
|
11528
|
+
Record<
|
|
11529
|
+
"css/global",
|
|
11530
|
+
SyncBailHook<[CssParser, CssGlobalParserOptions], void>
|
|
11531
|
+
> &
|
|
11532
|
+
Record<string, SyncBailHook<[ParserClass, ParserOptions], void>>
|
|
11533
|
+
>;
|
|
11534
|
+
createGenerator: TypedHookMap<
|
|
11535
|
+
Record<
|
|
11536
|
+
"javascript/auto",
|
|
11537
|
+
SyncBailHook<[EmptyGeneratorOptions], JavascriptGenerator>
|
|
11538
|
+
> &
|
|
11539
|
+
Record<
|
|
11540
|
+
"javascript/dynamic",
|
|
11541
|
+
SyncBailHook<[EmptyGeneratorOptions], JavascriptGenerator>
|
|
11542
|
+
> &
|
|
11543
|
+
Record<
|
|
11544
|
+
"javascript/esm",
|
|
11545
|
+
SyncBailHook<[EmptyGeneratorOptions], JavascriptGenerator>
|
|
11546
|
+
> &
|
|
11547
|
+
Record<"json", SyncBailHook<[JsonGeneratorOptions], JsonGenerator>> &
|
|
11548
|
+
Record<"asset", SyncBailHook<[AssetGeneratorOptions], AssetGenerator>> &
|
|
11549
|
+
Record<
|
|
11550
|
+
"asset/inline",
|
|
11551
|
+
SyncBailHook<[AssetGeneratorOptions], AssetGenerator>
|
|
11552
|
+
> &
|
|
11553
|
+
Record<
|
|
11554
|
+
"asset/resource",
|
|
11555
|
+
SyncBailHook<[AssetGeneratorOptions], AssetGenerator>
|
|
11556
|
+
> &
|
|
11557
|
+
Record<
|
|
11558
|
+
"asset/source",
|
|
11559
|
+
SyncBailHook<[EmptyGeneratorOptions], AssetSourceGenerator>
|
|
11560
|
+
> &
|
|
11561
|
+
Record<
|
|
11562
|
+
"asset/bytes",
|
|
11563
|
+
SyncBailHook<[EmptyGeneratorOptions], AssetBytesGenerator>
|
|
11564
|
+
> &
|
|
11565
|
+
Record<
|
|
11566
|
+
"webassembly/async",
|
|
11567
|
+
SyncBailHook<[EmptyParserOptions], Generator>
|
|
11568
|
+
> &
|
|
11569
|
+
Record<
|
|
11570
|
+
"webassembly/sync",
|
|
11571
|
+
SyncBailHook<[EmptyParserOptions], Generator>
|
|
11572
|
+
> &
|
|
11573
|
+
Record<"css", SyncBailHook<[CssGeneratorOptions], CssGenerator>> &
|
|
11574
|
+
Record<
|
|
11575
|
+
"css/auto",
|
|
11576
|
+
SyncBailHook<[CssAutoGeneratorOptions], CssGenerator>
|
|
11577
|
+
> &
|
|
11578
|
+
Record<
|
|
11579
|
+
"css/module",
|
|
11580
|
+
SyncBailHook<[CssModuleGeneratorOptions], CssGenerator>
|
|
11581
|
+
> &
|
|
11582
|
+
Record<
|
|
11583
|
+
"css/global",
|
|
11584
|
+
SyncBailHook<[CssGlobalGeneratorOptions], CssGenerator>
|
|
11585
|
+
> &
|
|
11586
|
+
Record<string, SyncBailHook<[GeneratorOptions], Generator>>
|
|
11587
|
+
>;
|
|
11588
|
+
generator: TypedHookMap<
|
|
11589
|
+
Record<
|
|
11590
|
+
"javascript/auto",
|
|
11591
|
+
SyncBailHook<[JavascriptGenerator, EmptyGeneratorOptions], void>
|
|
11592
|
+
> &
|
|
11593
|
+
Record<
|
|
11594
|
+
"javascript/dynamic",
|
|
11595
|
+
SyncBailHook<[JavascriptGenerator, EmptyGeneratorOptions], void>
|
|
11596
|
+
> &
|
|
11597
|
+
Record<
|
|
11598
|
+
"javascript/esm",
|
|
11599
|
+
SyncBailHook<[JavascriptGenerator, EmptyGeneratorOptions], void>
|
|
11600
|
+
> &
|
|
11601
|
+
Record<
|
|
11602
|
+
"json",
|
|
11603
|
+
SyncBailHook<[JsonGenerator, JsonGeneratorOptions], void>
|
|
11604
|
+
> &
|
|
11605
|
+
Record<
|
|
11606
|
+
"asset",
|
|
11607
|
+
SyncBailHook<[AssetGenerator, AssetGeneratorOptions], void>
|
|
11608
|
+
> &
|
|
11609
|
+
Record<
|
|
11610
|
+
"asset/inline",
|
|
11611
|
+
SyncBailHook<[AssetGenerator, AssetGeneratorOptions], void>
|
|
11612
|
+
> &
|
|
11613
|
+
Record<
|
|
11614
|
+
"asset/resource",
|
|
11615
|
+
SyncBailHook<[AssetGenerator, AssetGeneratorOptions], void>
|
|
11616
|
+
> &
|
|
11617
|
+
Record<
|
|
11618
|
+
"asset/source",
|
|
11619
|
+
SyncBailHook<[AssetSourceGenerator, EmptyGeneratorOptions], void>
|
|
11620
|
+
> &
|
|
11621
|
+
Record<
|
|
11622
|
+
"asset/bytes",
|
|
11623
|
+
SyncBailHook<[AssetBytesGenerator, EmptyGeneratorOptions], void>
|
|
11624
|
+
> &
|
|
11625
|
+
Record<
|
|
11626
|
+
"webassembly/async",
|
|
11627
|
+
SyncBailHook<[Generator, EmptyParserOptions], void>
|
|
11628
|
+
> &
|
|
11629
|
+
Record<
|
|
11630
|
+
"webassembly/sync",
|
|
11631
|
+
SyncBailHook<[Generator, EmptyParserOptions], void>
|
|
11632
|
+
> &
|
|
11633
|
+
Record<"css", SyncBailHook<[CssGenerator, CssGeneratorOptions], void>> &
|
|
11634
|
+
Record<
|
|
11635
|
+
"css/auto",
|
|
11636
|
+
SyncBailHook<[CssGenerator, CssAutoGeneratorOptions], void>
|
|
11637
|
+
> &
|
|
11638
|
+
Record<
|
|
11639
|
+
"css/module",
|
|
11640
|
+
SyncBailHook<[CssGenerator, CssModuleGeneratorOptions], void>
|
|
11641
|
+
> &
|
|
11642
|
+
Record<
|
|
11643
|
+
"css/global",
|
|
11644
|
+
SyncBailHook<[CssGenerator, CssGlobalGeneratorOptions], void>
|
|
11645
|
+
> &
|
|
11646
|
+
Record<string, SyncBailHook<[Generator, GeneratorOptions], void>>
|
|
11295
11647
|
>;
|
|
11296
|
-
generator: HookMap<SyncBailHook<[any, GeneratorOptions], void>>;
|
|
11297
11648
|
createModuleClass: HookMap<
|
|
11298
11649
|
SyncBailHook<
|
|
11299
11650
|
[
|
|
@@ -11390,7 +11741,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
|
|
|
11390
11741
|
mode: "none" | "development" | "production";
|
|
11391
11742
|
webpack?: boolean;
|
|
11392
11743
|
hashFunction: HashFunction;
|
|
11393
|
-
hashDigest:
|
|
11744
|
+
hashDigest: HashDigest;
|
|
11394
11745
|
hashDigestLength: number;
|
|
11395
11746
|
hashSalt?: string;
|
|
11396
11747
|
_module?: NormalModule;
|
|
@@ -11476,18 +11827,18 @@ declare interface ObjectDeserializerContext {
|
|
|
11476
11827
|
declare interface ObjectEncodingOptions {
|
|
11477
11828
|
encoding?:
|
|
11478
11829
|
| null
|
|
11479
|
-
| "
|
|
11830
|
+
| "base64"
|
|
11831
|
+
| "base64url"
|
|
11832
|
+
| "hex"
|
|
11833
|
+
| "binary"
|
|
11480
11834
|
| "utf8"
|
|
11481
11835
|
| "utf-8"
|
|
11482
11836
|
| "utf16le"
|
|
11483
11837
|
| "utf-16le"
|
|
11484
|
-
| "ucs2"
|
|
11485
|
-
| "ucs-2"
|
|
11486
|
-
| "base64"
|
|
11487
|
-
| "base64url"
|
|
11488
11838
|
| "latin1"
|
|
11489
|
-
| "
|
|
11490
|
-
| "
|
|
11839
|
+
| "ascii"
|
|
11840
|
+
| "ucs2"
|
|
11841
|
+
| "ucs-2";
|
|
11491
11842
|
}
|
|
11492
11843
|
declare interface ObjectSerializer {
|
|
11493
11844
|
serialize: (value: any, context: ObjectSerializerContext) => void;
|
|
@@ -12391,9 +12742,21 @@ declare interface Output {
|
|
|
12391
12742
|
globalObject?: string;
|
|
12392
12743
|
|
|
12393
12744
|
/**
|
|
12394
|
-
* Digest
|
|
12745
|
+
* Digest types used for the hash.
|
|
12395
12746
|
*/
|
|
12396
|
-
hashDigest?:
|
|
12747
|
+
hashDigest?:
|
|
12748
|
+
| "base64"
|
|
12749
|
+
| "base64url"
|
|
12750
|
+
| "hex"
|
|
12751
|
+
| "binary"
|
|
12752
|
+
| "utf8"
|
|
12753
|
+
| "utf-8"
|
|
12754
|
+
| "utf16le"
|
|
12755
|
+
| "utf-16le"
|
|
12756
|
+
| "latin1"
|
|
12757
|
+
| "ascii"
|
|
12758
|
+
| "ucs2"
|
|
12759
|
+
| "ucs-2";
|
|
12397
12760
|
|
|
12398
12761
|
/**
|
|
12399
12762
|
* Number of chars which are used for the hash.
|
|
@@ -12560,18 +12923,18 @@ declare interface OutputFileSystem {
|
|
|
12560
12923
|
createReadStream?: (
|
|
12561
12924
|
path: PathLikeFs,
|
|
12562
12925
|
options?:
|
|
12563
|
-
| "
|
|
12926
|
+
| "base64"
|
|
12927
|
+
| "base64url"
|
|
12928
|
+
| "hex"
|
|
12929
|
+
| "binary"
|
|
12564
12930
|
| "utf8"
|
|
12565
12931
|
| "utf-8"
|
|
12566
12932
|
| "utf16le"
|
|
12567
12933
|
| "utf-16le"
|
|
12934
|
+
| "latin1"
|
|
12935
|
+
| "ascii"
|
|
12568
12936
|
| "ucs2"
|
|
12569
12937
|
| "ucs-2"
|
|
12570
|
-
| "base64"
|
|
12571
|
-
| "base64url"
|
|
12572
|
-
| "latin1"
|
|
12573
|
-
| "binary"
|
|
12574
|
-
| "hex"
|
|
12575
12938
|
| ReadStreamOptions
|
|
12576
12939
|
) => NodeJS.ReadableStream;
|
|
12577
12940
|
join?: (path1: string, path2: string) => string;
|
|
@@ -12706,9 +13069,21 @@ declare interface OutputNormalized {
|
|
|
12706
13069
|
globalObject?: string;
|
|
12707
13070
|
|
|
12708
13071
|
/**
|
|
12709
|
-
* Digest
|
|
13072
|
+
* Digest types used for the hash.
|
|
12710
13073
|
*/
|
|
12711
|
-
hashDigest?:
|
|
13074
|
+
hashDigest?:
|
|
13075
|
+
| "base64"
|
|
13076
|
+
| "base64url"
|
|
13077
|
+
| "hex"
|
|
13078
|
+
| "binary"
|
|
13079
|
+
| "utf8"
|
|
13080
|
+
| "utf-8"
|
|
13081
|
+
| "utf16le"
|
|
13082
|
+
| "utf-16le"
|
|
13083
|
+
| "latin1"
|
|
13084
|
+
| "ascii"
|
|
13085
|
+
| "ucs2"
|
|
13086
|
+
| "ucs-2";
|
|
12712
13087
|
|
|
12713
13088
|
/**
|
|
12714
13089
|
* Number of chars which are used for the hash.
|
|
@@ -12884,7 +13259,21 @@ type OutputNormalizedWithDefaults = OutputNormalized & {
|
|
|
12884
13259
|
path: string;
|
|
12885
13260
|
pathinfo: NonNullable<undefined | boolean | "verbose">;
|
|
12886
13261
|
hashFunction: NonNullable<undefined | string | typeof Hash>;
|
|
12887
|
-
hashDigest:
|
|
13262
|
+
hashDigest: NonNullable<
|
|
13263
|
+
| undefined
|
|
13264
|
+
| "base64"
|
|
13265
|
+
| "base64url"
|
|
13266
|
+
| "hex"
|
|
13267
|
+
| "binary"
|
|
13268
|
+
| "utf8"
|
|
13269
|
+
| "utf-8"
|
|
13270
|
+
| "utf16le"
|
|
13271
|
+
| "utf-16le"
|
|
13272
|
+
| "latin1"
|
|
13273
|
+
| "ascii"
|
|
13274
|
+
| "ucs2"
|
|
13275
|
+
| "ucs-2"
|
|
13276
|
+
>;
|
|
12888
13277
|
hashDigestLength: number;
|
|
12889
13278
|
chunkLoadTimeout: number;
|
|
12890
13279
|
chunkLoading: NonNullable<undefined | string | false>;
|
|
@@ -13166,6 +13555,10 @@ declare interface PnpApi {
|
|
|
13166
13555
|
options: { considerBuiltins: boolean }
|
|
13167
13556
|
) => null | string;
|
|
13168
13557
|
}
|
|
13558
|
+
declare interface Position {
|
|
13559
|
+
line: number;
|
|
13560
|
+
column: number;
|
|
13561
|
+
}
|
|
13169
13562
|
declare class PrefetchPlugin {
|
|
13170
13563
|
constructor(context: string, request?: string);
|
|
13171
13564
|
context: null | string;
|
|
@@ -13572,19 +13965,19 @@ declare interface ReadFileFs {
|
|
|
13572
13965
|
(
|
|
13573
13966
|
path: PathOrFileDescriptorFs,
|
|
13574
13967
|
options:
|
|
13575
|
-
|
|
|
13576
|
-
| "
|
|
13968
|
+
| "base64"
|
|
13969
|
+
| "base64url"
|
|
13970
|
+
| "hex"
|
|
13971
|
+
| "binary"
|
|
13577
13972
|
| "utf8"
|
|
13578
13973
|
| "utf-8"
|
|
13579
13974
|
| "utf16le"
|
|
13580
13975
|
| "utf-16le"
|
|
13976
|
+
| "latin1"
|
|
13977
|
+
| "ascii"
|
|
13581
13978
|
| "ucs2"
|
|
13582
13979
|
| "ucs-2"
|
|
13583
|
-
|
|
|
13584
|
-
| "base64url"
|
|
13585
|
-
| "latin1"
|
|
13586
|
-
| "binary"
|
|
13587
|
-
| "hex",
|
|
13980
|
+
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
|
13588
13981
|
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
13589
13982
|
): void;
|
|
13590
13983
|
(
|
|
@@ -13592,18 +13985,18 @@ declare interface ReadFileFs {
|
|
|
13592
13985
|
options:
|
|
13593
13986
|
| undefined
|
|
13594
13987
|
| null
|
|
13595
|
-
| "
|
|
13988
|
+
| "base64"
|
|
13989
|
+
| "base64url"
|
|
13990
|
+
| "hex"
|
|
13991
|
+
| "binary"
|
|
13596
13992
|
| "utf8"
|
|
13597
13993
|
| "utf-8"
|
|
13598
13994
|
| "utf16le"
|
|
13599
13995
|
| "utf-16le"
|
|
13996
|
+
| "latin1"
|
|
13997
|
+
| "ascii"
|
|
13600
13998
|
| "ucs2"
|
|
13601
13999
|
| "ucs-2"
|
|
13602
|
-
| "base64"
|
|
13603
|
-
| "base64url"
|
|
13604
|
-
| "latin1"
|
|
13605
|
-
| "binary"
|
|
13606
|
-
| "hex"
|
|
13607
14000
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
|
13608
14001
|
callback: (
|
|
13609
14002
|
err: null | NodeJS.ErrnoException,
|
|
@@ -13623,36 +14016,36 @@ declare interface ReadFileSync {
|
|
|
13623
14016
|
(
|
|
13624
14017
|
path: PathOrFileDescriptorFs,
|
|
13625
14018
|
options:
|
|
13626
|
-
| "
|
|
14019
|
+
| "base64"
|
|
14020
|
+
| "base64url"
|
|
14021
|
+
| "hex"
|
|
14022
|
+
| "binary"
|
|
13627
14023
|
| "utf8"
|
|
13628
14024
|
| "utf-8"
|
|
13629
14025
|
| "utf16le"
|
|
13630
14026
|
| "utf-16le"
|
|
14027
|
+
| "latin1"
|
|
14028
|
+
| "ascii"
|
|
13631
14029
|
| "ucs2"
|
|
13632
14030
|
| "ucs-2"
|
|
13633
|
-
| "base64"
|
|
13634
|
-
| "base64url"
|
|
13635
|
-
| "latin1"
|
|
13636
|
-
| "binary"
|
|
13637
|
-
| "hex"
|
|
13638
14031
|
| { encoding: BufferEncoding; flag?: string }
|
|
13639
14032
|
): string;
|
|
13640
14033
|
(
|
|
13641
14034
|
path: PathOrFileDescriptorFs,
|
|
13642
14035
|
options?:
|
|
13643
14036
|
| null
|
|
13644
|
-
| "
|
|
14037
|
+
| "base64"
|
|
14038
|
+
| "base64url"
|
|
14039
|
+
| "hex"
|
|
14040
|
+
| "binary"
|
|
13645
14041
|
| "utf8"
|
|
13646
14042
|
| "utf-8"
|
|
13647
14043
|
| "utf16le"
|
|
13648
14044
|
| "utf-16le"
|
|
14045
|
+
| "latin1"
|
|
14046
|
+
| "ascii"
|
|
13649
14047
|
| "ucs2"
|
|
13650
14048
|
| "ucs-2"
|
|
13651
|
-
| "base64"
|
|
13652
|
-
| "base64url"
|
|
13653
|
-
| "latin1"
|
|
13654
|
-
| "binary"
|
|
13655
|
-
| "hex"
|
|
13656
14049
|
| (ObjectEncodingOptions & { flag?: string })
|
|
13657
14050
|
): string | Buffer;
|
|
13658
14051
|
}
|
|
@@ -13668,18 +14061,18 @@ declare interface ReadFileTypes {
|
|
|
13668
14061
|
(
|
|
13669
14062
|
path: PathOrFileDescriptorTypes,
|
|
13670
14063
|
options:
|
|
13671
|
-
| "
|
|
14064
|
+
| "base64"
|
|
14065
|
+
| "base64url"
|
|
14066
|
+
| "hex"
|
|
14067
|
+
| "binary"
|
|
13672
14068
|
| "utf8"
|
|
13673
14069
|
| "utf-8"
|
|
13674
14070
|
| "utf16le"
|
|
13675
14071
|
| "utf-16le"
|
|
14072
|
+
| "latin1"
|
|
14073
|
+
| "ascii"
|
|
13676
14074
|
| "ucs2"
|
|
13677
14075
|
| "ucs-2"
|
|
13678
|
-
| "base64"
|
|
13679
|
-
| "base64url"
|
|
13680
|
-
| "latin1"
|
|
13681
|
-
| "binary"
|
|
13682
|
-
| "hex"
|
|
13683
14076
|
| ({ encoding: BufferEncoding; flag?: string } & Abortable),
|
|
13684
14077
|
callback: (err: null | NodeJS.ErrnoException, result?: string) => void
|
|
13685
14078
|
): void;
|
|
@@ -13688,18 +14081,18 @@ declare interface ReadFileTypes {
|
|
|
13688
14081
|
options:
|
|
13689
14082
|
| undefined
|
|
13690
14083
|
| null
|
|
13691
|
-
| "
|
|
14084
|
+
| "base64"
|
|
14085
|
+
| "base64url"
|
|
14086
|
+
| "hex"
|
|
14087
|
+
| "binary"
|
|
13692
14088
|
| "utf8"
|
|
13693
14089
|
| "utf-8"
|
|
13694
14090
|
| "utf16le"
|
|
13695
14091
|
| "utf-16le"
|
|
14092
|
+
| "latin1"
|
|
14093
|
+
| "ascii"
|
|
13696
14094
|
| "ucs2"
|
|
13697
14095
|
| "ucs-2"
|
|
13698
|
-
| "base64"
|
|
13699
|
-
| "base64url"
|
|
13700
|
-
| "latin1"
|
|
13701
|
-
| "binary"
|
|
13702
|
-
| "hex"
|
|
13703
14096
|
| (ObjectEncodingOptions & { flag?: string } & Abortable),
|
|
13704
14097
|
callback: (
|
|
13705
14098
|
err: null | NodeJS.ErrnoException,
|
|
@@ -13721,33 +14114,33 @@ declare interface ReaddirFs {
|
|
|
13721
14114
|
options:
|
|
13722
14115
|
| undefined
|
|
13723
14116
|
| null
|
|
13724
|
-
| "
|
|
14117
|
+
| "base64"
|
|
14118
|
+
| "base64url"
|
|
14119
|
+
| "hex"
|
|
14120
|
+
| "binary"
|
|
13725
14121
|
| "utf8"
|
|
13726
14122
|
| "utf-8"
|
|
13727
14123
|
| "utf16le"
|
|
13728
14124
|
| "utf-16le"
|
|
14125
|
+
| "latin1"
|
|
14126
|
+
| "ascii"
|
|
13729
14127
|
| "ucs2"
|
|
13730
14128
|
| "ucs-2"
|
|
13731
|
-
| "base64"
|
|
13732
|
-
| "base64url"
|
|
13733
|
-
| "latin1"
|
|
13734
|
-
| "binary"
|
|
13735
|
-
| "hex"
|
|
13736
14129
|
| {
|
|
13737
14130
|
encoding:
|
|
13738
14131
|
| null
|
|
13739
|
-
| "
|
|
14132
|
+
| "base64"
|
|
14133
|
+
| "base64url"
|
|
14134
|
+
| "hex"
|
|
14135
|
+
| "binary"
|
|
13740
14136
|
| "utf8"
|
|
13741
14137
|
| "utf-8"
|
|
13742
14138
|
| "utf16le"
|
|
13743
14139
|
| "utf-16le"
|
|
13744
|
-
| "ucs2"
|
|
13745
|
-
| "ucs-2"
|
|
13746
|
-
| "base64"
|
|
13747
|
-
| "base64url"
|
|
13748
14140
|
| "latin1"
|
|
13749
|
-
| "
|
|
13750
|
-
| "
|
|
14141
|
+
| "ascii"
|
|
14142
|
+
| "ucs2"
|
|
14143
|
+
| "ucs-2";
|
|
13751
14144
|
withFileTypes?: false;
|
|
13752
14145
|
recursive?: boolean;
|
|
13753
14146
|
},
|
|
@@ -13765,18 +14158,18 @@ declare interface ReaddirFs {
|
|
|
13765
14158
|
options:
|
|
13766
14159
|
| undefined
|
|
13767
14160
|
| null
|
|
13768
|
-
| "
|
|
14161
|
+
| "base64"
|
|
14162
|
+
| "base64url"
|
|
14163
|
+
| "hex"
|
|
14164
|
+
| "binary"
|
|
13769
14165
|
| "utf8"
|
|
13770
14166
|
| "utf-8"
|
|
13771
14167
|
| "utf16le"
|
|
13772
14168
|
| "utf-16le"
|
|
14169
|
+
| "latin1"
|
|
14170
|
+
| "ascii"
|
|
13773
14171
|
| "ucs2"
|
|
13774
14172
|
| "ucs-2"
|
|
13775
|
-
| "base64"
|
|
13776
|
-
| "base64url"
|
|
13777
|
-
| "latin1"
|
|
13778
|
-
| "binary"
|
|
13779
|
-
| "hex"
|
|
13780
14173
|
| (ObjectEncodingOptions & {
|
|
13781
14174
|
withFileTypes?: false;
|
|
13782
14175
|
recursive?: boolean;
|
|
@@ -13815,33 +14208,33 @@ declare interface ReaddirSync {
|
|
|
13815
14208
|
path: PathLikeFs,
|
|
13816
14209
|
options?:
|
|
13817
14210
|
| null
|
|
13818
|
-
| "
|
|
14211
|
+
| "base64"
|
|
14212
|
+
| "base64url"
|
|
14213
|
+
| "hex"
|
|
14214
|
+
| "binary"
|
|
13819
14215
|
| "utf8"
|
|
13820
14216
|
| "utf-8"
|
|
13821
14217
|
| "utf16le"
|
|
13822
14218
|
| "utf-16le"
|
|
14219
|
+
| "latin1"
|
|
14220
|
+
| "ascii"
|
|
13823
14221
|
| "ucs2"
|
|
13824
14222
|
| "ucs-2"
|
|
13825
|
-
| "base64"
|
|
13826
|
-
| "base64url"
|
|
13827
|
-
| "latin1"
|
|
13828
|
-
| "binary"
|
|
13829
|
-
| "hex"
|
|
13830
14223
|
| {
|
|
13831
14224
|
encoding:
|
|
13832
14225
|
| null
|
|
13833
|
-
| "
|
|
14226
|
+
| "base64"
|
|
14227
|
+
| "base64url"
|
|
14228
|
+
| "hex"
|
|
14229
|
+
| "binary"
|
|
13834
14230
|
| "utf8"
|
|
13835
14231
|
| "utf-8"
|
|
13836
14232
|
| "utf16le"
|
|
13837
14233
|
| "utf-16le"
|
|
13838
|
-
| "ucs2"
|
|
13839
|
-
| "ucs-2"
|
|
13840
|
-
| "base64"
|
|
13841
|
-
| "base64url"
|
|
13842
14234
|
| "latin1"
|
|
13843
|
-
| "
|
|
13844
|
-
| "
|
|
14235
|
+
| "ascii"
|
|
14236
|
+
| "ucs2"
|
|
14237
|
+
| "ucs-2";
|
|
13845
14238
|
withFileTypes?: false;
|
|
13846
14239
|
recursive?: boolean;
|
|
13847
14240
|
}
|
|
@@ -13856,18 +14249,18 @@ declare interface ReaddirSync {
|
|
|
13856
14249
|
path: PathLikeFs,
|
|
13857
14250
|
options?:
|
|
13858
14251
|
| null
|
|
13859
|
-
| "
|
|
14252
|
+
| "base64"
|
|
14253
|
+
| "base64url"
|
|
14254
|
+
| "hex"
|
|
14255
|
+
| "binary"
|
|
13860
14256
|
| "utf8"
|
|
13861
14257
|
| "utf-8"
|
|
13862
14258
|
| "utf16le"
|
|
13863
14259
|
| "utf-16le"
|
|
14260
|
+
| "latin1"
|
|
14261
|
+
| "ascii"
|
|
13864
14262
|
| "ucs2"
|
|
13865
14263
|
| "ucs-2"
|
|
13866
|
-
| "base64"
|
|
13867
|
-
| "base64url"
|
|
13868
|
-
| "latin1"
|
|
13869
|
-
| "binary"
|
|
13870
|
-
| "hex"
|
|
13871
14264
|
| (ObjectEncodingOptions & { withFileTypes?: false; recursive?: boolean })
|
|
13872
14265
|
): string[] | Buffer[];
|
|
13873
14266
|
(
|
|
@@ -13888,33 +14281,33 @@ declare interface ReaddirTypes {
|
|
|
13888
14281
|
options:
|
|
13889
14282
|
| undefined
|
|
13890
14283
|
| null
|
|
13891
|
-
| "
|
|
14284
|
+
| "base64"
|
|
14285
|
+
| "base64url"
|
|
14286
|
+
| "hex"
|
|
14287
|
+
| "binary"
|
|
13892
14288
|
| "utf8"
|
|
13893
14289
|
| "utf-8"
|
|
13894
14290
|
| "utf16le"
|
|
13895
14291
|
| "utf-16le"
|
|
14292
|
+
| "latin1"
|
|
14293
|
+
| "ascii"
|
|
13896
14294
|
| "ucs2"
|
|
13897
14295
|
| "ucs-2"
|
|
13898
|
-
| "base64"
|
|
13899
|
-
| "base64url"
|
|
13900
|
-
| "latin1"
|
|
13901
|
-
| "binary"
|
|
13902
|
-
| "hex"
|
|
13903
14296
|
| {
|
|
13904
14297
|
encoding:
|
|
13905
14298
|
| null
|
|
13906
|
-
| "
|
|
14299
|
+
| "base64"
|
|
14300
|
+
| "base64url"
|
|
14301
|
+
| "hex"
|
|
14302
|
+
| "binary"
|
|
13907
14303
|
| "utf8"
|
|
13908
14304
|
| "utf-8"
|
|
13909
14305
|
| "utf16le"
|
|
13910
14306
|
| "utf-16le"
|
|
13911
|
-
| "ucs2"
|
|
13912
|
-
| "ucs-2"
|
|
13913
|
-
| "base64"
|
|
13914
|
-
| "base64url"
|
|
13915
14307
|
| "latin1"
|
|
13916
|
-
| "
|
|
13917
|
-
| "
|
|
14308
|
+
| "ascii"
|
|
14309
|
+
| "ucs2"
|
|
14310
|
+
| "ucs-2";
|
|
13918
14311
|
withFileTypes?: false;
|
|
13919
14312
|
recursive?: boolean;
|
|
13920
14313
|
},
|
|
@@ -13932,18 +14325,18 @@ declare interface ReaddirTypes {
|
|
|
13932
14325
|
options:
|
|
13933
14326
|
| undefined
|
|
13934
14327
|
| null
|
|
13935
|
-
| "
|
|
14328
|
+
| "base64"
|
|
14329
|
+
| "base64url"
|
|
14330
|
+
| "hex"
|
|
14331
|
+
| "binary"
|
|
13936
14332
|
| "utf8"
|
|
13937
14333
|
| "utf-8"
|
|
13938
14334
|
| "utf16le"
|
|
13939
14335
|
| "utf-16le"
|
|
14336
|
+
| "latin1"
|
|
14337
|
+
| "ascii"
|
|
13940
14338
|
| "ucs2"
|
|
13941
14339
|
| "ucs-2"
|
|
13942
|
-
| "base64"
|
|
13943
|
-
| "base64url"
|
|
13944
|
-
| "latin1"
|
|
13945
|
-
| "binary"
|
|
13946
|
-
| "hex"
|
|
13947
14340
|
| (ObjectEncodingOptions & {
|
|
13948
14341
|
withFileTypes?: false;
|
|
13949
14342
|
recursive?: boolean;
|
|
@@ -14045,12 +14438,12 @@ declare interface RealContentHashPluginOptions {
|
|
|
14045
14438
|
/**
|
|
14046
14439
|
* the hash function to use
|
|
14047
14440
|
*/
|
|
14048
|
-
hashFunction:
|
|
14441
|
+
hashFunction: HashFunction;
|
|
14049
14442
|
|
|
14050
14443
|
/**
|
|
14051
14444
|
* the hash digest to use
|
|
14052
14445
|
*/
|
|
14053
|
-
hashDigest
|
|
14446
|
+
hashDigest: HashDigest;
|
|
14054
14447
|
}
|
|
14055
14448
|
declare interface RealDependencyLocation {
|
|
14056
14449
|
start: SourcePosition;
|
|
@@ -17440,18 +17833,18 @@ declare interface StreamChunksOptions {
|
|
|
17440
17833
|
declare interface StreamOptions {
|
|
17441
17834
|
flags?: string;
|
|
17442
17835
|
encoding?:
|
|
17443
|
-
| "
|
|
17836
|
+
| "base64"
|
|
17837
|
+
| "base64url"
|
|
17838
|
+
| "hex"
|
|
17839
|
+
| "binary"
|
|
17444
17840
|
| "utf8"
|
|
17445
17841
|
| "utf-8"
|
|
17446
17842
|
| "utf16le"
|
|
17447
17843
|
| "utf-16le"
|
|
17448
|
-
| "ucs2"
|
|
17449
|
-
| "ucs-2"
|
|
17450
|
-
| "base64"
|
|
17451
|
-
| "base64url"
|
|
17452
17844
|
| "latin1"
|
|
17453
|
-
| "
|
|
17454
|
-
| "
|
|
17845
|
+
| "ascii"
|
|
17846
|
+
| "ucs2"
|
|
17847
|
+
| "ucs-2";
|
|
17455
17848
|
fd?: any;
|
|
17456
17849
|
mode?: number;
|
|
17457
17850
|
autoClose?: boolean;
|
|
@@ -17815,6 +18208,7 @@ declare abstract class WeakTupleMap<K extends any[], V> {
|
|
|
17815
18208
|
delete(...args: K): void;
|
|
17816
18209
|
clear(): void;
|
|
17817
18210
|
}
|
|
18211
|
+
declare abstract class WebAssemblyParser extends ParserClass {}
|
|
17818
18212
|
declare interface WebAssemblyRenderContext {
|
|
17819
18213
|
/**
|
|
17820
18214
|
* the chunk
|
|
@@ -18239,18 +18633,18 @@ declare interface WriteFile {
|
|
|
18239
18633
|
}
|
|
18240
18634
|
type WriteFileOptions =
|
|
18241
18635
|
| null
|
|
18242
|
-
| "
|
|
18636
|
+
| "base64"
|
|
18637
|
+
| "base64url"
|
|
18638
|
+
| "hex"
|
|
18639
|
+
| "binary"
|
|
18243
18640
|
| "utf8"
|
|
18244
18641
|
| "utf-8"
|
|
18245
18642
|
| "utf16le"
|
|
18246
18643
|
| "utf-16le"
|
|
18644
|
+
| "latin1"
|
|
18645
|
+
| "ascii"
|
|
18247
18646
|
| "ucs2"
|
|
18248
18647
|
| "ucs-2"
|
|
18249
|
-
| "base64"
|
|
18250
|
-
| "base64url"
|
|
18251
|
-
| "latin1"
|
|
18252
|
-
| "binary"
|
|
18253
|
-
| "hex"
|
|
18254
18648
|
| (ObjectEncodingOptions &
|
|
18255
18649
|
Abortable & { mode?: string | number; flag?: string; flush?: boolean });
|
|
18256
18650
|
declare interface WriteOnlySet<T> {
|