@rspack/core 1.2.0-alpha.0 → 1.2.0-beta.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 +0 -9
- package/dist/Module.d.ts +5 -8
- package/dist/builtin-plugin/css-extract/index.d.ts +1 -0
- package/dist/config/types.d.ts +1 -1
- package/dist/config/zod.d.ts +71 -71
- package/dist/index.js +212 -263
- package/package.json +4 -3
package/dist/config/zod.d.ts
CHANGED
|
@@ -89,6 +89,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
89
89
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
90
90
|
}, "strict", z.ZodTypeAny, {
|
|
91
91
|
import: string | string[];
|
|
92
|
+
layer?: string | null | undefined;
|
|
92
93
|
runtime?: string | false | undefined;
|
|
93
94
|
chunkLoading?: string | false | undefined;
|
|
94
95
|
asyncChunks?: boolean | undefined;
|
|
@@ -112,11 +113,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
112
113
|
export?: string | string[] | undefined;
|
|
113
114
|
umdNamedDefine?: boolean | undefined;
|
|
114
115
|
} | undefined;
|
|
115
|
-
layer?: string | null | undefined;
|
|
116
116
|
wasmLoading?: string | false | undefined;
|
|
117
117
|
dependOn?: string | string[] | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
import: string | string[];
|
|
120
|
+
layer?: string | null | undefined;
|
|
120
121
|
runtime?: string | false | undefined;
|
|
121
122
|
chunkLoading?: string | false | undefined;
|
|
122
123
|
asyncChunks?: boolean | undefined;
|
|
@@ -140,7 +141,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
140
141
|
export?: string | string[] | undefined;
|
|
141
142
|
umdNamedDefine?: boolean | undefined;
|
|
142
143
|
} | undefined;
|
|
143
|
-
layer?: string | null | undefined;
|
|
144
144
|
wasmLoading?: string | false | undefined;
|
|
145
145
|
dependOn?: string | string[] | undefined;
|
|
146
146
|
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
@@ -223,6 +223,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
223
223
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
224
224
|
}, "strict", z.ZodTypeAny, {
|
|
225
225
|
import: string | string[];
|
|
226
|
+
layer?: string | null | undefined;
|
|
226
227
|
runtime?: string | false | undefined;
|
|
227
228
|
chunkLoading?: string | false | undefined;
|
|
228
229
|
asyncChunks?: boolean | undefined;
|
|
@@ -246,11 +247,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
246
247
|
export?: string | string[] | undefined;
|
|
247
248
|
umdNamedDefine?: boolean | undefined;
|
|
248
249
|
} | undefined;
|
|
249
|
-
layer?: string | null | undefined;
|
|
250
250
|
wasmLoading?: string | false | undefined;
|
|
251
251
|
dependOn?: string | string[] | undefined;
|
|
252
252
|
}, {
|
|
253
253
|
import: string | string[];
|
|
254
|
+
layer?: string | null | undefined;
|
|
254
255
|
runtime?: string | false | undefined;
|
|
255
256
|
chunkLoading?: string | false | undefined;
|
|
256
257
|
asyncChunks?: boolean | undefined;
|
|
@@ -274,7 +275,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
274
275
|
export?: string | string[] | undefined;
|
|
275
276
|
umdNamedDefine?: boolean | undefined;
|
|
276
277
|
} | undefined;
|
|
277
|
-
layer?: string | null | undefined;
|
|
278
278
|
wasmLoading?: string | false | undefined;
|
|
279
279
|
dependOn?: string | string[] | undefined;
|
|
280
280
|
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>, z.ZodPromise<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
|
@@ -357,6 +357,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
357
357
|
layer: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
|
|
358
358
|
}, "strict", z.ZodTypeAny, {
|
|
359
359
|
import: string | string[];
|
|
360
|
+
layer?: string | null | undefined;
|
|
360
361
|
runtime?: string | false | undefined;
|
|
361
362
|
chunkLoading?: string | false | undefined;
|
|
362
363
|
asyncChunks?: boolean | undefined;
|
|
@@ -380,11 +381,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
380
381
|
export?: string | string[] | undefined;
|
|
381
382
|
umdNamedDefine?: boolean | undefined;
|
|
382
383
|
} | undefined;
|
|
383
|
-
layer?: string | null | undefined;
|
|
384
384
|
wasmLoading?: string | false | undefined;
|
|
385
385
|
dependOn?: string | string[] | undefined;
|
|
386
386
|
}, {
|
|
387
387
|
import: string | string[];
|
|
388
|
+
layer?: string | null | undefined;
|
|
388
389
|
runtime?: string | false | undefined;
|
|
389
390
|
chunkLoading?: string | false | undefined;
|
|
390
391
|
asyncChunks?: boolean | undefined;
|
|
@@ -408,7 +409,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
408
409
|
export?: string | string[] | undefined;
|
|
409
410
|
umdNamedDefine?: boolean | undefined;
|
|
410
411
|
} | undefined;
|
|
411
|
-
layer?: string | null | undefined;
|
|
412
412
|
wasmLoading?: string | false | undefined;
|
|
413
413
|
dependOn?: string | string[] | undefined;
|
|
414
414
|
}>]>>, z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>]>>]>>]>>;
|
|
@@ -1195,7 +1195,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1195
1195
|
} | undefined;
|
|
1196
1196
|
} | undefined;
|
|
1197
1197
|
}>>;
|
|
1198
|
-
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>]>>;
|
|
1198
|
+
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodType<Error, z.ZodTypeDef, Error>>, z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>, z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>], z.ZodUnknown>, z.ZodVoid>], z.ZodUnknown>, z.ZodUnknown>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodPromise<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>>]>, z.ZodFunction<z.ZodTuple<[z.ZodType<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>], z.ZodUnknown>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodBoolean]>, z.ZodArray<z.ZodString, "many">]>, ZodRspackCrossChecker<t.ExternalItemUmdValue | t.ExternalItemObjectValue>]>>]>]>>;
|
|
1199
1199
|
externalsType: z.ZodOptional<z.ZodEnum<["var", "module", "assign", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system", "promise", "import", "module-import", "script", "node-commonjs", "commonjs-import"]>>;
|
|
1200
1200
|
externalsPresets: z.ZodOptional<z.ZodObject<{
|
|
1201
1201
|
node: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1363,14 +1363,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1363
1363
|
errorsSpace: z.ZodOptional<z.ZodNumber>;
|
|
1364
1364
|
warningsSpace: z.ZodOptional<z.ZodNumber>;
|
|
1365
1365
|
}, "strict", z.ZodTypeAny, {
|
|
1366
|
+
modules?: boolean | undefined;
|
|
1367
|
+
chunks?: boolean | undefined;
|
|
1368
|
+
ids?: boolean | undefined;
|
|
1369
|
+
runtime?: boolean | undefined;
|
|
1370
|
+
hash?: boolean | undefined;
|
|
1366
1371
|
all?: boolean | undefined;
|
|
1367
1372
|
version?: boolean | undefined;
|
|
1368
|
-
runtime?: boolean | undefined;
|
|
1369
1373
|
publicPath?: boolean | undefined;
|
|
1370
1374
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1371
1375
|
assets?: boolean | undefined;
|
|
1372
|
-
chunks?: boolean | undefined;
|
|
1373
|
-
modules?: boolean | undefined;
|
|
1374
1376
|
entrypoints?: boolean | "auto" | undefined;
|
|
1375
1377
|
chunkGroups?: boolean | undefined;
|
|
1376
1378
|
warnings?: boolean | undefined;
|
|
@@ -1378,12 +1380,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1378
1380
|
errors?: boolean | undefined;
|
|
1379
1381
|
errorsCount?: boolean | undefined;
|
|
1380
1382
|
colors?: boolean | undefined;
|
|
1381
|
-
hash?: boolean | undefined;
|
|
1382
1383
|
reasons?: boolean | undefined;
|
|
1383
1384
|
outputPath?: boolean | undefined;
|
|
1384
1385
|
chunkModules?: boolean | undefined;
|
|
1385
1386
|
chunkRelations?: boolean | undefined;
|
|
1386
|
-
ids?: boolean | undefined;
|
|
1387
1387
|
timings?: boolean | undefined;
|
|
1388
1388
|
builtAt?: boolean | undefined;
|
|
1389
1389
|
moduleAssets?: boolean | undefined;
|
|
@@ -1440,14 +1440,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1440
1440
|
errorsSpace?: number | undefined;
|
|
1441
1441
|
warningsSpace?: number | undefined;
|
|
1442
1442
|
}, {
|
|
1443
|
+
modules?: boolean | undefined;
|
|
1444
|
+
chunks?: boolean | undefined;
|
|
1445
|
+
ids?: boolean | undefined;
|
|
1446
|
+
runtime?: boolean | undefined;
|
|
1447
|
+
hash?: boolean | undefined;
|
|
1443
1448
|
all?: boolean | undefined;
|
|
1444
1449
|
version?: boolean | undefined;
|
|
1445
|
-
runtime?: boolean | undefined;
|
|
1446
1450
|
publicPath?: boolean | undefined;
|
|
1447
1451
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
1448
1452
|
assets?: boolean | undefined;
|
|
1449
|
-
chunks?: boolean | undefined;
|
|
1450
|
-
modules?: boolean | undefined;
|
|
1451
1453
|
entrypoints?: boolean | "auto" | undefined;
|
|
1452
1454
|
chunkGroups?: boolean | undefined;
|
|
1453
1455
|
warnings?: boolean | undefined;
|
|
@@ -1455,12 +1457,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1455
1457
|
errors?: boolean | undefined;
|
|
1456
1458
|
errorsCount?: boolean | undefined;
|
|
1457
1459
|
colors?: boolean | undefined;
|
|
1458
|
-
hash?: boolean | undefined;
|
|
1459
1460
|
reasons?: boolean | undefined;
|
|
1460
1461
|
outputPath?: boolean | undefined;
|
|
1461
1462
|
chunkModules?: boolean | undefined;
|
|
1462
1463
|
chunkRelations?: boolean | undefined;
|
|
1463
|
-
ids?: boolean | undefined;
|
|
1464
1464
|
timings?: boolean | undefined;
|
|
1465
1465
|
builtAt?: boolean | undefined;
|
|
1466
1466
|
moduleAssets?: boolean | undefined;
|
|
@@ -1558,10 +1558,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1558
1558
|
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
1559
1559
|
idHint: z.ZodOptional<z.ZodString>;
|
|
1560
1560
|
}, "strict", z.ZodTypeAny, {
|
|
1561
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1562
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1563
1561
|
type?: string | RegExp | undefined;
|
|
1564
1562
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1563
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1564
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1565
1565
|
usedExports?: boolean | undefined;
|
|
1566
1566
|
defaultSizeTypes?: string[] | undefined;
|
|
1567
1567
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1578,10 +1578,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1578
1578
|
reuseExistingChunk?: boolean | undefined;
|
|
1579
1579
|
idHint?: string | undefined;
|
|
1580
1580
|
}, {
|
|
1581
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1582
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1583
1581
|
type?: string | RegExp | undefined;
|
|
1584
1582
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1583
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1584
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1585
1585
|
usedExports?: boolean | undefined;
|
|
1586
1586
|
defaultSizeTypes?: string[] | undefined;
|
|
1587
1587
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1622,15 +1622,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1622
1622
|
}>>;
|
|
1623
1623
|
hidePathInfo: z.ZodOptional<z.ZodBoolean>;
|
|
1624
1624
|
}, "strict", z.ZodTypeAny, {
|
|
1625
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1626
1625
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1626
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1627
1627
|
usedExports?: boolean | undefined;
|
|
1628
1628
|
defaultSizeTypes?: string[] | undefined;
|
|
1629
1629
|
cacheGroups?: Record<string, false | {
|
|
1630
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1631
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1632
1630
|
type?: string | RegExp | undefined;
|
|
1633
1631
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1632
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1633
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1634
1634
|
usedExports?: boolean | undefined;
|
|
1635
1635
|
defaultSizeTypes?: string[] | undefined;
|
|
1636
1636
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1665,15 +1665,15 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1665
1665
|
maxInitialRequests?: number | undefined;
|
|
1666
1666
|
automaticNameDelimiter?: string | undefined;
|
|
1667
1667
|
}, {
|
|
1668
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1669
1668
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1669
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1670
1670
|
usedExports?: boolean | undefined;
|
|
1671
1671
|
defaultSizeTypes?: string[] | undefined;
|
|
1672
1672
|
cacheGroups?: Record<string, false | {
|
|
1673
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1674
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1675
1673
|
type?: string | RegExp | undefined;
|
|
1676
1674
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1675
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1676
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1677
1677
|
usedExports?: boolean | undefined;
|
|
1678
1678
|
defaultSizeTypes?: string[] | undefined;
|
|
1679
1679
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1742,20 +1742,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1742
1742
|
providedExports?: boolean | undefined;
|
|
1743
1743
|
sideEffects?: boolean | "flag" | undefined;
|
|
1744
1744
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1745
|
-
chunkIds?: "
|
|
1745
|
+
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
1746
1746
|
minimize?: boolean | undefined;
|
|
1747
1747
|
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1748
1748
|
mergeDuplicateChunks?: boolean | undefined;
|
|
1749
1749
|
splitChunks?: false | {
|
|
1750
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1751
1750
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1751
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1752
1752
|
usedExports?: boolean | undefined;
|
|
1753
1753
|
defaultSizeTypes?: string[] | undefined;
|
|
1754
1754
|
cacheGroups?: Record<string, false | {
|
|
1755
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1756
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1757
1755
|
type?: string | RegExp | undefined;
|
|
1758
1756
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1757
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1758
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1759
1759
|
usedExports?: boolean | undefined;
|
|
1760
1760
|
defaultSizeTypes?: string[] | undefined;
|
|
1761
1761
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1800,7 +1800,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1800
1800
|
realContentHash?: boolean | undefined;
|
|
1801
1801
|
concatenateModules?: boolean | undefined;
|
|
1802
1802
|
innerGraph?: boolean | undefined;
|
|
1803
|
-
mangleExports?: boolean | "
|
|
1803
|
+
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
1804
1804
|
nodeEnv?: string | false | undefined;
|
|
1805
1805
|
emitOnErrors?: boolean | undefined;
|
|
1806
1806
|
avoidEntryIife?: boolean | undefined;
|
|
@@ -1809,20 +1809,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1809
1809
|
providedExports?: boolean | undefined;
|
|
1810
1810
|
sideEffects?: boolean | "flag" | undefined;
|
|
1811
1811
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
1812
|
-
chunkIds?: "
|
|
1812
|
+
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
1813
1813
|
minimize?: boolean | undefined;
|
|
1814
1814
|
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
1815
1815
|
mergeDuplicateChunks?: boolean | undefined;
|
|
1816
1816
|
splitChunks?: false | {
|
|
1817
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1818
1817
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1818
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1819
1819
|
usedExports?: boolean | undefined;
|
|
1820
1820
|
defaultSizeTypes?: string[] | undefined;
|
|
1821
1821
|
cacheGroups?: Record<string, false | {
|
|
1822
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1823
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1824
1822
|
type?: string | RegExp | undefined;
|
|
1825
1823
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
1824
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
1825
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
1826
1826
|
usedExports?: boolean | undefined;
|
|
1827
1827
|
defaultSizeTypes?: string[] | undefined;
|
|
1828
1828
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -1867,7 +1867,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
1867
1867
|
realContentHash?: boolean | undefined;
|
|
1868
1868
|
concatenateModules?: boolean | undefined;
|
|
1869
1869
|
innerGraph?: boolean | undefined;
|
|
1870
|
-
mangleExports?: boolean | "
|
|
1870
|
+
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
1871
1871
|
nodeEnv?: string | false | undefined;
|
|
1872
1872
|
emitOnErrors?: boolean | undefined;
|
|
1873
1873
|
avoidEntryIife?: boolean | undefined;
|
|
@@ -2906,6 +2906,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
2906
2906
|
maxEntrypointSize?: number | undefined;
|
|
2907
2907
|
}>, z.ZodLiteral<false>]>>;
|
|
2908
2908
|
}, "strict", z.ZodTypeAny, {
|
|
2909
|
+
dependencies?: string[] | undefined;
|
|
2910
|
+
context?: string | undefined;
|
|
2911
|
+
name?: string | undefined;
|
|
2909
2912
|
module?: {
|
|
2910
2913
|
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
2911
2914
|
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
@@ -3055,7 +3058,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3055
3058
|
} | undefined;
|
|
3056
3059
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
3057
3060
|
} | undefined;
|
|
3058
|
-
name?: string | undefined;
|
|
3059
3061
|
profile?: boolean | undefined;
|
|
3060
3062
|
cache?: boolean | undefined;
|
|
3061
3063
|
amd?: false | Record<string, any> | undefined;
|
|
@@ -3070,7 +3072,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3070
3072
|
hints?: false | "error" | "warning" | undefined;
|
|
3071
3073
|
maxEntrypointSize?: number | undefined;
|
|
3072
3074
|
} | undefined;
|
|
3073
|
-
context?: string | undefined;
|
|
3074
3075
|
mode?: "development" | "production" | "none" | undefined;
|
|
3075
3076
|
experiments?: {
|
|
3076
3077
|
css?: boolean | undefined;
|
|
@@ -3142,14 +3143,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3142
3143
|
devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
|
|
3143
3144
|
resolve?: t.ResolveOptions | undefined;
|
|
3144
3145
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3146
|
+
modules?: boolean | undefined;
|
|
3147
|
+
chunks?: boolean | undefined;
|
|
3148
|
+
ids?: boolean | undefined;
|
|
3149
|
+
runtime?: boolean | undefined;
|
|
3150
|
+
hash?: boolean | undefined;
|
|
3145
3151
|
all?: boolean | undefined;
|
|
3146
3152
|
version?: boolean | undefined;
|
|
3147
|
-
runtime?: boolean | undefined;
|
|
3148
3153
|
publicPath?: boolean | undefined;
|
|
3149
3154
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3150
3155
|
assets?: boolean | undefined;
|
|
3151
|
-
chunks?: boolean | undefined;
|
|
3152
|
-
modules?: boolean | undefined;
|
|
3153
3156
|
entrypoints?: boolean | "auto" | undefined;
|
|
3154
3157
|
chunkGroups?: boolean | undefined;
|
|
3155
3158
|
warnings?: boolean | undefined;
|
|
@@ -3157,12 +3160,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3157
3160
|
errors?: boolean | undefined;
|
|
3158
3161
|
errorsCount?: boolean | undefined;
|
|
3159
3162
|
colors?: boolean | undefined;
|
|
3160
|
-
hash?: boolean | undefined;
|
|
3161
3163
|
reasons?: boolean | undefined;
|
|
3162
3164
|
outputPath?: boolean | undefined;
|
|
3163
3165
|
chunkModules?: boolean | undefined;
|
|
3164
3166
|
chunkRelations?: boolean | undefined;
|
|
3165
|
-
ids?: boolean | undefined;
|
|
3166
3167
|
timings?: boolean | undefined;
|
|
3167
3168
|
builtAt?: boolean | undefined;
|
|
3168
3169
|
moduleAssets?: boolean | undefined;
|
|
@@ -3220,10 +3221,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3220
3221
|
warningsSpace?: number | undefined;
|
|
3221
3222
|
} | undefined;
|
|
3222
3223
|
loader?: Record<string, any> | undefined;
|
|
3223
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
3224
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
3224
3225
|
target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
|
|
3225
3226
|
entry?: string | string[] | Record<string, string | string[] | {
|
|
3226
3227
|
import: string | string[];
|
|
3228
|
+
layer?: string | null | undefined;
|
|
3227
3229
|
runtime?: string | false | undefined;
|
|
3228
3230
|
chunkLoading?: string | false | undefined;
|
|
3229
3231
|
asyncChunks?: boolean | undefined;
|
|
@@ -3247,11 +3249,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3247
3249
|
export?: string | string[] | undefined;
|
|
3248
3250
|
umdNamedDefine?: boolean | undefined;
|
|
3249
3251
|
} | undefined;
|
|
3250
|
-
layer?: string | null | undefined;
|
|
3251
3252
|
wasmLoading?: string | false | undefined;
|
|
3252
3253
|
dependOn?: string | string[] | undefined;
|
|
3253
3254
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
3254
3255
|
import: string | string[];
|
|
3256
|
+
layer?: string | null | undefined;
|
|
3255
3257
|
runtime?: string | false | undefined;
|
|
3256
3258
|
chunkLoading?: string | false | undefined;
|
|
3257
3259
|
asyncChunks?: boolean | undefined;
|
|
@@ -3275,11 +3277,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3275
3277
|
export?: string | string[] | undefined;
|
|
3276
3278
|
umdNamedDefine?: boolean | undefined;
|
|
3277
3279
|
} | undefined;
|
|
3278
|
-
layer?: string | null | undefined;
|
|
3279
3280
|
wasmLoading?: string | false | undefined;
|
|
3280
3281
|
dependOn?: string | string[] | undefined;
|
|
3281
3282
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
|
3282
3283
|
import: string | string[];
|
|
3284
|
+
layer?: string | null | undefined;
|
|
3283
3285
|
runtime?: string | false | undefined;
|
|
3284
3286
|
chunkLoading?: string | false | undefined;
|
|
3285
3287
|
asyncChunks?: boolean | undefined;
|
|
@@ -3303,11 +3305,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3303
3305
|
export?: string | string[] | undefined;
|
|
3304
3306
|
umdNamedDefine?: boolean | undefined;
|
|
3305
3307
|
} | undefined;
|
|
3306
|
-
layer?: string | null | undefined;
|
|
3307
3308
|
wasmLoading?: string | false | undefined;
|
|
3308
3309
|
dependOn?: string | string[] | undefined;
|
|
3309
3310
|
}>>) | undefined;
|
|
3310
|
-
dependencies?: string[] | undefined;
|
|
3311
3311
|
output?: {
|
|
3312
3312
|
module?: boolean | undefined;
|
|
3313
3313
|
chunkLoading?: string | false | undefined;
|
|
@@ -3434,20 +3434,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3434
3434
|
providedExports?: boolean | undefined;
|
|
3435
3435
|
sideEffects?: boolean | "flag" | undefined;
|
|
3436
3436
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
3437
|
-
chunkIds?: "
|
|
3437
|
+
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
3438
3438
|
minimize?: boolean | undefined;
|
|
3439
3439
|
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
3440
3440
|
mergeDuplicateChunks?: boolean | undefined;
|
|
3441
3441
|
splitChunks?: false | {
|
|
3442
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3443
3442
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3443
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3444
3444
|
usedExports?: boolean | undefined;
|
|
3445
3445
|
defaultSizeTypes?: string[] | undefined;
|
|
3446
3446
|
cacheGroups?: Record<string, false | {
|
|
3447
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3448
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3449
3447
|
type?: string | RegExp | undefined;
|
|
3450
3448
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
3449
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
3450
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
3451
3451
|
usedExports?: boolean | undefined;
|
|
3452
3452
|
defaultSizeTypes?: string[] | undefined;
|
|
3453
3453
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -3492,7 +3492,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3492
3492
|
realContentHash?: boolean | undefined;
|
|
3493
3493
|
concatenateModules?: boolean | undefined;
|
|
3494
3494
|
innerGraph?: boolean | undefined;
|
|
3495
|
-
mangleExports?: boolean | "
|
|
3495
|
+
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
3496
3496
|
nodeEnv?: string | false | undefined;
|
|
3497
3497
|
emitOnErrors?: boolean | undefined;
|
|
3498
3498
|
avoidEntryIife?: boolean | undefined;
|
|
@@ -3510,6 +3510,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3510
3510
|
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
|
3511
3511
|
bail?: boolean | undefined;
|
|
3512
3512
|
}, {
|
|
3513
|
+
dependencies?: string[] | undefined;
|
|
3514
|
+
context?: string | undefined;
|
|
3515
|
+
name?: string | undefined;
|
|
3513
3516
|
module?: {
|
|
3514
3517
|
defaultRules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
3515
3518
|
rules?: (false | "" | 0 | t.RuleSetRule | "..." | null | undefined)[] | undefined;
|
|
@@ -3659,7 +3662,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3659
3662
|
} | undefined;
|
|
3660
3663
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
|
3661
3664
|
} | undefined;
|
|
3662
|
-
name?: string | undefined;
|
|
3663
3665
|
profile?: boolean | undefined;
|
|
3664
3666
|
cache?: boolean | undefined;
|
|
3665
3667
|
amd?: false | Record<string, any> | undefined;
|
|
@@ -3674,7 +3676,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3674
3676
|
hints?: false | "error" | "warning" | undefined;
|
|
3675
3677
|
maxEntrypointSize?: number | undefined;
|
|
3676
3678
|
} | undefined;
|
|
3677
|
-
context?: string | undefined;
|
|
3678
3679
|
mode?: "development" | "production" | "none" | undefined;
|
|
3679
3680
|
experiments?: {
|
|
3680
3681
|
css?: boolean | undefined;
|
|
@@ -3746,14 +3747,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3746
3747
|
devtool?: false | "eval" | "cheap-source-map" | "cheap-module-source-map" | "source-map" | "inline-cheap-source-map" | "inline-cheap-module-source-map" | "inline-source-map" | "inline-nosources-cheap-source-map" | "inline-nosources-cheap-module-source-map" | "inline-nosources-source-map" | "nosources-cheap-source-map" | "nosources-cheap-module-source-map" | "nosources-source-map" | "hidden-nosources-cheap-source-map" | "hidden-nosources-cheap-module-source-map" | "hidden-nosources-source-map" | "hidden-cheap-source-map" | "hidden-cheap-module-source-map" | "hidden-source-map" | "eval-cheap-source-map" | "eval-cheap-module-source-map" | "eval-source-map" | "eval-nosources-cheap-source-map" | "eval-nosources-cheap-module-source-map" | "eval-nosources-source-map" | undefined;
|
|
3747
3748
|
resolve?: t.ResolveOptions | undefined;
|
|
3748
3749
|
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
|
3750
|
+
modules?: boolean | undefined;
|
|
3751
|
+
chunks?: boolean | undefined;
|
|
3752
|
+
ids?: boolean | undefined;
|
|
3753
|
+
runtime?: boolean | undefined;
|
|
3754
|
+
hash?: boolean | undefined;
|
|
3749
3755
|
all?: boolean | undefined;
|
|
3750
3756
|
version?: boolean | undefined;
|
|
3751
|
-
runtime?: boolean | undefined;
|
|
3752
3757
|
publicPath?: boolean | undefined;
|
|
3753
3758
|
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
|
3754
3759
|
assets?: boolean | undefined;
|
|
3755
|
-
chunks?: boolean | undefined;
|
|
3756
|
-
modules?: boolean | undefined;
|
|
3757
3760
|
entrypoints?: boolean | "auto" | undefined;
|
|
3758
3761
|
chunkGroups?: boolean | undefined;
|
|
3759
3762
|
warnings?: boolean | undefined;
|
|
@@ -3761,12 +3764,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3761
3764
|
errors?: boolean | undefined;
|
|
3762
3765
|
errorsCount?: boolean | undefined;
|
|
3763
3766
|
colors?: boolean | undefined;
|
|
3764
|
-
hash?: boolean | undefined;
|
|
3765
3767
|
reasons?: boolean | undefined;
|
|
3766
3768
|
outputPath?: boolean | undefined;
|
|
3767
3769
|
chunkModules?: boolean | undefined;
|
|
3768
3770
|
chunkRelations?: boolean | undefined;
|
|
3769
|
-
ids?: boolean | undefined;
|
|
3770
3771
|
timings?: boolean | undefined;
|
|
3771
3772
|
builtAt?: boolean | undefined;
|
|
3772
3773
|
moduleAssets?: boolean | undefined;
|
|
@@ -3824,10 +3825,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3824
3825
|
warningsSpace?: number | undefined;
|
|
3825
3826
|
} | undefined;
|
|
3826
3827
|
loader?: Record<string, any> | undefined;
|
|
3827
|
-
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>))[] | undefined;
|
|
3828
|
+
externals?: string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue) | (string | RegExp | Record<string, string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue> | ((args_0: t.ExternalItemFunctionData, args_1: (args_0: Error | undefined, args_1: string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue | undefined, args_2: "module" | "jsonp" | "import" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd" | "amd-require" | "umd" | "umd2" | "system" | "promise" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined, ...args: unknown[]) => void, ...args: unknown[]) => unknown) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => Promise<string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue>) | ((args_0: t.ExternalItemFunctionData, ...args: unknown[]) => string | boolean | string[] | t.ExternalItemUmdValue | t.ExternalItemObjectValue))[] | undefined;
|
|
3828
3829
|
target?: false | "async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | `node${number}` | `async-node${number}` | `node${number}.${number}` | `async-node${number}.${number}` | `electron${number}-main` | `electron${number}.${number}-main` | `electron${number}-renderer` | `electron${number}.${number}-renderer` | `electron${number}-preload` | `electron${number}.${number}-preload` | `nwjs${number}` | `nwjs${number}.${number}` | `node-webkit${number}` | `node-webkit${number}.${number}` | `browserslist:${string}` | "web" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
|
|
3829
3830
|
entry?: string | string[] | Record<string, string | string[] | {
|
|
3830
3831
|
import: string | string[];
|
|
3832
|
+
layer?: string | null | undefined;
|
|
3831
3833
|
runtime?: string | false | undefined;
|
|
3832
3834
|
chunkLoading?: string | false | undefined;
|
|
3833
3835
|
asyncChunks?: boolean | undefined;
|
|
@@ -3851,11 +3853,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3851
3853
|
export?: string | string[] | undefined;
|
|
3852
3854
|
umdNamedDefine?: boolean | undefined;
|
|
3853
3855
|
} | undefined;
|
|
3854
|
-
layer?: string | null | undefined;
|
|
3855
3856
|
wasmLoading?: string | false | undefined;
|
|
3856
3857
|
dependOn?: string | string[] | undefined;
|
|
3857
3858
|
}> | ((...args: unknown[]) => string | string[] | Record<string, string | string[] | {
|
|
3858
3859
|
import: string | string[];
|
|
3860
|
+
layer?: string | null | undefined;
|
|
3859
3861
|
runtime?: string | false | undefined;
|
|
3860
3862
|
chunkLoading?: string | false | undefined;
|
|
3861
3863
|
asyncChunks?: boolean | undefined;
|
|
@@ -3879,11 +3881,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3879
3881
|
export?: string | string[] | undefined;
|
|
3880
3882
|
umdNamedDefine?: boolean | undefined;
|
|
3881
3883
|
} | undefined;
|
|
3882
|
-
layer?: string | null | undefined;
|
|
3883
3884
|
wasmLoading?: string | false | undefined;
|
|
3884
3885
|
dependOn?: string | string[] | undefined;
|
|
3885
3886
|
}> | Promise<string | string[] | Record<string, string | string[] | {
|
|
3886
3887
|
import: string | string[];
|
|
3888
|
+
layer?: string | null | undefined;
|
|
3887
3889
|
runtime?: string | false | undefined;
|
|
3888
3890
|
chunkLoading?: string | false | undefined;
|
|
3889
3891
|
asyncChunks?: boolean | undefined;
|
|
@@ -3907,11 +3909,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
3907
3909
|
export?: string | string[] | undefined;
|
|
3908
3910
|
umdNamedDefine?: boolean | undefined;
|
|
3909
3911
|
} | undefined;
|
|
3910
|
-
layer?: string | null | undefined;
|
|
3911
3912
|
wasmLoading?: string | false | undefined;
|
|
3912
3913
|
dependOn?: string | string[] | undefined;
|
|
3913
3914
|
}>>) | undefined;
|
|
3914
|
-
dependencies?: string[] | undefined;
|
|
3915
3915
|
output?: {
|
|
3916
3916
|
module?: boolean | undefined;
|
|
3917
3917
|
chunkLoading?: string | false | undefined;
|
|
@@ -4038,20 +4038,20 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4038
4038
|
providedExports?: boolean | undefined;
|
|
4039
4039
|
sideEffects?: boolean | "flag" | undefined;
|
|
4040
4040
|
moduleIds?: "named" | "natural" | "deterministic" | undefined;
|
|
4041
|
-
chunkIds?: "
|
|
4041
|
+
chunkIds?: "size" | "named" | "natural" | "deterministic" | "total-size" | undefined;
|
|
4042
4042
|
minimize?: boolean | undefined;
|
|
4043
4043
|
minimizer?: (false | "" | 0 | "..." | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
|
4044
4044
|
mergeDuplicateChunks?: boolean | undefined;
|
|
4045
4045
|
splitChunks?: false | {
|
|
4046
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
4047
4046
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4047
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
4048
4048
|
usedExports?: boolean | undefined;
|
|
4049
4049
|
defaultSizeTypes?: string[] | undefined;
|
|
4050
4050
|
cacheGroups?: Record<string, false | {
|
|
4051
|
-
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
4052
|
-
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4053
4051
|
type?: string | RegExp | undefined;
|
|
4054
4052
|
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
|
4053
|
+
name?: string | false | ((args_0: Module | undefined, ...args: unknown[]) => unknown) | undefined;
|
|
4054
|
+
filename?: string | ((args_0: PathData, args_1: JsAssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
|
4055
4055
|
usedExports?: boolean | undefined;
|
|
4056
4056
|
defaultSizeTypes?: string[] | undefined;
|
|
4057
4057
|
maxSize?: number | Record<string, number> | undefined;
|
|
@@ -4096,7 +4096,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
4096
4096
|
realContentHash?: boolean | undefined;
|
|
4097
4097
|
concatenateModules?: boolean | undefined;
|
|
4098
4098
|
innerGraph?: boolean | undefined;
|
|
4099
|
-
mangleExports?: boolean | "
|
|
4099
|
+
mangleExports?: boolean | "size" | "deterministic" | undefined;
|
|
4100
4100
|
nodeEnv?: string | false | undefined;
|
|
4101
4101
|
emitOnErrors?: boolean | undefined;
|
|
4102
4102
|
avoidEntryIife?: boolean | undefined;
|