@rspack/core 0.6.0-canary-d4a223f-20240411060232 → 0.6.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.
- package/dist/Compilation.d.ts +5 -1
- package/dist/Compilation.js +8 -6
- package/dist/builtin-plugin/ExternalsPlugin.d.ts +2 -2
- package/dist/builtin-plugin/HtmlRspackPlugin.d.ts +3 -3
- package/dist/config/adapter.js +1 -2
- package/dist/config/zod.d.ts +74 -74
- package/dist/container/ContainerReferencePlugin.d.ts +1 -1
- package/dist/exports.d.ts +20 -20
- package/dist/stats/DefaultStatsFactoryPlugin.js +0 -1
- package/dist/stats/DefaultStatsPrinterPlugin.js +4 -13
- package/dist/util/comparators.d.ts +1 -1
- package/package.json +4 -4
package/dist/Compilation.d.ts
CHANGED
|
@@ -136,8 +136,12 @@ export declare class Compilation {
|
|
|
136
136
|
* Source: [updateAsset](https://github.com/webpack/webpack/blob/9fcaa243573005d6fdece9a3f8d89a0e8b399613/lib/Compilation.js#L4320)
|
|
137
137
|
*
|
|
138
138
|
* FIXME: *AssetInfo* may be undefined in update fn for webpack impl, but still not implemented in rspack
|
|
139
|
+
*
|
|
140
|
+
* @param {string} file file name
|
|
141
|
+
* @param {Source | function(Source): Source} newSourceOrFunction new asset source or function converting old to new
|
|
142
|
+
* @param {AssetInfo | function(AssetInfo): AssetInfo} assetInfoUpdateOrFunction new asset info or function converting old to new
|
|
139
143
|
*/
|
|
140
|
-
updateAsset(filename: string, newSourceOrFunction: Source | ((source: Source) => Source), assetInfoUpdateOrFunction
|
|
144
|
+
updateAsset(filename: string, newSourceOrFunction: Source | ((source: Source) => Source), assetInfoUpdateOrFunction: AssetInfo | ((assetInfo: AssetInfo) => AssetInfo)): void;
|
|
141
145
|
/**
|
|
142
146
|
* Emit an not existing asset. Trying to emit an asset that already exists will throw an error.
|
|
143
147
|
*
|
package/dist/Compilation.js
CHANGED
|
@@ -269,7 +269,7 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
269
269
|
options.logging = optionOrLocalFallback(options.logging, context.forToString ? "info" : true);
|
|
270
270
|
options.loggingTrace = optionOrLocalFallback(options.loggingTrace, !context.forToString);
|
|
271
271
|
options.loggingDebug = []
|
|
272
|
-
.concat((0, Stats_1.optionsOrFallback)(options.loggingDebug, [])
|
|
272
|
+
.concat((0, Stats_1.optionsOrFallback)(options.loggingDebug, []))
|
|
273
273
|
.map(Stats_1.normalizeFilter);
|
|
274
274
|
options.modulesSpace =
|
|
275
275
|
options.modulesSpace || (context.forToString ? 15 : Infinity);
|
|
@@ -295,6 +295,10 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
295
295
|
* Source: [updateAsset](https://github.com/webpack/webpack/blob/9fcaa243573005d6fdece9a3f8d89a0e8b399613/lib/Compilation.js#L4320)
|
|
296
296
|
*
|
|
297
297
|
* FIXME: *AssetInfo* may be undefined in update fn for webpack impl, but still not implemented in rspack
|
|
298
|
+
*
|
|
299
|
+
* @param {string} file file name
|
|
300
|
+
* @param {Source | function(Source): Source} newSourceOrFunction new asset source or function converting old to new
|
|
301
|
+
* @param {AssetInfo | function(AssetInfo): AssetInfo} assetInfoUpdateOrFunction new asset info or function converting old to new
|
|
298
302
|
*/
|
|
299
303
|
updateAsset(filename, newSourceOrFunction, assetInfoUpdateOrFunction) {
|
|
300
304
|
let compatNewSourceOrFunction;
|
|
@@ -306,11 +310,9 @@ BREAKING CHANGE: Asset processing hooks in Compilation has been merged into a si
|
|
|
306
310
|
else {
|
|
307
311
|
compatNewSourceOrFunction = (0, createSource_1.createRawFromSource)(newSourceOrFunction);
|
|
308
312
|
}
|
|
309
|
-
__classPrivateFieldGet(this, _Compilation_inner, "f").updateAsset(filename, compatNewSourceOrFunction, assetInfoUpdateOrFunction ===
|
|
310
|
-
? assetInfoUpdateOrFunction
|
|
311
|
-
:
|
|
312
|
-
? jsAssetInfo => (0, util_1.toJsAssetInfo)(assetInfoUpdateOrFunction(jsAssetInfo))
|
|
313
|
-
: (0, util_1.toJsAssetInfo)(assetInfoUpdateOrFunction));
|
|
313
|
+
__classPrivateFieldGet(this, _Compilation_inner, "f").updateAsset(filename, compatNewSourceOrFunction, typeof assetInfoUpdateOrFunction === "function"
|
|
314
|
+
? jsAssetInfo => (0, util_1.toJsAssetInfo)(assetInfoUpdateOrFunction(jsAssetInfo))
|
|
315
|
+
: (0, util_1.toJsAssetInfo)(assetInfoUpdateOrFunction));
|
|
314
316
|
}
|
|
315
317
|
/**
|
|
316
318
|
* Emit an not existing asset. Trying to emit an asset that already exists will throw an error.
|
|
@@ -4,7 +4,7 @@ export declare const ExternalsPlugin: {
|
|
|
4
4
|
context?: string | undefined;
|
|
5
5
|
dependencyType?: string | undefined;
|
|
6
6
|
request?: string | undefined;
|
|
7
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
7
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
8
8
|
context?: string | undefined;
|
|
9
9
|
dependencyType?: string | undefined;
|
|
10
10
|
request?: string | undefined;
|
|
@@ -12,7 +12,7 @@ export declare const ExternalsPlugin: {
|
|
|
12
12
|
context?: string | undefined;
|
|
13
13
|
dependencyType?: string | undefined;
|
|
14
14
|
request?: string | undefined;
|
|
15
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
15
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
16
16
|
context?: string | undefined;
|
|
17
17
|
dependencyType?: string | undefined;
|
|
18
18
|
request?: string | undefined;
|
|
@@ -22,7 +22,7 @@ declare const htmlRspackPluginOptions: z.ZodObject<{
|
|
|
22
22
|
templateParameters?: Record<string, string> | undefined;
|
|
23
23
|
inject?: boolean | "head" | "body" | undefined;
|
|
24
24
|
publicPath?: string | undefined;
|
|
25
|
-
scriptLoading?: "
|
|
25
|
+
scriptLoading?: "blocking" | "defer" | "module" | undefined;
|
|
26
26
|
chunks?: string[] | undefined;
|
|
27
27
|
excludedChunks?: string[] | undefined;
|
|
28
28
|
sri?: "sha256" | "sha384" | "sha512" | undefined;
|
|
@@ -37,7 +37,7 @@ declare const htmlRspackPluginOptions: z.ZodObject<{
|
|
|
37
37
|
templateParameters?: Record<string, string> | undefined;
|
|
38
38
|
inject?: boolean | "head" | "body" | undefined;
|
|
39
39
|
publicPath?: string | undefined;
|
|
40
|
-
scriptLoading?: "
|
|
40
|
+
scriptLoading?: "blocking" | "defer" | "module" | undefined;
|
|
41
41
|
chunks?: string[] | undefined;
|
|
42
42
|
excludedChunks?: string[] | undefined;
|
|
43
43
|
sri?: "sha256" | "sha384" | "sha512" | undefined;
|
|
@@ -55,7 +55,7 @@ export declare const HtmlRspackPlugin: {
|
|
|
55
55
|
templateParameters?: Record<string, string> | undefined;
|
|
56
56
|
inject?: boolean | "head" | "body" | undefined;
|
|
57
57
|
publicPath?: string | undefined;
|
|
58
|
-
scriptLoading?: "
|
|
58
|
+
scriptLoading?: "blocking" | "defer" | "module" | undefined;
|
|
59
59
|
chunks?: string[] | undefined;
|
|
60
60
|
excludedChunks?: string[] | undefined;
|
|
61
61
|
sri?: "sha256" | "sha384" | "sha512" | undefined;
|
package/dist/config/adapter.js
CHANGED
|
@@ -336,8 +336,7 @@ const getRawModuleRule = (rule, path, options) => {
|
|
|
336
336
|
if (rule.resourceQuery && !tryMatch(query, rule.resourceQuery)) {
|
|
337
337
|
return false;
|
|
338
338
|
}
|
|
339
|
-
if (rule.resourceFragment &&
|
|
340
|
-
!tryMatch(fragment, rule.resourceFragment)) {
|
|
339
|
+
if (rule.resourceFragment && !tryMatch(fragment, rule.resourceFragment)) {
|
|
341
340
|
return false;
|
|
342
341
|
}
|
|
343
342
|
return true;
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -3185,7 +3185,7 @@ declare const statsOptions: z.ZodObject<{
|
|
|
3185
3185
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
3186
3186
|
}, "strict", z.ZodTypeAny, {
|
|
3187
3187
|
all?: boolean | undefined;
|
|
3188
|
-
preset?: "
|
|
3188
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
3189
3189
|
assets?: boolean | undefined;
|
|
3190
3190
|
chunks?: boolean | undefined;
|
|
3191
3191
|
modules?: boolean | undefined;
|
|
@@ -3221,7 +3221,7 @@ declare const statsOptions: z.ZodObject<{
|
|
|
3221
3221
|
orphanModules?: boolean | undefined;
|
|
3222
3222
|
}, {
|
|
3223
3223
|
all?: boolean | undefined;
|
|
3224
|
-
preset?: "
|
|
3224
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
3225
3225
|
assets?: boolean | undefined;
|
|
3226
3226
|
chunks?: boolean | undefined;
|
|
3227
3227
|
modules?: boolean | undefined;
|
|
@@ -3295,7 +3295,7 @@ declare const statsValue: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["none", "errors-onl
|
|
|
3295
3295
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
3296
3296
|
}, "strict", z.ZodTypeAny, {
|
|
3297
3297
|
all?: boolean | undefined;
|
|
3298
|
-
preset?: "
|
|
3298
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
3299
3299
|
assets?: boolean | undefined;
|
|
3300
3300
|
chunks?: boolean | undefined;
|
|
3301
3301
|
modules?: boolean | undefined;
|
|
@@ -3331,7 +3331,7 @@ declare const statsValue: z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["none", "errors-onl
|
|
|
3331
3331
|
orphanModules?: boolean | undefined;
|
|
3332
3332
|
}, {
|
|
3333
3333
|
all?: boolean | undefined;
|
|
3334
|
-
preset?: "
|
|
3334
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
3335
3335
|
assets?: boolean | undefined;
|
|
3336
3336
|
chunks?: boolean | undefined;
|
|
3337
3337
|
modules?: boolean | undefined;
|
|
@@ -3402,7 +3402,7 @@ declare const optimizationSplitChunksCacheGroup: z.ZodObject<{
|
|
|
3402
3402
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
3403
3403
|
idHint: z.ZodOptional<z.ZodString>;
|
|
3404
3404
|
}, "strict", z.ZodTypeAny, {
|
|
3405
|
-
chunks?: RegExp | "async" | "
|
|
3405
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3406
3406
|
defaultSizeTypes?: string[] | undefined;
|
|
3407
3407
|
minChunks?: number | undefined;
|
|
3408
3408
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3419,7 +3419,7 @@ declare const optimizationSplitChunksCacheGroup: z.ZodObject<{
|
|
|
3419
3419
|
type?: string | RegExp | undefined;
|
|
3420
3420
|
idHint?: string | undefined;
|
|
3421
3421
|
}, {
|
|
3422
|
-
chunks?: RegExp | "async" | "
|
|
3422
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3423
3423
|
defaultSizeTypes?: string[] | undefined;
|
|
3424
3424
|
minChunks?: number | undefined;
|
|
3425
3425
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3465,7 +3465,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3465
3465
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
3466
3466
|
idHint: z.ZodOptional<z.ZodString>;
|
|
3467
3467
|
}, "strict", z.ZodTypeAny, {
|
|
3468
|
-
chunks?: RegExp | "async" | "
|
|
3468
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3469
3469
|
defaultSizeTypes?: string[] | undefined;
|
|
3470
3470
|
minChunks?: number | undefined;
|
|
3471
3471
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3482,7 +3482,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3482
3482
|
type?: string | RegExp | undefined;
|
|
3483
3483
|
idHint?: string | undefined;
|
|
3484
3484
|
}, {
|
|
3485
|
-
chunks?: RegExp | "async" | "
|
|
3485
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3486
3486
|
defaultSizeTypes?: string[] | undefined;
|
|
3487
3487
|
minChunks?: number | undefined;
|
|
3488
3488
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3509,14 +3509,14 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3509
3509
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
|
3510
3510
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
|
3511
3511
|
}, "strict", z.ZodTypeAny, {
|
|
3512
|
-
chunks?: RegExp | "async" | "
|
|
3512
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3513
3513
|
minSize?: number | undefined;
|
|
3514
3514
|
maxSize?: number | undefined;
|
|
3515
3515
|
maxAsyncSize?: number | undefined;
|
|
3516
3516
|
maxInitialSize?: number | undefined;
|
|
3517
3517
|
automaticNameDelimiter?: string | undefined;
|
|
3518
3518
|
}, {
|
|
3519
|
-
chunks?: RegExp | "async" | "
|
|
3519
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3520
3520
|
minSize?: number | undefined;
|
|
3521
3521
|
maxSize?: number | undefined;
|
|
3522
3522
|
maxAsyncSize?: number | undefined;
|
|
@@ -3525,7 +3525,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3525
3525
|
}>>;
|
|
3526
3526
|
hidePathInfo: z.ZodOptional<z.ZodBoolean>;
|
|
3527
3527
|
}, "strict", z.ZodTypeAny, {
|
|
3528
|
-
chunks?: RegExp | "async" | "
|
|
3528
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3529
3529
|
defaultSizeTypes?: string[] | undefined;
|
|
3530
3530
|
minChunks?: number | undefined;
|
|
3531
3531
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3535,7 +3535,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3535
3535
|
maxInitialSize?: number | undefined;
|
|
3536
3536
|
automaticNameDelimiter?: string | undefined;
|
|
3537
3537
|
cacheGroups?: Record<string, false | {
|
|
3538
|
-
chunks?: RegExp | "async" | "
|
|
3538
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3539
3539
|
defaultSizeTypes?: string[] | undefined;
|
|
3540
3540
|
minChunks?: number | undefined;
|
|
3541
3541
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3555,7 +3555,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3555
3555
|
maxAsyncRequests?: number | undefined;
|
|
3556
3556
|
maxInitialRequests?: number | undefined;
|
|
3557
3557
|
fallbackCacheGroup?: {
|
|
3558
|
-
chunks?: RegExp | "async" | "
|
|
3558
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3559
3559
|
minSize?: number | undefined;
|
|
3560
3560
|
maxSize?: number | undefined;
|
|
3561
3561
|
maxAsyncSize?: number | undefined;
|
|
@@ -3564,7 +3564,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3564
3564
|
} | undefined;
|
|
3565
3565
|
hidePathInfo?: boolean | undefined;
|
|
3566
3566
|
}, {
|
|
3567
|
-
chunks?: RegExp | "async" | "
|
|
3567
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3568
3568
|
defaultSizeTypes?: string[] | undefined;
|
|
3569
3569
|
minChunks?: number | undefined;
|
|
3570
3570
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3574,7 +3574,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3574
3574
|
maxInitialSize?: number | undefined;
|
|
3575
3575
|
automaticNameDelimiter?: string | undefined;
|
|
3576
3576
|
cacheGroups?: Record<string, false | {
|
|
3577
|
-
chunks?: RegExp | "async" | "
|
|
3577
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3578
3578
|
defaultSizeTypes?: string[] | undefined;
|
|
3579
3579
|
minChunks?: number | undefined;
|
|
3580
3580
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3594,7 +3594,7 @@ declare const optimizationSplitChunksOptions: z.ZodObject<{
|
|
|
3594
3594
|
maxAsyncRequests?: number | undefined;
|
|
3595
3595
|
maxInitialRequests?: number | undefined;
|
|
3596
3596
|
fallbackCacheGroup?: {
|
|
3597
|
-
chunks?: RegExp | "async" | "
|
|
3597
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3598
3598
|
minSize?: number | undefined;
|
|
3599
3599
|
maxSize?: number | undefined;
|
|
3600
3600
|
maxAsyncSize?: number | undefined;
|
|
@@ -3638,7 +3638,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3638
3638
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
3639
3639
|
idHint: z.ZodOptional<z.ZodString>;
|
|
3640
3640
|
}, "strict", z.ZodTypeAny, {
|
|
3641
|
-
chunks?: RegExp | "async" | "
|
|
3641
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3642
3642
|
defaultSizeTypes?: string[] | undefined;
|
|
3643
3643
|
minChunks?: number | undefined;
|
|
3644
3644
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3655,7 +3655,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3655
3655
|
type?: string | RegExp | undefined;
|
|
3656
3656
|
idHint?: string | undefined;
|
|
3657
3657
|
}, {
|
|
3658
|
-
chunks?: RegExp | "async" | "
|
|
3658
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3659
3659
|
defaultSizeTypes?: string[] | undefined;
|
|
3660
3660
|
minChunks?: number | undefined;
|
|
3661
3661
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3682,14 +3682,14 @@ declare const optimization: z.ZodObject<{
|
|
|
3682
3682
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
|
3683
3683
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
|
3684
3684
|
}, "strict", z.ZodTypeAny, {
|
|
3685
|
-
chunks?: RegExp | "async" | "
|
|
3685
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3686
3686
|
minSize?: number | undefined;
|
|
3687
3687
|
maxSize?: number | undefined;
|
|
3688
3688
|
maxAsyncSize?: number | undefined;
|
|
3689
3689
|
maxInitialSize?: number | undefined;
|
|
3690
3690
|
automaticNameDelimiter?: string | undefined;
|
|
3691
3691
|
}, {
|
|
3692
|
-
chunks?: RegExp | "async" | "
|
|
3692
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3693
3693
|
minSize?: number | undefined;
|
|
3694
3694
|
maxSize?: number | undefined;
|
|
3695
3695
|
maxAsyncSize?: number | undefined;
|
|
@@ -3698,7 +3698,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3698
3698
|
}>>;
|
|
3699
3699
|
hidePathInfo: z.ZodOptional<z.ZodBoolean>;
|
|
3700
3700
|
}, "strict", z.ZodTypeAny, {
|
|
3701
|
-
chunks?: RegExp | "async" | "
|
|
3701
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3702
3702
|
defaultSizeTypes?: string[] | undefined;
|
|
3703
3703
|
minChunks?: number | undefined;
|
|
3704
3704
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3708,7 +3708,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3708
3708
|
maxInitialSize?: number | undefined;
|
|
3709
3709
|
automaticNameDelimiter?: string | undefined;
|
|
3710
3710
|
cacheGroups?: Record<string, false | {
|
|
3711
|
-
chunks?: RegExp | "async" | "
|
|
3711
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3712
3712
|
defaultSizeTypes?: string[] | undefined;
|
|
3713
3713
|
minChunks?: number | undefined;
|
|
3714
3714
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3728,7 +3728,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3728
3728
|
maxAsyncRequests?: number | undefined;
|
|
3729
3729
|
maxInitialRequests?: number | undefined;
|
|
3730
3730
|
fallbackCacheGroup?: {
|
|
3731
|
-
chunks?: RegExp | "async" | "
|
|
3731
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3732
3732
|
minSize?: number | undefined;
|
|
3733
3733
|
maxSize?: number | undefined;
|
|
3734
3734
|
maxAsyncSize?: number | undefined;
|
|
@@ -3737,7 +3737,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3737
3737
|
} | undefined;
|
|
3738
3738
|
hidePathInfo?: boolean | undefined;
|
|
3739
3739
|
}, {
|
|
3740
|
-
chunks?: RegExp | "async" | "
|
|
3740
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3741
3741
|
defaultSizeTypes?: string[] | undefined;
|
|
3742
3742
|
minChunks?: number | undefined;
|
|
3743
3743
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3747,7 +3747,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3747
3747
|
maxInitialSize?: number | undefined;
|
|
3748
3748
|
automaticNameDelimiter?: string | undefined;
|
|
3749
3749
|
cacheGroups?: Record<string, false | {
|
|
3750
|
-
chunks?: RegExp | "async" | "
|
|
3750
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3751
3751
|
defaultSizeTypes?: string[] | undefined;
|
|
3752
3752
|
minChunks?: number | undefined;
|
|
3753
3753
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3767,7 +3767,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3767
3767
|
maxAsyncRequests?: number | undefined;
|
|
3768
3768
|
maxInitialRequests?: number | undefined;
|
|
3769
3769
|
fallbackCacheGroup?: {
|
|
3770
|
-
chunks?: RegExp | "async" | "
|
|
3770
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3771
3771
|
minSize?: number | undefined;
|
|
3772
3772
|
maxSize?: number | undefined;
|
|
3773
3773
|
maxAsyncSize?: number | undefined;
|
|
@@ -3800,7 +3800,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3800
3800
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
3801
3801
|
mergeDuplicateChunks?: boolean | undefined;
|
|
3802
3802
|
splitChunks?: false | {
|
|
3803
|
-
chunks?: RegExp | "async" | "
|
|
3803
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3804
3804
|
defaultSizeTypes?: string[] | undefined;
|
|
3805
3805
|
minChunks?: number | undefined;
|
|
3806
3806
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3810,7 +3810,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3810
3810
|
maxInitialSize?: number | undefined;
|
|
3811
3811
|
automaticNameDelimiter?: string | undefined;
|
|
3812
3812
|
cacheGroups?: Record<string, false | {
|
|
3813
|
-
chunks?: RegExp | "async" | "
|
|
3813
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3814
3814
|
defaultSizeTypes?: string[] | undefined;
|
|
3815
3815
|
minChunks?: number | undefined;
|
|
3816
3816
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3830,7 +3830,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3830
3830
|
maxAsyncRequests?: number | undefined;
|
|
3831
3831
|
maxInitialRequests?: number | undefined;
|
|
3832
3832
|
fallbackCacheGroup?: {
|
|
3833
|
-
chunks?: RegExp | "async" | "
|
|
3833
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3834
3834
|
minSize?: number | undefined;
|
|
3835
3835
|
maxSize?: number | undefined;
|
|
3836
3836
|
maxAsyncSize?: number | undefined;
|
|
@@ -3839,7 +3839,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3839
3839
|
} | undefined;
|
|
3840
3840
|
hidePathInfo?: boolean | undefined;
|
|
3841
3841
|
} | undefined;
|
|
3842
|
-
runtimeChunk?: boolean | "
|
|
3842
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
3843
3843
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
3844
3844
|
} | undefined;
|
|
3845
3845
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -3859,7 +3859,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3859
3859
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
3860
3860
|
mergeDuplicateChunks?: boolean | undefined;
|
|
3861
3861
|
splitChunks?: false | {
|
|
3862
|
-
chunks?: RegExp | "async" | "
|
|
3862
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3863
3863
|
defaultSizeTypes?: string[] | undefined;
|
|
3864
3864
|
minChunks?: number | undefined;
|
|
3865
3865
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3869,7 +3869,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3869
3869
|
maxInitialSize?: number | undefined;
|
|
3870
3870
|
automaticNameDelimiter?: string | undefined;
|
|
3871
3871
|
cacheGroups?: Record<string, false | {
|
|
3872
|
-
chunks?: RegExp | "async" | "
|
|
3872
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3873
3873
|
defaultSizeTypes?: string[] | undefined;
|
|
3874
3874
|
minChunks?: number | undefined;
|
|
3875
3875
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -3889,7 +3889,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3889
3889
|
maxAsyncRequests?: number | undefined;
|
|
3890
3890
|
maxInitialRequests?: number | undefined;
|
|
3891
3891
|
fallbackCacheGroup?: {
|
|
3892
|
-
chunks?: RegExp | "async" | "
|
|
3892
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
3893
3893
|
minSize?: number | undefined;
|
|
3894
3894
|
maxSize?: number | undefined;
|
|
3895
3895
|
maxAsyncSize?: number | undefined;
|
|
@@ -3898,7 +3898,7 @@ declare const optimization: z.ZodObject<{
|
|
|
3898
3898
|
} | undefined;
|
|
3899
3899
|
hidePathInfo?: boolean | undefined;
|
|
3900
3900
|
} | undefined;
|
|
3901
|
-
runtimeChunk?: boolean | "
|
|
3901
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
3902
3902
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
3903
3903
|
} | undefined;
|
|
3904
3904
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -4838,7 +4838,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4838
4838
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
4839
4839
|
}, "strict", z.ZodTypeAny, {
|
|
4840
4840
|
all?: boolean | undefined;
|
|
4841
|
-
preset?: "
|
|
4841
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
4842
4842
|
assets?: boolean | undefined;
|
|
4843
4843
|
chunks?: boolean | undefined;
|
|
4844
4844
|
modules?: boolean | undefined;
|
|
@@ -4874,7 +4874,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4874
4874
|
orphanModules?: boolean | undefined;
|
|
4875
4875
|
}, {
|
|
4876
4876
|
all?: boolean | undefined;
|
|
4877
|
-
preset?: "
|
|
4877
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
4878
4878
|
assets?: boolean | undefined;
|
|
4879
4879
|
chunks?: boolean | undefined;
|
|
4880
4880
|
modules?: boolean | undefined;
|
|
@@ -4983,7 +4983,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4983
4983
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
4984
4984
|
idHint: z.ZodOptional<z.ZodString>;
|
|
4985
4985
|
}, "strict", z.ZodTypeAny, {
|
|
4986
|
-
chunks?: RegExp | "async" | "
|
|
4986
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
4987
4987
|
defaultSizeTypes?: string[] | undefined;
|
|
4988
4988
|
minChunks?: number | undefined;
|
|
4989
4989
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5000,7 +5000,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5000
5000
|
type?: string | RegExp | undefined;
|
|
5001
5001
|
idHint?: string | undefined;
|
|
5002
5002
|
}, {
|
|
5003
|
-
chunks?: RegExp | "async" | "
|
|
5003
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5004
5004
|
defaultSizeTypes?: string[] | undefined;
|
|
5005
5005
|
minChunks?: number | undefined;
|
|
5006
5006
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5027,14 +5027,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5027
5027
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
|
5028
5028
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
|
5029
5029
|
}, "strict", z.ZodTypeAny, {
|
|
5030
|
-
chunks?: RegExp | "async" | "
|
|
5030
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5031
5031
|
minSize?: number | undefined;
|
|
5032
5032
|
maxSize?: number | undefined;
|
|
5033
5033
|
maxAsyncSize?: number | undefined;
|
|
5034
5034
|
maxInitialSize?: number | undefined;
|
|
5035
5035
|
automaticNameDelimiter?: string | undefined;
|
|
5036
5036
|
}, {
|
|
5037
|
-
chunks?: RegExp | "async" | "
|
|
5037
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5038
5038
|
minSize?: number | undefined;
|
|
5039
5039
|
maxSize?: number | undefined;
|
|
5040
5040
|
maxAsyncSize?: number | undefined;
|
|
@@ -5043,7 +5043,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5043
5043
|
}>>;
|
|
5044
5044
|
hidePathInfo: z.ZodOptional<z.ZodBoolean>;
|
|
5045
5045
|
}, "strict", z.ZodTypeAny, {
|
|
5046
|
-
chunks?: RegExp | "async" | "
|
|
5046
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5047
5047
|
defaultSizeTypes?: string[] | undefined;
|
|
5048
5048
|
minChunks?: number | undefined;
|
|
5049
5049
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5053,7 +5053,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5053
5053
|
maxInitialSize?: number | undefined;
|
|
5054
5054
|
automaticNameDelimiter?: string | undefined;
|
|
5055
5055
|
cacheGroups?: Record<string, false | {
|
|
5056
|
-
chunks?: RegExp | "async" | "
|
|
5056
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5057
5057
|
defaultSizeTypes?: string[] | undefined;
|
|
5058
5058
|
minChunks?: number | undefined;
|
|
5059
5059
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5073,7 +5073,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5073
5073
|
maxAsyncRequests?: number | undefined;
|
|
5074
5074
|
maxInitialRequests?: number | undefined;
|
|
5075
5075
|
fallbackCacheGroup?: {
|
|
5076
|
-
chunks?: RegExp | "async" | "
|
|
5076
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5077
5077
|
minSize?: number | undefined;
|
|
5078
5078
|
maxSize?: number | undefined;
|
|
5079
5079
|
maxAsyncSize?: number | undefined;
|
|
@@ -5082,7 +5082,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5082
5082
|
} | undefined;
|
|
5083
5083
|
hidePathInfo?: boolean | undefined;
|
|
5084
5084
|
}, {
|
|
5085
|
-
chunks?: RegExp | "async" | "
|
|
5085
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5086
5086
|
defaultSizeTypes?: string[] | undefined;
|
|
5087
5087
|
minChunks?: number | undefined;
|
|
5088
5088
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5092,7 +5092,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5092
5092
|
maxInitialSize?: number | undefined;
|
|
5093
5093
|
automaticNameDelimiter?: string | undefined;
|
|
5094
5094
|
cacheGroups?: Record<string, false | {
|
|
5095
|
-
chunks?: RegExp | "async" | "
|
|
5095
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5096
5096
|
defaultSizeTypes?: string[] | undefined;
|
|
5097
5097
|
minChunks?: number | undefined;
|
|
5098
5098
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5112,7 +5112,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5112
5112
|
maxAsyncRequests?: number | undefined;
|
|
5113
5113
|
maxInitialRequests?: number | undefined;
|
|
5114
5114
|
fallbackCacheGroup?: {
|
|
5115
|
-
chunks?: RegExp | "async" | "
|
|
5115
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5116
5116
|
minSize?: number | undefined;
|
|
5117
5117
|
maxSize?: number | undefined;
|
|
5118
5118
|
maxAsyncSize?: number | undefined;
|
|
@@ -5145,7 +5145,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5145
5145
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
5146
5146
|
mergeDuplicateChunks?: boolean | undefined;
|
|
5147
5147
|
splitChunks?: false | {
|
|
5148
|
-
chunks?: RegExp | "async" | "
|
|
5148
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5149
5149
|
defaultSizeTypes?: string[] | undefined;
|
|
5150
5150
|
minChunks?: number | undefined;
|
|
5151
5151
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5155,7 +5155,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5155
5155
|
maxInitialSize?: number | undefined;
|
|
5156
5156
|
automaticNameDelimiter?: string | undefined;
|
|
5157
5157
|
cacheGroups?: Record<string, false | {
|
|
5158
|
-
chunks?: RegExp | "async" | "
|
|
5158
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5159
5159
|
defaultSizeTypes?: string[] | undefined;
|
|
5160
5160
|
minChunks?: number | undefined;
|
|
5161
5161
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5175,7 +5175,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5175
5175
|
maxAsyncRequests?: number | undefined;
|
|
5176
5176
|
maxInitialRequests?: number | undefined;
|
|
5177
5177
|
fallbackCacheGroup?: {
|
|
5178
|
-
chunks?: RegExp | "async" | "
|
|
5178
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5179
5179
|
minSize?: number | undefined;
|
|
5180
5180
|
maxSize?: number | undefined;
|
|
5181
5181
|
maxAsyncSize?: number | undefined;
|
|
@@ -5184,7 +5184,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5184
5184
|
} | undefined;
|
|
5185
5185
|
hidePathInfo?: boolean | undefined;
|
|
5186
5186
|
} | undefined;
|
|
5187
|
-
runtimeChunk?: boolean | "
|
|
5187
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
5188
5188
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
5189
5189
|
} | undefined;
|
|
5190
5190
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -5204,7 +5204,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5204
5204
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
5205
5205
|
mergeDuplicateChunks?: boolean | undefined;
|
|
5206
5206
|
splitChunks?: false | {
|
|
5207
|
-
chunks?: RegExp | "async" | "
|
|
5207
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5208
5208
|
defaultSizeTypes?: string[] | undefined;
|
|
5209
5209
|
minChunks?: number | undefined;
|
|
5210
5210
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5214,7 +5214,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5214
5214
|
maxInitialSize?: number | undefined;
|
|
5215
5215
|
automaticNameDelimiter?: string | undefined;
|
|
5216
5216
|
cacheGroups?: Record<string, false | {
|
|
5217
|
-
chunks?: RegExp | "async" | "
|
|
5217
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5218
5218
|
defaultSizeTypes?: string[] | undefined;
|
|
5219
5219
|
minChunks?: number | undefined;
|
|
5220
5220
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5234,7 +5234,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5234
5234
|
maxAsyncRequests?: number | undefined;
|
|
5235
5235
|
maxInitialRequests?: number | undefined;
|
|
5236
5236
|
fallbackCacheGroup?: {
|
|
5237
|
-
chunks?: RegExp | "async" | "
|
|
5237
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5238
5238
|
minSize?: number | undefined;
|
|
5239
5239
|
maxSize?: number | undefined;
|
|
5240
5240
|
maxAsyncSize?: number | undefined;
|
|
@@ -5243,7 +5243,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5243
5243
|
} | undefined;
|
|
5244
5244
|
hidePathInfo?: boolean | undefined;
|
|
5245
5245
|
} | undefined;
|
|
5246
|
-
runtimeChunk?: boolean | "
|
|
5246
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
5247
5247
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
5248
5248
|
} | undefined;
|
|
5249
5249
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -5840,7 +5840,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5840
5840
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
5841
5841
|
} | undefined;
|
|
5842
5842
|
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
5843
|
-
mode?: "
|
|
5843
|
+
mode?: "production" | "development" | "none" | undefined;
|
|
5844
5844
|
experiments?: {
|
|
5845
5845
|
lazyCompilation?: boolean | undefined;
|
|
5846
5846
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -5861,7 +5861,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5861
5861
|
context?: string | undefined;
|
|
5862
5862
|
dependencyType?: string | undefined;
|
|
5863
5863
|
request?: string | undefined;
|
|
5864
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
5864
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
5865
5865
|
context?: string | undefined;
|
|
5866
5866
|
dependencyType?: string | undefined;
|
|
5867
5867
|
request?: string | undefined;
|
|
@@ -5869,12 +5869,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5869
5869
|
context?: string | undefined;
|
|
5870
5870
|
dependencyType?: string | undefined;
|
|
5871
5871
|
request?: string | undefined;
|
|
5872
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
5872
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
5873
5873
|
context?: string | undefined;
|
|
5874
5874
|
dependencyType?: string | undefined;
|
|
5875
5875
|
request?: string | undefined;
|
|
5876
5876
|
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
5877
|
-
externalsType?: "promise" | "
|
|
5877
|
+
externalsType?: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined;
|
|
5878
5878
|
externalsPresets?: {
|
|
5879
5879
|
node?: boolean | undefined;
|
|
5880
5880
|
web?: boolean | undefined;
|
|
@@ -5909,9 +5909,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5909
5909
|
stdin?: boolean | undefined;
|
|
5910
5910
|
} | undefined;
|
|
5911
5911
|
watch?: boolean | undefined;
|
|
5912
|
-
stats?: boolean | "
|
|
5912
|
+
stats?: boolean | "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
5913
5913
|
all?: boolean | undefined;
|
|
5914
|
-
preset?: "
|
|
5914
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
5915
5915
|
assets?: boolean | undefined;
|
|
5916
5916
|
chunks?: boolean | undefined;
|
|
5917
5917
|
modules?: boolean | undefined;
|
|
@@ -5963,7 +5963,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5963
5963
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
5964
5964
|
mergeDuplicateChunks?: boolean | undefined;
|
|
5965
5965
|
splitChunks?: false | {
|
|
5966
|
-
chunks?: RegExp | "async" | "
|
|
5966
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5967
5967
|
defaultSizeTypes?: string[] | undefined;
|
|
5968
5968
|
minChunks?: number | undefined;
|
|
5969
5969
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5973,7 +5973,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5973
5973
|
maxInitialSize?: number | undefined;
|
|
5974
5974
|
automaticNameDelimiter?: string | undefined;
|
|
5975
5975
|
cacheGroups?: Record<string, false | {
|
|
5976
|
-
chunks?: RegExp | "async" | "
|
|
5976
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5977
5977
|
defaultSizeTypes?: string[] | undefined;
|
|
5978
5978
|
minChunks?: number | undefined;
|
|
5979
5979
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -5993,7 +5993,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5993
5993
|
maxAsyncRequests?: number | undefined;
|
|
5994
5994
|
maxInitialRequests?: number | undefined;
|
|
5995
5995
|
fallbackCacheGroup?: {
|
|
5996
|
-
chunks?: RegExp | "async" | "
|
|
5996
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
5997
5997
|
minSize?: number | undefined;
|
|
5998
5998
|
maxSize?: number | undefined;
|
|
5999
5999
|
maxAsyncSize?: number | undefined;
|
|
@@ -6002,7 +6002,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6002
6002
|
} | undefined;
|
|
6003
6003
|
hidePathInfo?: boolean | undefined;
|
|
6004
6004
|
} | undefined;
|
|
6005
|
-
runtimeChunk?: boolean | "
|
|
6005
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
6006
6006
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
6007
6007
|
} | undefined;
|
|
6008
6008
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -6225,7 +6225,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6225
6225
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
6226
6226
|
} | undefined;
|
|
6227
6227
|
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
6228
|
-
mode?: "
|
|
6228
|
+
mode?: "production" | "development" | "none" | undefined;
|
|
6229
6229
|
experiments?: {
|
|
6230
6230
|
lazyCompilation?: boolean | undefined;
|
|
6231
6231
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -6246,7 +6246,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6246
6246
|
context?: string | undefined;
|
|
6247
6247
|
dependencyType?: string | undefined;
|
|
6248
6248
|
request?: string | undefined;
|
|
6249
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
6249
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
6250
6250
|
context?: string | undefined;
|
|
6251
6251
|
dependencyType?: string | undefined;
|
|
6252
6252
|
request?: string | undefined;
|
|
@@ -6254,12 +6254,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6254
6254
|
context?: string | undefined;
|
|
6255
6255
|
dependencyType?: string | undefined;
|
|
6256
6256
|
request?: string | undefined;
|
|
6257
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
6257
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
6258
6258
|
context?: string | undefined;
|
|
6259
6259
|
dependencyType?: string | undefined;
|
|
6260
6260
|
request?: string | undefined;
|
|
6261
6261
|
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
6262
|
-
externalsType?: "promise" | "
|
|
6262
|
+
externalsType?: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined;
|
|
6263
6263
|
externalsPresets?: {
|
|
6264
6264
|
node?: boolean | undefined;
|
|
6265
6265
|
web?: boolean | undefined;
|
|
@@ -6294,9 +6294,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6294
6294
|
stdin?: boolean | undefined;
|
|
6295
6295
|
} | undefined;
|
|
6296
6296
|
watch?: boolean | undefined;
|
|
6297
|
-
stats?: boolean | "
|
|
6297
|
+
stats?: boolean | "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
6298
6298
|
all?: boolean | undefined;
|
|
6299
|
-
preset?: "
|
|
6299
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
6300
6300
|
assets?: boolean | undefined;
|
|
6301
6301
|
chunks?: boolean | undefined;
|
|
6302
6302
|
modules?: boolean | undefined;
|
|
@@ -6348,7 +6348,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6348
6348
|
minimizer?: (false | "" | 0 | RspackPluginInstance | "..." | RspackPluginFunction | null | undefined)[] | undefined;
|
|
6349
6349
|
mergeDuplicateChunks?: boolean | undefined;
|
|
6350
6350
|
splitChunks?: false | {
|
|
6351
|
-
chunks?: RegExp | "async" | "
|
|
6351
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
6352
6352
|
defaultSizeTypes?: string[] | undefined;
|
|
6353
6353
|
minChunks?: number | undefined;
|
|
6354
6354
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -6358,7 +6358,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6358
6358
|
maxInitialSize?: number | undefined;
|
|
6359
6359
|
automaticNameDelimiter?: string | undefined;
|
|
6360
6360
|
cacheGroups?: Record<string, false | {
|
|
6361
|
-
chunks?: RegExp | "async" | "
|
|
6361
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
6362
6362
|
defaultSizeTypes?: string[] | undefined;
|
|
6363
6363
|
minChunks?: number | undefined;
|
|
6364
6364
|
name?: string | false | ((args_0: Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -6378,7 +6378,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6378
6378
|
maxAsyncRequests?: number | undefined;
|
|
6379
6379
|
maxInitialRequests?: number | undefined;
|
|
6380
6380
|
fallbackCacheGroup?: {
|
|
6381
|
-
chunks?: RegExp | "async" | "
|
|
6381
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
6382
6382
|
minSize?: number | undefined;
|
|
6383
6383
|
maxSize?: number | undefined;
|
|
6384
6384
|
maxAsyncSize?: number | undefined;
|
|
@@ -6387,7 +6387,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6387
6387
|
} | undefined;
|
|
6388
6388
|
hidePathInfo?: boolean | undefined;
|
|
6389
6389
|
} | undefined;
|
|
6390
|
-
runtimeChunk?: boolean | "
|
|
6390
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
6391
6391
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
6392
6392
|
} | undefined;
|
|
6393
6393
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -21,7 +21,7 @@ export type RemotesConfig = {
|
|
|
21
21
|
export declare class ContainerReferencePlugin extends RspackBuiltinPlugin {
|
|
22
22
|
name: BuiltinPluginName;
|
|
23
23
|
_options: {
|
|
24
|
-
remoteType: "promise" | "
|
|
24
|
+
remoteType: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs";
|
|
25
25
|
remotes: [string, {
|
|
26
26
|
external: string[];
|
|
27
27
|
shareScope: string;
|
package/dist/exports.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ export declare const config: {
|
|
|
157
157
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
158
158
|
} | undefined;
|
|
159
159
|
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
160
|
-
mode?: "
|
|
160
|
+
mode?: "production" | "development" | "none" | undefined;
|
|
161
161
|
experiments?: {
|
|
162
162
|
lazyCompilation?: boolean | undefined;
|
|
163
163
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -178,7 +178,7 @@ export declare const config: {
|
|
|
178
178
|
context?: string | undefined;
|
|
179
179
|
dependencyType?: string | undefined;
|
|
180
180
|
request?: string | undefined;
|
|
181
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
181
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
182
182
|
context?: string | undefined;
|
|
183
183
|
dependencyType?: string | undefined;
|
|
184
184
|
request?: string | undefined;
|
|
@@ -186,12 +186,12 @@ export declare const config: {
|
|
|
186
186
|
context?: string | undefined;
|
|
187
187
|
dependencyType?: string | undefined;
|
|
188
188
|
request?: string | undefined;
|
|
189
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
189
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
190
190
|
context?: string | undefined;
|
|
191
191
|
dependencyType?: string | undefined;
|
|
192
192
|
request?: string | undefined;
|
|
193
193
|
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
194
|
-
externalsType?: "promise" | "
|
|
194
|
+
externalsType?: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined;
|
|
195
195
|
externalsPresets?: {
|
|
196
196
|
node?: boolean | undefined;
|
|
197
197
|
web?: boolean | undefined;
|
|
@@ -226,9 +226,9 @@ export declare const config: {
|
|
|
226
226
|
stdin?: boolean | undefined;
|
|
227
227
|
} | undefined;
|
|
228
228
|
watch?: boolean | undefined;
|
|
229
|
-
stats?: boolean | "
|
|
229
|
+
stats?: boolean | "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
230
230
|
all?: boolean | undefined;
|
|
231
|
-
preset?: "
|
|
231
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
232
232
|
assets?: boolean | undefined;
|
|
233
233
|
chunks?: boolean | undefined;
|
|
234
234
|
modules?: boolean | undefined;
|
|
@@ -280,7 +280,7 @@ export declare const config: {
|
|
|
280
280
|
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
281
281
|
mergeDuplicateChunks?: boolean | undefined;
|
|
282
282
|
splitChunks?: false | {
|
|
283
|
-
chunks?: RegExp | "async" | "
|
|
283
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
284
284
|
defaultSizeTypes?: string[] | undefined;
|
|
285
285
|
minChunks?: number | undefined;
|
|
286
286
|
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -290,7 +290,7 @@ export declare const config: {
|
|
|
290
290
|
maxInitialSize?: number | undefined;
|
|
291
291
|
automaticNameDelimiter?: string | undefined;
|
|
292
292
|
cacheGroups?: Record<string, false | {
|
|
293
|
-
chunks?: RegExp | "async" | "
|
|
293
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
294
294
|
defaultSizeTypes?: string[] | undefined;
|
|
295
295
|
minChunks?: number | undefined;
|
|
296
296
|
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -310,7 +310,7 @@ export declare const config: {
|
|
|
310
310
|
maxAsyncRequests?: number | undefined;
|
|
311
311
|
maxInitialRequests?: number | undefined;
|
|
312
312
|
fallbackCacheGroup?: {
|
|
313
|
-
chunks?: RegExp | "async" | "
|
|
313
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
314
314
|
minSize?: number | undefined;
|
|
315
315
|
maxSize?: number | undefined;
|
|
316
316
|
maxAsyncSize?: number | undefined;
|
|
@@ -319,7 +319,7 @@ export declare const config: {
|
|
|
319
319
|
} | undefined;
|
|
320
320
|
hidePathInfo?: boolean | undefined;
|
|
321
321
|
} | undefined;
|
|
322
|
-
runtimeChunk?: boolean | "
|
|
322
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
323
323
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
324
324
|
} | undefined;
|
|
325
325
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -544,7 +544,7 @@ export declare const config: {
|
|
|
544
544
|
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
|
545
545
|
} | undefined;
|
|
546
546
|
target?: false | "node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("node" | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
547
|
-
mode?: "
|
|
547
|
+
mode?: "production" | "development" | "none" | undefined;
|
|
548
548
|
experiments?: {
|
|
549
549
|
lazyCompilation?: boolean | undefined;
|
|
550
550
|
asyncWebAssembly?: boolean | undefined;
|
|
@@ -565,7 +565,7 @@ export declare const config: {
|
|
|
565
565
|
context?: string | undefined;
|
|
566
566
|
dependencyType?: string | undefined;
|
|
567
567
|
request?: string | undefined;
|
|
568
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
568
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
569
569
|
context?: string | undefined;
|
|
570
570
|
dependencyType?: string | undefined;
|
|
571
571
|
request?: string | undefined;
|
|
@@ -573,12 +573,12 @@ export declare const config: {
|
|
|
573
573
|
context?: string | undefined;
|
|
574
574
|
dependencyType?: string | undefined;
|
|
575
575
|
request?: string | undefined;
|
|
576
|
-
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "promise" | "
|
|
576
|
+
}, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | Record<string, string | string[]> | undefined, args_2: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined, ...args_3: unknown[]) => void, ...args_2: unknown[]) => unknown) | ((args_0: {
|
|
577
577
|
context?: string | undefined;
|
|
578
578
|
dependencyType?: string | undefined;
|
|
579
579
|
request?: string | undefined;
|
|
580
580
|
}, ...args_1: unknown[]) => Promise<string | boolean | string[] | Record<string, string | string[]>>))[] | undefined;
|
|
581
|
-
externalsType?: "promise" | "
|
|
581
|
+
externalsType?: "module" | "promise" | "script" | "commonjs" | "global" | "import" | "amd" | "commonjs2" | "var" | "assign" | "this" | "window" | "self" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "node-commonjs" | undefined;
|
|
582
582
|
externalsPresets?: {
|
|
583
583
|
node?: boolean | undefined;
|
|
584
584
|
web?: boolean | undefined;
|
|
@@ -613,9 +613,9 @@ export declare const config: {
|
|
|
613
613
|
stdin?: boolean | undefined;
|
|
614
614
|
} | undefined;
|
|
615
615
|
watch?: boolean | undefined;
|
|
616
|
-
stats?: boolean | "
|
|
616
|
+
stats?: boolean | "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | {
|
|
617
617
|
all?: boolean | undefined;
|
|
618
|
-
preset?: "
|
|
618
|
+
preset?: "none" | "normal" | "verbose" | "errors-only" | "errors-warnings" | undefined;
|
|
619
619
|
assets?: boolean | undefined;
|
|
620
620
|
chunks?: boolean | undefined;
|
|
621
621
|
modules?: boolean | undefined;
|
|
@@ -667,7 +667,7 @@ export declare const config: {
|
|
|
667
667
|
minimizer?: (false | "" | 0 | import("./config").RspackPluginInstance | "..." | import("./config").RspackPluginFunction | null | undefined)[] | undefined;
|
|
668
668
|
mergeDuplicateChunks?: boolean | undefined;
|
|
669
669
|
splitChunks?: false | {
|
|
670
|
-
chunks?: RegExp | "async" | "
|
|
670
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
671
671
|
defaultSizeTypes?: string[] | undefined;
|
|
672
672
|
minChunks?: number | undefined;
|
|
673
673
|
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -677,7 +677,7 @@ export declare const config: {
|
|
|
677
677
|
maxInitialSize?: number | undefined;
|
|
678
678
|
automaticNameDelimiter?: string | undefined;
|
|
679
679
|
cacheGroups?: Record<string, false | {
|
|
680
|
-
chunks?: RegExp | "async" | "
|
|
680
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
681
681
|
defaultSizeTypes?: string[] | undefined;
|
|
682
682
|
minChunks?: number | undefined;
|
|
683
683
|
name?: string | false | ((args_0: import("./Module").Module | undefined, ...args_1: unknown[]) => unknown) | undefined;
|
|
@@ -697,7 +697,7 @@ export declare const config: {
|
|
|
697
697
|
maxAsyncRequests?: number | undefined;
|
|
698
698
|
maxInitialRequests?: number | undefined;
|
|
699
699
|
fallbackCacheGroup?: {
|
|
700
|
-
chunks?: RegExp | "async" | "
|
|
700
|
+
chunks?: RegExp | "async" | "initial" | "all" | ((args_0: import("./Chunk").Chunk, ...args_1: unknown[]) => boolean) | undefined;
|
|
701
701
|
minSize?: number | undefined;
|
|
702
702
|
maxSize?: number | undefined;
|
|
703
703
|
maxAsyncSize?: number | undefined;
|
|
@@ -706,7 +706,7 @@ export declare const config: {
|
|
|
706
706
|
} | undefined;
|
|
707
707
|
hidePathInfo?: boolean | undefined;
|
|
708
708
|
} | undefined;
|
|
709
|
-
runtimeChunk?: boolean | "
|
|
709
|
+
runtimeChunk?: boolean | "multiple" | "single" | {
|
|
710
710
|
name?: string | ((...args: unknown[]) => string | undefined) | undefined;
|
|
711
711
|
} | undefined;
|
|
712
712
|
removeAvailableModules?: boolean | undefined;
|
|
@@ -679,7 +679,6 @@ const SIMPLE_EXTRACTORS = {
|
|
|
679
679
|
object.names = chunk.names;
|
|
680
680
|
object.files = chunk.files;
|
|
681
681
|
object.auxiliaryFiles = chunk.auxiliaryFiles;
|
|
682
|
-
object.childrenByOrder = chunk.childrenByOrder;
|
|
683
682
|
},
|
|
684
683
|
ids: (object, chunk) => {
|
|
685
684
|
object.id = chunk.id;
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.DefaultStatsPrinterPlugin = void 0;
|
|
13
13
|
const SizeFormatHelpers_1 = require("../util/SizeFormatHelpers");
|
|
14
|
-
const comparators_1 = require("../util/comparators");
|
|
15
14
|
const DATA_URI_CONTENT_LENGTH = 16;
|
|
16
15
|
const plural = (n, singular, plural) => n === 1 ? singular : plural;
|
|
17
16
|
const printSizes = (sizes, { formatSize = (n) => `${n}` }) => {
|
|
@@ -319,20 +318,12 @@ const SIMPLE_PRINTERS = {
|
|
|
319
318
|
"chunk.parents[]": (parents, context) => context.formatChunkId(parents, "parent"),
|
|
320
319
|
"chunk.siblings[]": (siblings, context) => context.formatChunkId(siblings, "sibling"),
|
|
321
320
|
"chunk.children[]": (children, context) => context.formatChunkId(children, "child"),
|
|
322
|
-
"chunk.childrenByOrder": (childrenByOrder, context, printer) =>
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
// need to sort to make it stable for ci
|
|
327
|
-
const items = Object.keys(childrenByOrder).map(key => ({
|
|
321
|
+
"chunk.childrenByOrder": (childrenByOrder, context, printer) => Array.isArray(childrenByOrder)
|
|
322
|
+
? undefined
|
|
323
|
+
: printer.print(context.type, Object.keys(childrenByOrder).map(key => ({
|
|
328
324
|
type: key,
|
|
329
325
|
children: childrenByOrder[key]
|
|
330
|
-
}))
|
|
331
|
-
items.sort((a, b) => (0, comparators_1.compareIds)(a.type, b.type));
|
|
332
|
-
return Array.isArray(childrenByOrder)
|
|
333
|
-
? undefined
|
|
334
|
-
: printer.print(context.type, items, context);
|
|
335
|
-
},
|
|
326
|
+
})), context),
|
|
336
327
|
"chunk.childrenByOrder[].type": type => `${type}:`,
|
|
337
328
|
"chunk.childrenByOrder[].children[]": (id, { formatChunkId }) => isValidId(id) ? formatChunkId(id) : undefined,
|
|
338
329
|
"chunk.entry": (entry, { formatFlag, yellow }) => entry ? yellow(formatFlag("entry")) : undefined,
|
|
@@ -16,5 +16,5 @@ export declare const compareIds: (a: string | number, b: string | number) => -1
|
|
|
16
16
|
export declare const compareChunksById: (a: Chunk, b: Chunk) => -1 | 0 | 1;
|
|
17
17
|
export declare const compareChunkGroupsByIndex: (a: ChunkGroup, b: ChunkGroup) => -1 | 0 | 1;
|
|
18
18
|
export declare const compareSelect: <T, R>(getter: Selector<T, R>, comparator: Comparator) => Comparator;
|
|
19
|
-
export declare const compareNumbers: (a: number, b: number) =>
|
|
19
|
+
export declare const compareNumbers: (a: number, b: number) => 0 | 1 | -1;
|
|
20
20
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"styled-components": "^6.0.8",
|
|
60
60
|
"terser": "5.27.2",
|
|
61
61
|
"wast-loader": "^1.11.4",
|
|
62
|
-
"@rspack/core": "0.6.0
|
|
63
|
-
"@rspack/plugin-minify": "^0.6.0
|
|
62
|
+
"@rspack/core": "0.6.0",
|
|
63
|
+
"@rspack/plugin-minify": "^0.6.0"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@module-federation/runtime-tools": "0.0.8",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"webpack-sources": "3.2.3",
|
|
76
76
|
"zod": "^3.21.4",
|
|
77
77
|
"zod-validation-error": "1.3.1",
|
|
78
|
-
"@rspack/binding": "0.6.0
|
|
78
|
+
"@rspack/binding": "0.6.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@swc/helpers": ">=0.5.1"
|