@rspack/core 1.3.4 → 1.3.6
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/README.md +1 -2
- package/compiled/@swc/types/index.d.ts +11 -2
- package/compiled/@swc/types/package.json +1 -1
- package/compiled/enhanced-resolve/CachedInputFileSystem.d.ts +0 -0
- package/compiled/enhanced-resolve/index.d.ts +3 -2
- package/compiled/zod/index.d.ts +10 -8
- package/compiled/zod/index.js +30 -30
- package/compiled/zod/package.json +1 -1
- package/dist/ChunkGraph.d.ts +1 -0
- package/dist/Chunks.d.ts +13 -0
- package/dist/Compilation.d.ts +4 -7
- package/dist/Module.d.ts +1 -0
- package/dist/NormalModule.d.ts +2 -2
- package/dist/builtin-loader/swc/pluginImport.d.ts +35 -0
- package/dist/builtin-loader/swc/types.d.ts +4434 -2
- package/dist/builtin-plugin/html-plugin/options.d.ts +1 -1
- package/dist/builtin-plugin/lazy-compilation/middleware.d.ts +1 -1
- package/dist/config/devServer.d.ts +207 -0
- package/dist/config/types.d.ts +12 -5
- package/dist/config/utils.d.ts +3 -3
- package/dist/config/zod.d.ts +711 -695
- package/dist/cssExtractHmr.js +112 -211
- package/dist/cssExtractLoader.js +129 -246
- package/dist/exports.d.ts +1 -1
- package/dist/index.js +13061 -21111
- package/dist/loader-runner/service.d.ts +1 -1
- package/dist/loader-runner/utils.d.ts +1 -0
- package/dist/loader-runner/worker.d.ts +1 -1
- package/dist/trace/index.d.ts +35 -0
- package/dist/util/hash/BatchedHash.d.ts +2 -6
- package/dist/util/hash/index.d.ts +15 -6
- package/dist/util/validate.d.ts +4 -1
- package/dist/worker.js +909 -1874
- package/package.json +12 -24
package/dist/config/zod.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { AssetInfo } from "@rspack/binding";
|
2
|
-
import
|
2
|
+
import z from "../../compiled/zod";
|
3
3
|
import { Chunk } from "../Chunk";
|
4
4
|
import { ChunkGraph } from "../ChunkGraph";
|
5
5
|
import type { Compilation, PathData } from "../Compilation";
|
@@ -15,12 +15,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
15
15
|
entry: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>, z.ZodObject<{
|
16
16
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
17
17
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
18
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
18
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
19
19
|
baseUri: z.ZodOptional<z.ZodString>;
|
20
20
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>;
|
21
21
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
22
22
|
wasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>;
|
23
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
23
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
24
24
|
library: z.ZodOptional<z.ZodObject<{
|
25
25
|
amdContainer: z.ZodOptional<z.ZodString>;
|
26
26
|
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -30,13 +30,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
30
30
|
root: z.ZodOptional<z.ZodString>;
|
31
31
|
}, "strict", z.ZodTypeAny, {
|
32
32
|
commonjs?: string | undefined;
|
33
|
-
commonjs2?: string | undefined;
|
34
33
|
amd?: string | undefined;
|
34
|
+
commonjs2?: string | undefined;
|
35
35
|
root?: string | undefined;
|
36
36
|
}, {
|
37
37
|
commonjs?: string | undefined;
|
38
|
-
commonjs2?: string | undefined;
|
39
38
|
amd?: string | undefined;
|
39
|
+
commonjs2?: string | undefined;
|
40
40
|
root?: string | undefined;
|
41
41
|
}>]>>;
|
42
42
|
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -65,8 +65,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
65
65
|
amdContainer?: string | undefined;
|
66
66
|
auxiliaryComment?: string | {
|
67
67
|
commonjs?: string | undefined;
|
68
|
-
commonjs2?: string | undefined;
|
69
68
|
amd?: string | undefined;
|
69
|
+
commonjs2?: string | undefined;
|
70
70
|
root?: string | undefined;
|
71
71
|
} | undefined;
|
72
72
|
export?: string | string[] | undefined;
|
@@ -81,8 +81,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
81
81
|
amdContainer?: string | undefined;
|
82
82
|
auxiliaryComment?: string | {
|
83
83
|
commonjs?: string | undefined;
|
84
|
-
commonjs2?: string | undefined;
|
85
84
|
amd?: string | undefined;
|
85
|
+
commonjs2?: string | undefined;
|
86
86
|
root?: string | undefined;
|
87
87
|
} | undefined;
|
88
88
|
export?: string | string[] | undefined;
|
@@ -109,8 +109,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
109
109
|
amdContainer?: string | undefined;
|
110
110
|
auxiliaryComment?: string | {
|
111
111
|
commonjs?: string | undefined;
|
112
|
-
commonjs2?: string | undefined;
|
113
112
|
amd?: string | undefined;
|
113
|
+
commonjs2?: string | undefined;
|
114
114
|
root?: string | undefined;
|
115
115
|
} | undefined;
|
116
116
|
export?: string | string[] | undefined;
|
@@ -137,8 +137,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
137
137
|
amdContainer?: string | undefined;
|
138
138
|
auxiliaryComment?: string | {
|
139
139
|
commonjs?: string | undefined;
|
140
|
-
commonjs2?: string | undefined;
|
141
140
|
amd?: string | undefined;
|
141
|
+
commonjs2?: string | undefined;
|
142
142
|
root?: string | undefined;
|
143
143
|
} | undefined;
|
144
144
|
export?: string | string[] | undefined;
|
@@ -149,12 +149,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
149
149
|
}>]>>, 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<{
|
150
150
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
151
151
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
152
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
152
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
153
153
|
baseUri: z.ZodOptional<z.ZodString>;
|
154
154
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>;
|
155
155
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
156
156
|
wasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>;
|
157
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
157
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
158
158
|
library: z.ZodOptional<z.ZodObject<{
|
159
159
|
amdContainer: z.ZodOptional<z.ZodString>;
|
160
160
|
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -164,13 +164,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
164
164
|
root: z.ZodOptional<z.ZodString>;
|
165
165
|
}, "strict", z.ZodTypeAny, {
|
166
166
|
commonjs?: string | undefined;
|
167
|
-
commonjs2?: string | undefined;
|
168
167
|
amd?: string | undefined;
|
168
|
+
commonjs2?: string | undefined;
|
169
169
|
root?: string | undefined;
|
170
170
|
}, {
|
171
171
|
commonjs?: string | undefined;
|
172
|
-
commonjs2?: string | undefined;
|
173
172
|
amd?: string | undefined;
|
173
|
+
commonjs2?: string | undefined;
|
174
174
|
root?: string | undefined;
|
175
175
|
}>]>>;
|
176
176
|
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -199,8 +199,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
199
199
|
amdContainer?: string | undefined;
|
200
200
|
auxiliaryComment?: string | {
|
201
201
|
commonjs?: string | undefined;
|
202
|
-
commonjs2?: string | undefined;
|
203
202
|
amd?: string | undefined;
|
203
|
+
commonjs2?: string | undefined;
|
204
204
|
root?: string | undefined;
|
205
205
|
} | undefined;
|
206
206
|
export?: string | string[] | undefined;
|
@@ -215,8 +215,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
215
215
|
amdContainer?: string | undefined;
|
216
216
|
auxiliaryComment?: string | {
|
217
217
|
commonjs?: string | undefined;
|
218
|
-
commonjs2?: string | undefined;
|
219
218
|
amd?: string | undefined;
|
219
|
+
commonjs2?: string | undefined;
|
220
220
|
root?: string | undefined;
|
221
221
|
} | undefined;
|
222
222
|
export?: string | string[] | undefined;
|
@@ -243,8 +243,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
243
243
|
amdContainer?: string | undefined;
|
244
244
|
auxiliaryComment?: string | {
|
245
245
|
commonjs?: string | undefined;
|
246
|
-
commonjs2?: string | undefined;
|
247
246
|
amd?: string | undefined;
|
247
|
+
commonjs2?: string | undefined;
|
248
248
|
root?: string | undefined;
|
249
249
|
} | undefined;
|
250
250
|
export?: string | string[] | undefined;
|
@@ -271,8 +271,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
271
271
|
amdContainer?: string | undefined;
|
272
272
|
auxiliaryComment?: string | {
|
273
273
|
commonjs?: string | undefined;
|
274
|
-
commonjs2?: string | undefined;
|
275
274
|
amd?: string | undefined;
|
275
|
+
commonjs2?: string | undefined;
|
276
276
|
root?: string | undefined;
|
277
277
|
} | undefined;
|
278
278
|
export?: string | string[] | undefined;
|
@@ -283,12 +283,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
283
283
|
}>]>>, 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<{
|
284
284
|
import: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
285
285
|
runtime: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodString]>>;
|
286
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
286
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
287
287
|
baseUri: z.ZodOptional<z.ZodString>;
|
288
288
|
chunkLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["jsonp", "import-scripts", "require", "async-node", "import"]>, z.ZodString]>]>>;
|
289
289
|
asyncChunks: z.ZodOptional<z.ZodBoolean>;
|
290
290
|
wasmLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["fetch-streaming", "fetch", "async-node"]>, z.ZodString]>]>>;
|
291
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
291
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
292
292
|
library: z.ZodOptional<z.ZodObject<{
|
293
293
|
amdContainer: z.ZodOptional<z.ZodString>;
|
294
294
|
auxiliaryComment: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
@@ -298,13 +298,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
298
298
|
root: z.ZodOptional<z.ZodString>;
|
299
299
|
}, "strict", z.ZodTypeAny, {
|
300
300
|
commonjs?: string | undefined;
|
301
|
-
commonjs2?: string | undefined;
|
302
301
|
amd?: string | undefined;
|
302
|
+
commonjs2?: string | undefined;
|
303
303
|
root?: string | undefined;
|
304
304
|
}, {
|
305
305
|
commonjs?: string | undefined;
|
306
|
-
commonjs2?: string | undefined;
|
307
306
|
amd?: string | undefined;
|
307
|
+
commonjs2?: string | undefined;
|
308
308
|
root?: string | undefined;
|
309
309
|
}>]>>;
|
310
310
|
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -333,8 +333,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
333
333
|
amdContainer?: string | undefined;
|
334
334
|
auxiliaryComment?: string | {
|
335
335
|
commonjs?: string | undefined;
|
336
|
-
commonjs2?: string | undefined;
|
337
336
|
amd?: string | undefined;
|
337
|
+
commonjs2?: string | undefined;
|
338
338
|
root?: string | undefined;
|
339
339
|
} | undefined;
|
340
340
|
export?: string | string[] | undefined;
|
@@ -349,8 +349,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
349
349
|
amdContainer?: string | undefined;
|
350
350
|
auxiliaryComment?: string | {
|
351
351
|
commonjs?: string | undefined;
|
352
|
-
commonjs2?: string | undefined;
|
353
352
|
amd?: string | undefined;
|
353
|
+
commonjs2?: string | undefined;
|
354
354
|
root?: string | undefined;
|
355
355
|
} | undefined;
|
356
356
|
export?: string | string[] | undefined;
|
@@ -377,8 +377,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
377
377
|
amdContainer?: string | undefined;
|
378
378
|
auxiliaryComment?: string | {
|
379
379
|
commonjs?: string | undefined;
|
380
|
-
commonjs2?: string | undefined;
|
381
380
|
amd?: string | undefined;
|
381
|
+
commonjs2?: string | undefined;
|
382
382
|
root?: string | undefined;
|
383
383
|
} | undefined;
|
384
384
|
export?: string | string[] | undefined;
|
@@ -405,8 +405,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
405
405
|
amdContainer?: string | undefined;
|
406
406
|
auxiliaryComment?: string | {
|
407
407
|
commonjs?: string | undefined;
|
408
|
-
commonjs2?: string | undefined;
|
409
408
|
amd?: string | undefined;
|
409
|
+
commonjs2?: string | undefined;
|
410
410
|
root?: string | undefined;
|
411
411
|
} | undefined;
|
412
412
|
export?: string | string[] | undefined;
|
@@ -425,17 +425,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
425
425
|
}, {
|
426
426
|
keep?: string | undefined;
|
427
427
|
}>]>>;
|
428
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
429
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
430
|
-
chunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
428
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
429
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
430
|
+
chunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
431
431
|
crossOriginLoading: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodEnum<["anonymous", "use-credentials"]>]>>;
|
432
|
-
cssFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
432
|
+
cssFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
433
433
|
cssHeadDataCompression: z.ZodOptional<z.ZodBoolean>;
|
434
|
-
cssChunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
434
|
+
cssChunkFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
435
435
|
hotUpdateMainFilename: z.ZodOptional<z.ZodString>;
|
436
436
|
hotUpdateChunkFilename: z.ZodOptional<z.ZodString>;
|
437
437
|
hotUpdateGlobal: z.ZodOptional<z.ZodString>;
|
438
|
-
assetModuleFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
438
|
+
assetModuleFilename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
439
439
|
uniqueName: z.ZodOptional<z.ZodString>;
|
440
440
|
chunkLoadingGlobal: z.ZodOptional<z.ZodString>;
|
441
441
|
enabledLibraryTypes: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodEnum<["var", "module", "assign", "assign-properties", "this", "window", "self", "global", "commonjs", "commonjs2", "commonjs-module", "commonjs-static", "amd", "amd-require", "umd", "umd2", "jsonp", "system"]>, z.ZodString]>, "many">>;
|
@@ -460,13 +460,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
460
460
|
root: z.ZodOptional<z.ZodString>;
|
461
461
|
}, "strict", z.ZodTypeAny, {
|
462
462
|
commonjs?: string | undefined;
|
463
|
-
commonjs2?: string | undefined;
|
464
463
|
amd?: string | undefined;
|
464
|
+
commonjs2?: string | undefined;
|
465
465
|
root?: string | undefined;
|
466
466
|
}, {
|
467
467
|
commonjs?: string | undefined;
|
468
|
-
commonjs2?: string | undefined;
|
469
468
|
amd?: string | undefined;
|
469
|
+
commonjs2?: string | undefined;
|
470
470
|
root?: string | undefined;
|
471
471
|
}>]>>;
|
472
472
|
export: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
@@ -495,8 +495,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
495
495
|
amdContainer?: string | undefined;
|
496
496
|
auxiliaryComment?: string | {
|
497
497
|
commonjs?: string | undefined;
|
498
|
-
commonjs2?: string | undefined;
|
499
498
|
amd?: string | undefined;
|
499
|
+
commonjs2?: string | undefined;
|
500
500
|
root?: string | undefined;
|
501
501
|
} | undefined;
|
502
502
|
export?: string | string[] | undefined;
|
@@ -511,8 +511,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
511
511
|
amdContainer?: string | undefined;
|
512
512
|
auxiliaryComment?: string | {
|
513
513
|
commonjs?: string | undefined;
|
514
|
-
commonjs2?: string | undefined;
|
515
514
|
amd?: string | undefined;
|
515
|
+
commonjs2?: string | undefined;
|
516
516
|
root?: string | undefined;
|
517
517
|
} | undefined;
|
518
518
|
export?: string | string[] | undefined;
|
@@ -528,13 +528,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
528
528
|
root: z.ZodOptional<z.ZodString>;
|
529
529
|
}, "strict", z.ZodTypeAny, {
|
530
530
|
commonjs?: string | undefined;
|
531
|
-
commonjs2?: string | undefined;
|
532
531
|
amd?: string | undefined;
|
532
|
+
commonjs2?: string | undefined;
|
533
533
|
root?: string | undefined;
|
534
534
|
}, {
|
535
535
|
commonjs?: string | undefined;
|
536
|
-
commonjs2?: string | undefined;
|
537
536
|
amd?: string | undefined;
|
537
|
+
commonjs2?: string | undefined;
|
538
538
|
root?: string | undefined;
|
539
539
|
}>]>>;
|
540
540
|
module: z.ZodOptional<z.ZodBoolean>;
|
@@ -592,52 +592,53 @@ export declare const rspackOptions: z.ZodObject<{
|
|
592
592
|
templateLiteral: z.ZodOptional<z.ZodBoolean>;
|
593
593
|
}, "strict", z.ZodTypeAny, {
|
594
594
|
module?: boolean | undefined;
|
595
|
+
dynamicImport?: boolean | undefined;
|
596
|
+
optionalChaining?: boolean | undefined;
|
595
597
|
arrowFunction?: boolean | undefined;
|
596
598
|
asyncFunction?: boolean | undefined;
|
597
599
|
bigIntLiteral?: boolean | undefined;
|
598
600
|
const?: boolean | undefined;
|
599
601
|
destructuring?: boolean | undefined;
|
600
602
|
document?: boolean | undefined;
|
601
|
-
dynamicImport?: boolean | undefined;
|
602
603
|
dynamicImportInWorker?: boolean | undefined;
|
603
604
|
forOf?: boolean | undefined;
|
604
605
|
globalThis?: boolean | undefined;
|
605
606
|
nodePrefixForCoreModules?: boolean | undefined;
|
606
|
-
optionalChaining?: boolean | undefined;
|
607
607
|
templateLiteral?: boolean | undefined;
|
608
608
|
}, {
|
609
609
|
module?: boolean | undefined;
|
610
|
+
dynamicImport?: boolean | undefined;
|
611
|
+
optionalChaining?: boolean | undefined;
|
610
612
|
arrowFunction?: boolean | undefined;
|
611
613
|
asyncFunction?: boolean | undefined;
|
612
614
|
bigIntLiteral?: boolean | undefined;
|
613
615
|
const?: boolean | undefined;
|
614
616
|
destructuring?: boolean | undefined;
|
615
617
|
document?: boolean | undefined;
|
616
|
-
dynamicImport?: boolean | undefined;
|
617
618
|
dynamicImportInWorker?: boolean | undefined;
|
618
619
|
forOf?: boolean | undefined;
|
619
620
|
globalThis?: boolean | undefined;
|
620
621
|
nodePrefixForCoreModules?: boolean | undefined;
|
621
|
-
optionalChaining?: boolean | undefined;
|
622
622
|
templateLiteral?: boolean | undefined;
|
623
623
|
}>>;
|
624
624
|
compareBeforeEmit: z.ZodOptional<z.ZodBoolean>;
|
625
625
|
}, "strict", z.ZodTypeAny, {
|
626
626
|
module?: boolean | undefined;
|
627
|
+
path?: string | undefined;
|
627
628
|
environment?: {
|
628
629
|
module?: boolean | undefined;
|
630
|
+
dynamicImport?: boolean | undefined;
|
631
|
+
optionalChaining?: boolean | undefined;
|
629
632
|
arrowFunction?: boolean | undefined;
|
630
633
|
asyncFunction?: boolean | undefined;
|
631
634
|
bigIntLiteral?: boolean | undefined;
|
632
635
|
const?: boolean | undefined;
|
633
636
|
destructuring?: boolean | undefined;
|
634
637
|
document?: boolean | undefined;
|
635
|
-
dynamicImport?: boolean | undefined;
|
636
638
|
dynamicImportInWorker?: boolean | undefined;
|
637
639
|
forOf?: boolean | undefined;
|
638
640
|
globalThis?: boolean | undefined;
|
639
641
|
nodePrefixForCoreModules?: boolean | undefined;
|
640
|
-
optionalChaining?: boolean | undefined;
|
641
642
|
templateLiteral?: boolean | undefined;
|
642
643
|
} | undefined;
|
643
644
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -659,20 +660,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
659
660
|
amdContainer?: string | undefined;
|
660
661
|
auxiliaryComment?: string | {
|
661
662
|
commonjs?: string | undefined;
|
662
|
-
commonjs2?: string | undefined;
|
663
663
|
amd?: string | undefined;
|
664
|
+
commonjs2?: string | undefined;
|
664
665
|
root?: string | undefined;
|
665
666
|
} | undefined;
|
666
667
|
export?: string | string[] | undefined;
|
667
668
|
umdNamedDefine?: boolean | undefined;
|
668
669
|
} | undefined;
|
669
|
-
path?: string | undefined;
|
670
670
|
wasmLoading?: string | false | undefined;
|
671
671
|
cssHeadDataCompression?: boolean | undefined;
|
672
672
|
auxiliaryComment?: string | {
|
673
673
|
commonjs?: string | undefined;
|
674
|
-
commonjs2?: string | undefined;
|
675
674
|
amd?: string | undefined;
|
675
|
+
commonjs2?: string | undefined;
|
676
676
|
root?: string | undefined;
|
677
677
|
} | undefined;
|
678
678
|
umdNamedDefine?: boolean | undefined;
|
@@ -723,20 +723,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
723
723
|
compareBeforeEmit?: boolean | undefined;
|
724
724
|
}, {
|
725
725
|
module?: boolean | undefined;
|
726
|
+
path?: string | undefined;
|
726
727
|
environment?: {
|
727
728
|
module?: boolean | undefined;
|
729
|
+
dynamicImport?: boolean | undefined;
|
730
|
+
optionalChaining?: boolean | undefined;
|
728
731
|
arrowFunction?: boolean | undefined;
|
729
732
|
asyncFunction?: boolean | undefined;
|
730
733
|
bigIntLiteral?: boolean | undefined;
|
731
734
|
const?: boolean | undefined;
|
732
735
|
destructuring?: boolean | undefined;
|
733
736
|
document?: boolean | undefined;
|
734
|
-
dynamicImport?: boolean | undefined;
|
735
737
|
dynamicImportInWorker?: boolean | undefined;
|
736
738
|
forOf?: boolean | undefined;
|
737
739
|
globalThis?: boolean | undefined;
|
738
740
|
nodePrefixForCoreModules?: boolean | undefined;
|
739
|
-
optionalChaining?: boolean | undefined;
|
740
741
|
templateLiteral?: boolean | undefined;
|
741
742
|
} | undefined;
|
742
743
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -758,20 +759,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
758
759
|
amdContainer?: string | undefined;
|
759
760
|
auxiliaryComment?: string | {
|
760
761
|
commonjs?: string | undefined;
|
761
|
-
commonjs2?: string | undefined;
|
762
762
|
amd?: string | undefined;
|
763
|
+
commonjs2?: string | undefined;
|
763
764
|
root?: string | undefined;
|
764
765
|
} | undefined;
|
765
766
|
export?: string | string[] | undefined;
|
766
767
|
umdNamedDefine?: boolean | undefined;
|
767
768
|
} | undefined;
|
768
|
-
path?: string | undefined;
|
769
769
|
wasmLoading?: string | false | undefined;
|
770
770
|
cssHeadDataCompression?: boolean | undefined;
|
771
771
|
auxiliaryComment?: string | {
|
772
772
|
commonjs?: string | undefined;
|
773
|
-
commonjs2?: string | undefined;
|
774
773
|
amd?: string | undefined;
|
774
|
+
commonjs2?: string | undefined;
|
775
775
|
root?: string | undefined;
|
776
776
|
} | undefined;
|
777
777
|
umdNamedDefine?: boolean | undefined;
|
@@ -821,7 +821,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
821
821
|
charset?: boolean | undefined;
|
822
822
|
compareBeforeEmit?: boolean | undefined;
|
823
823
|
}>>;
|
824
|
-
target: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.
|
824
|
+
target: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.Schema<`node${number}`, z.ZodTypeDef, `node${number}`>, z.Schema<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.Schema<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.Schema<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.Schema<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.Schema<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.Schema<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.Schema<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.Schema<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.Schema<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.Schema<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.Schema<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.Schema<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.Schema<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.Schema<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, z.ZodArray<z.ZodUnion<[z.ZodEnum<["web", "webworker", "es3", "es5", "es2015", "es2016", "es2017", "es2018", "es2019", "es2020", "es2021", "es2022"]>, z.ZodLiteral<"node">, z.ZodLiteral<"async-node">, z.Schema<`node${number}`, z.ZodTypeDef, `node${number}`>, z.Schema<`async-node${number}`, z.ZodTypeDef, `async-node${number}`>, z.Schema<`node${number}.${number}`, z.ZodTypeDef, `node${number}.${number}`>, z.Schema<`async-node${number}.${number}`, z.ZodTypeDef, `async-node${number}.${number}`>, z.ZodLiteral<"electron-main">, z.Schema<`electron${number}-main`, z.ZodTypeDef, `electron${number}-main`>, z.Schema<`electron${number}.${number}-main`, z.ZodTypeDef, `electron${number}.${number}-main`>, z.ZodLiteral<"electron-renderer">, z.Schema<`electron${number}-renderer`, z.ZodTypeDef, `electron${number}-renderer`>, z.Schema<`electron${number}.${number}-renderer`, z.ZodTypeDef, `electron${number}.${number}-renderer`>, z.ZodLiteral<"electron-preload">, z.Schema<`electron${number}-preload`, z.ZodTypeDef, `electron${number}-preload`>, z.Schema<`electron${number}.${number}-preload`, z.ZodTypeDef, `electron${number}.${number}-preload`>, z.ZodLiteral<"nwjs">, z.Schema<`nwjs${number}`, z.ZodTypeDef, `nwjs${number}`>, z.Schema<`nwjs${number}.${number}`, z.ZodTypeDef, `nwjs${number}.${number}`>, z.ZodLiteral<"node-webkit">, z.Schema<`node-webkit${number}`, z.ZodTypeDef, `node-webkit${number}`>, z.Schema<`node-webkit${number}.${number}`, z.ZodTypeDef, `node-webkit${number}.${number}`>, z.ZodLiteral<"browserslist">, z.Schema<`browserslist:${string}`, z.ZodTypeDef, `browserslist:${string}`>]>, "many">]>>;
|
825
825
|
mode: z.ZodOptional<z.ZodEnum<["development", "production", "none"]>>;
|
826
826
|
experiments: z.ZodOptional<z.ZodObject<{
|
827
827
|
cache: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodUnion<[z.ZodObject<{
|
@@ -835,9 +835,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
835
835
|
buildDependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
836
836
|
version: z.ZodOptional<z.ZodString>;
|
837
837
|
snapshot: z.ZodOptional<z.ZodObject<{
|
838
|
-
immutablePaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.
|
839
|
-
unmanagedPaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.
|
840
|
-
managedPaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.
|
838
|
+
immutablePaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
|
839
|
+
unmanagedPaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
|
840
|
+
managedPaths: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, "many">>;
|
841
841
|
}, "strip", z.ZodTypeAny, {
|
842
842
|
immutablePaths?: (string | RegExp)[] | undefined;
|
843
843
|
unmanagedPaths?: (string | RegExp)[] | undefined;
|
@@ -887,21 +887,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
887
887
|
lazyCompilation: z.ZodUnion<[z.ZodOptional<z.ZodBoolean>, z.ZodObject<{
|
888
888
|
imports: z.ZodOptional<z.ZodBoolean>;
|
889
889
|
entries: z.ZodOptional<z.ZodBoolean>;
|
890
|
-
test: z.ZodOptional<z.ZodUnion<[z.
|
890
|
+
test: z.ZodOptional<z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.Schema<Module, z.ZodTypeDef, Module>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
891
891
|
client: z.ZodOptional<z.ZodString>;
|
892
892
|
serverUrl: z.ZodOptional<z.ZodString>;
|
893
893
|
}, "strip", z.ZodTypeAny, {
|
894
894
|
entries?: boolean | undefined;
|
895
895
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
896
|
+
serverUrl?: string | undefined;
|
896
897
|
imports?: boolean | undefined;
|
897
898
|
client?: string | undefined;
|
898
|
-
serverUrl?: string | undefined;
|
899
899
|
}, {
|
900
900
|
entries?: boolean | undefined;
|
901
901
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
902
|
+
serverUrl?: string | undefined;
|
902
903
|
imports?: boolean | undefined;
|
903
904
|
client?: string | undefined;
|
904
|
-
serverUrl?: string | undefined;
|
905
905
|
}>]>;
|
906
906
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
907
907
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
@@ -987,14 +987,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
987
987
|
} | undefined;
|
988
988
|
}>>;
|
989
989
|
buildHttp: z.ZodOptional<z.ZodObject<{
|
990
|
-
allowedUris: z.ZodArray<z.ZodUnion<[z.ZodString, z.
|
990
|
+
allowedUris: z.ZodArray<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
|
991
991
|
lockfileLocation: z.ZodOptional<z.ZodString>;
|
992
992
|
cacheLocation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
993
993
|
upgrade: z.ZodOptional<z.ZodBoolean>;
|
994
994
|
httpClient: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>], z.ZodUnknown>, z.ZodPromise<z.ZodObject<{
|
995
995
|
status: z.ZodNumber;
|
996
996
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
997
|
-
body: z.
|
997
|
+
body: z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>;
|
998
998
|
}, "strip", z.ZodTypeAny, {
|
999
999
|
status: number;
|
1000
1000
|
body: Buffer<ArrayBufferLike>;
|
@@ -1028,6 +1028,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1028
1028
|
parallelLoader: z.ZodOptional<z.ZodBoolean>;
|
1029
1029
|
}, "strict", z.ZodTypeAny, {
|
1030
1030
|
css?: boolean | undefined;
|
1031
|
+
topLevelAwait?: boolean | undefined;
|
1031
1032
|
cache?: boolean | {
|
1032
1033
|
type: "memory";
|
1033
1034
|
} | {
|
@@ -1047,13 +1048,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1047
1048
|
lazyCompilation?: boolean | {
|
1048
1049
|
entries?: boolean | undefined;
|
1049
1050
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1051
|
+
serverUrl?: string | undefined;
|
1050
1052
|
imports?: boolean | undefined;
|
1051
1053
|
client?: string | undefined;
|
1052
|
-
serverUrl?: string | undefined;
|
1053
1054
|
} | undefined;
|
1054
1055
|
asyncWebAssembly?: boolean | undefined;
|
1055
1056
|
outputModule?: boolean | undefined;
|
1056
|
-
topLevelAwait?: boolean | undefined;
|
1057
1057
|
layers?: boolean | undefined;
|
1058
1058
|
incremental?: boolean | {
|
1059
1059
|
make?: boolean | undefined;
|
@@ -1095,6 +1095,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1095
1095
|
parallelLoader?: boolean | undefined;
|
1096
1096
|
}, {
|
1097
1097
|
css?: boolean | undefined;
|
1098
|
+
topLevelAwait?: boolean | undefined;
|
1098
1099
|
cache?: boolean | {
|
1099
1100
|
type: "memory";
|
1100
1101
|
} | {
|
@@ -1114,13 +1115,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1114
1115
|
lazyCompilation?: boolean | {
|
1115
1116
|
entries?: boolean | undefined;
|
1116
1117
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1118
|
+
serverUrl?: string | undefined;
|
1117
1119
|
imports?: boolean | undefined;
|
1118
1120
|
client?: string | undefined;
|
1119
|
-
serverUrl?: string | undefined;
|
1120
1121
|
} | undefined;
|
1121
1122
|
asyncWebAssembly?: boolean | undefined;
|
1122
1123
|
outputModule?: boolean | undefined;
|
1123
|
-
topLevelAwait?: boolean | undefined;
|
1124
1124
|
layers?: boolean | undefined;
|
1125
1125
|
incremental?: boolean | {
|
1126
1126
|
make?: boolean | undefined;
|
@@ -1161,7 +1161,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1161
1161
|
} | undefined;
|
1162
1162
|
parallelLoader?: boolean | undefined;
|
1163
1163
|
}>>;
|
1164
|
-
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1164
|
+
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<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.Schema<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.Schema<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.Schema<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.Schema<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.Schema<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.Schema<t.ExternalItemFunctionData, z.ZodTypeDef, t.ExternalItemFunctionData>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.Schema<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.Schema<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.Schema<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>]>>]>]>>;
|
1165
1165
|
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"]>>;
|
1166
1166
|
externalsPresets: z.ZodOptional<z.ZodObject<{
|
1167
1167
|
node: z.ZodOptional<z.ZodBoolean>;
|
@@ -1194,21 +1194,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1194
1194
|
infrastructureLogging: z.ZodOptional<z.ZodObject<{
|
1195
1195
|
appendOnly: z.ZodOptional<z.ZodBoolean>;
|
1196
1196
|
colors: z.ZodOptional<z.ZodBoolean>;
|
1197
|
-
console: z.ZodOptional<z.
|
1198
|
-
debug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.
|
1197
|
+
console: z.ZodOptional<z.Schema<Console, z.ZodTypeDef, Console>>;
|
1198
|
+
debug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodString]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodString]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>]>]>>;
|
1199
1199
|
level: z.ZodOptional<z.ZodEnum<["none", "error", "warn", "info", "log", "verbose"]>>;
|
1200
|
-
stream: z.ZodOptional<z.
|
1200
|
+
stream: z.ZodOptional<z.Schema<NodeJS.WritableStream, z.ZodTypeDef, NodeJS.WritableStream>>;
|
1201
1201
|
}, "strict", z.ZodTypeAny, {
|
1202
1202
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1203
1203
|
colors?: boolean | undefined;
|
1204
|
-
level?: "error" | "warn" | "info" | "log" | "verbose" |
|
1204
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1205
1205
|
console?: Console | undefined;
|
1206
1206
|
appendOnly?: boolean | undefined;
|
1207
1207
|
stream?: NodeJS.WritableStream | undefined;
|
1208
1208
|
}, {
|
1209
1209
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1210
1210
|
colors?: boolean | undefined;
|
1211
|
-
level?: "error" | "warn" | "info" | "log" | "verbose" |
|
1211
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1212
1212
|
console?: Console | undefined;
|
1213
1213
|
appendOnly?: boolean | undefined;
|
1214
1214
|
stream?: NodeJS.WritableStream | undefined;
|
@@ -1230,23 +1230,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1230
1230
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
1231
1231
|
}>]>>;
|
1232
1232
|
loader: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
1233
|
-
ignoreWarnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.
|
1233
|
+
ignoreWarnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodFunction<z.ZodTuple<[z.Schema<Error, z.ZodTypeDef, Error>, z.Schema<Compilation, z.ZodTypeDef, Compilation>], z.ZodUnknown>, z.ZodBoolean>]>, "many">>;
|
1234
1234
|
watchOptions: z.ZodOptional<z.ZodObject<{
|
1235
1235
|
aggregateTimeout: z.ZodOptional<z.ZodNumber>;
|
1236
1236
|
followSymlinks: z.ZodOptional<z.ZodBoolean>;
|
1237
|
-
ignored: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.
|
1237
|
+
ignored: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodString]>>;
|
1238
1238
|
poll: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
1239
1239
|
stdin: z.ZodOptional<z.ZodBoolean>;
|
1240
1240
|
}, "strict", z.ZodTypeAny, {
|
1241
|
+
ignored?: string | RegExp | string[] | undefined;
|
1241
1242
|
aggregateTimeout?: number | undefined;
|
1242
1243
|
followSymlinks?: boolean | undefined;
|
1243
|
-
ignored?: string | RegExp | string[] | undefined;
|
1244
1244
|
poll?: number | boolean | undefined;
|
1245
1245
|
stdin?: boolean | undefined;
|
1246
1246
|
}, {
|
1247
|
+
ignored?: string | RegExp | string[] | undefined;
|
1247
1248
|
aggregateTimeout?: number | undefined;
|
1248
1249
|
followSymlinks?: boolean | undefined;
|
1249
|
-
ignored?: string | RegExp | string[] | undefined;
|
1250
1250
|
poll?: number | boolean | undefined;
|
1251
1251
|
stdin?: boolean | undefined;
|
1252
1252
|
}>>;
|
@@ -1278,7 +1278,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1278
1278
|
nestedModules: z.ZodOptional<z.ZodBoolean>;
|
1279
1279
|
source: z.ZodOptional<z.ZodBoolean>;
|
1280
1280
|
logging: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["none", "error", "warn", "info", "log", "verbose"]>, z.ZodBoolean]>>;
|
1281
|
-
loggingDebug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.
|
1281
|
+
loggingDebug: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodString]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">, z.ZodUnion<[z.ZodUnion<[z.Schema<RegExp, z.ZodTypeDef, RegExp>, z.ZodString]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>]>]>>;
|
1282
1282
|
loggingTrace: z.ZodOptional<z.ZodBoolean>;
|
1283
1283
|
runtimeModules: z.ZodOptional<z.ZodBoolean>;
|
1284
1284
|
children: z.ZodOptional<z.ZodBoolean>;
|
@@ -1302,8 +1302,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1302
1302
|
groupAssetsByChunk: z.ZodOptional<z.ZodBoolean>;
|
1303
1303
|
assetsSpace: z.ZodOptional<z.ZodNumber>;
|
1304
1304
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
1305
|
-
excludeModules: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1306
|
-
excludeAssets: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1305
|
+
excludeModules: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny, z.ZodAny], null>, z.ZodBoolean>]>, "many">, z.ZodString]>, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny, z.ZodAny], null>, z.ZodBoolean>]>, z.ZodBoolean]>>;
|
1306
|
+
excludeAssets: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodBoolean>]>, "many">, z.ZodString]>, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodAny], null>, z.ZodBoolean>]>>;
|
1307
1307
|
modulesSort: z.ZodOptional<z.ZodString>;
|
1308
1308
|
chunkModulesSort: z.ZodOptional<z.ZodString>;
|
1309
1309
|
nestedModulesSort: z.ZodOptional<z.ZodString>;
|
@@ -1333,14 +1333,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1333
1333
|
runtime?: boolean | undefined;
|
1334
1334
|
hash?: boolean | undefined;
|
1335
1335
|
modules?: boolean | undefined;
|
1336
|
+
all?: boolean | undefined;
|
1337
|
+
outputPath?: boolean | undefined;
|
1338
|
+
env?: boolean | undefined;
|
1336
1339
|
publicPath?: boolean | undefined;
|
1337
1340
|
chunks?: boolean | undefined;
|
1338
1341
|
source?: boolean | undefined;
|
1339
|
-
all?: boolean | undefined;
|
1340
1342
|
usedExports?: boolean | undefined;
|
1341
1343
|
assets?: boolean | undefined;
|
1342
1344
|
version?: boolean | undefined;
|
1343
|
-
preset?: boolean | "
|
1345
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1344
1346
|
entrypoints?: boolean | "auto" | undefined;
|
1345
1347
|
chunkGroups?: boolean | undefined;
|
1346
1348
|
warnings?: boolean | undefined;
|
@@ -1349,14 +1351,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1349
1351
|
errorsCount?: boolean | undefined;
|
1350
1352
|
colors?: boolean | undefined;
|
1351
1353
|
reasons?: boolean | undefined;
|
1352
|
-
outputPath?: boolean | undefined;
|
1353
1354
|
chunkModules?: boolean | undefined;
|
1354
1355
|
chunkRelations?: boolean | undefined;
|
1355
1356
|
timings?: boolean | undefined;
|
1356
1357
|
builtAt?: boolean | undefined;
|
1357
1358
|
moduleAssets?: boolean | undefined;
|
1358
1359
|
nestedModules?: boolean | undefined;
|
1359
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" |
|
1360
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1360
1361
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1361
1362
|
loggingTrace?: boolean | undefined;
|
1362
1363
|
runtimeModules?: boolean | undefined;
|
@@ -1388,7 +1389,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1388
1389
|
chunksSort?: string | undefined;
|
1389
1390
|
assetsSort?: string | undefined;
|
1390
1391
|
performance?: boolean | undefined;
|
1391
|
-
env?: boolean | undefined;
|
1392
1392
|
chunkGroupAuxiliary?: boolean | undefined;
|
1393
1393
|
chunkGroupChildren?: boolean | undefined;
|
1394
1394
|
chunkGroupMaxAssets?: number | undefined;
|
@@ -1410,14 +1410,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1410
1410
|
runtime?: boolean | undefined;
|
1411
1411
|
hash?: boolean | undefined;
|
1412
1412
|
modules?: boolean | undefined;
|
1413
|
+
all?: boolean | undefined;
|
1414
|
+
outputPath?: boolean | undefined;
|
1415
|
+
env?: boolean | undefined;
|
1413
1416
|
publicPath?: boolean | undefined;
|
1414
1417
|
chunks?: boolean | undefined;
|
1415
1418
|
source?: boolean | undefined;
|
1416
|
-
all?: boolean | undefined;
|
1417
1419
|
usedExports?: boolean | undefined;
|
1418
1420
|
assets?: boolean | undefined;
|
1419
1421
|
version?: boolean | undefined;
|
1420
|
-
preset?: boolean | "
|
1422
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1421
1423
|
entrypoints?: boolean | "auto" | undefined;
|
1422
1424
|
chunkGroups?: boolean | undefined;
|
1423
1425
|
warnings?: boolean | undefined;
|
@@ -1426,14 +1428,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1426
1428
|
errorsCount?: boolean | undefined;
|
1427
1429
|
colors?: boolean | undefined;
|
1428
1430
|
reasons?: boolean | undefined;
|
1429
|
-
outputPath?: boolean | undefined;
|
1430
1431
|
chunkModules?: boolean | undefined;
|
1431
1432
|
chunkRelations?: boolean | undefined;
|
1432
1433
|
timings?: boolean | undefined;
|
1433
1434
|
builtAt?: boolean | undefined;
|
1434
1435
|
moduleAssets?: boolean | undefined;
|
1435
1436
|
nestedModules?: boolean | undefined;
|
1436
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" |
|
1437
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1437
1438
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1438
1439
|
loggingTrace?: boolean | undefined;
|
1439
1440
|
runtimeModules?: boolean | undefined;
|
@@ -1465,7 +1466,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1465
1466
|
chunksSort?: string | undefined;
|
1466
1467
|
assetsSort?: string | undefined;
|
1467
1468
|
performance?: boolean | undefined;
|
1468
|
-
env?: boolean | undefined;
|
1469
1469
|
chunkGroupAuxiliary?: boolean | undefined;
|
1470
1470
|
chunkGroupChildren?: boolean | undefined;
|
1471
1471
|
chunkGroupMaxAssets?: number | undefined;
|
@@ -1488,16 +1488,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1488
1488
|
moduleIds: z.ZodOptional<z.ZodEnum<["named", "natural", "deterministic"]>>;
|
1489
1489
|
chunkIds: z.ZodOptional<z.ZodEnum<["natural", "named", "deterministic", "size", "total-size"]>>;
|
1490
1490
|
minimize: z.ZodOptional<z.ZodBoolean>;
|
1491
|
-
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodUnion<[z.
|
1491
|
+
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodUnion<[z.Schema<t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction, z.ZodTypeDef, t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>]>, "many">>;
|
1492
1492
|
mergeDuplicateChunks: z.ZodOptional<z.ZodBoolean>;
|
1493
1493
|
splitChunks: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
1494
|
-
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.
|
1494
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Chunk, z.ZodTypeDef, Chunk>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
1495
1495
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1496
1496
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
1497
1497
|
usedExports: z.ZodOptional<z.ZodBoolean>;
|
1498
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.
|
1499
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
1498
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Module, z.ZodTypeDef, Module>, z.ZodArray<z.Schema<Chunk, z.ZodTypeDef, Chunk>, "many">, z.ZodString], z.ZodUnknown>, z.ZodOptional<z.ZodString>>]>>;
|
1499
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
1500
1500
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1501
|
+
minSizeReduction: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1501
1502
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1502
1503
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1503
1504
|
maxInitialSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
@@ -1505,22 +1506,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1505
1506
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
1506
1507
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1507
1508
|
cacheGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
1508
|
-
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.
|
1509
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Chunk, z.ZodTypeDef, Chunk>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
1509
1510
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1510
1511
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
1511
1512
|
usedExports: z.ZodOptional<z.ZodBoolean>;
|
1512
|
-
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.
|
1513
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
1513
|
+
name: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Module, z.ZodTypeDef, Module>, z.ZodArray<z.Schema<Chunk, z.ZodTypeDef, Chunk>, "many">, z.ZodString], z.ZodUnknown>, z.ZodOptional<z.ZodString>>]>>;
|
1514
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
1514
1515
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1516
|
+
minSizeReduction: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1515
1517
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1516
1518
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1517
1519
|
maxInitialSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1518
1520
|
maxAsyncRequests: z.ZodOptional<z.ZodNumber>;
|
1519
1521
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
1520
1522
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1521
|
-
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1522
|
-
moduleGraph: z.
|
1523
|
-
chunkGraph: z.
|
1523
|
+
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Module, z.ZodTypeDef, Module>, z.ZodObject<{
|
1524
|
+
moduleGraph: z.Schema<ModuleGraph, z.ZodTypeDef, ModuleGraph>;
|
1525
|
+
chunkGraph: z.Schema<ChunkGraph, z.ZodTypeDef, ChunkGraph>;
|
1524
1526
|
}, "strip", z.ZodTypeAny, {
|
1525
1527
|
moduleGraph: ModuleGraph;
|
1526
1528
|
chunkGraph: ChunkGraph;
|
@@ -1531,22 +1533,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1531
1533
|
priority: z.ZodOptional<z.ZodNumber>;
|
1532
1534
|
enforce: z.ZodOptional<z.ZodBoolean>;
|
1533
1535
|
reuseExistingChunk: z.ZodOptional<z.ZodBoolean>;
|
1534
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.
|
1536
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>>;
|
1535
1537
|
idHint: z.ZodOptional<z.ZodString>;
|
1536
|
-
layer: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1538
|
+
layer: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodOptional<z.ZodString>], null>, z.ZodBoolean>]>>;
|
1537
1539
|
}, "strict", z.ZodTypeAny, {
|
1538
1540
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1539
|
-
priority?: number | undefined;
|
1540
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1541
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1542
1541
|
type?: string | RegExp | undefined;
|
1543
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1544
1542
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1545
1543
|
moduleGraph: ModuleGraph;
|
1546
1544
|
chunkGraph: ChunkGraph;
|
1547
1545
|
}, ...args: unknown[]) => boolean) | undefined;
|
1546
|
+
priority?: number | undefined;
|
1547
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1548
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1549
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1548
1550
|
defaultSizeTypes?: string[] | undefined;
|
1549
1551
|
minSize?: number | Record<string, number> | undefined;
|
1552
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1550
1553
|
maxSize?: number | Record<string, number> | undefined;
|
1551
1554
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1552
1555
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1560,17 +1563,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1560
1563
|
idHint?: string | undefined;
|
1561
1564
|
}, {
|
1562
1565
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1563
|
-
priority?: number | undefined;
|
1564
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1565
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1566
1566
|
type?: string | RegExp | undefined;
|
1567
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1568
1567
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1569
1568
|
moduleGraph: ModuleGraph;
|
1570
1569
|
chunkGraph: ChunkGraph;
|
1571
1570
|
}, ...args: unknown[]) => boolean) | undefined;
|
1571
|
+
priority?: number | undefined;
|
1572
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1573
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1574
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1572
1575
|
defaultSizeTypes?: string[] | undefined;
|
1573
1576
|
minSize?: number | Record<string, number> | undefined;
|
1577
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1574
1578
|
maxSize?: number | Record<string, number> | undefined;
|
1575
1579
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1576
1580
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1584,21 +1588,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1584
1588
|
idHint?: string | undefined;
|
1585
1589
|
}>]>>>;
|
1586
1590
|
fallbackCacheGroup: z.ZodOptional<z.ZodObject<{
|
1587
|
-
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.
|
1591
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.Schema<Chunk, z.ZodTypeDef, Chunk>], z.ZodUnknown>, z.ZodBoolean>]>>;
|
1588
1592
|
minSize: z.ZodOptional<z.ZodNumber>;
|
1589
1593
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
1590
1594
|
maxAsyncSize: z.ZodOptional<z.ZodNumber>;
|
1591
1595
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
1592
1596
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1593
1597
|
}, "strict", z.ZodTypeAny, {
|
1594
|
-
chunks?: RegExp | "
|
1598
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1595
1599
|
minSize?: number | undefined;
|
1596
1600
|
maxSize?: number | undefined;
|
1597
1601
|
maxAsyncSize?: number | undefined;
|
1598
1602
|
maxInitialSize?: number | undefined;
|
1599
1603
|
automaticNameDelimiter?: string | undefined;
|
1600
1604
|
}, {
|
1601
|
-
chunks?: RegExp | "
|
1605
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1602
1606
|
minSize?: number | undefined;
|
1603
1607
|
maxSize?: number | undefined;
|
1604
1608
|
maxAsyncSize?: number | undefined;
|
@@ -1609,21 +1613,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1609
1613
|
}, "strict", z.ZodTypeAny, {
|
1610
1614
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1611
1615
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1612
|
-
chunks?: RegExp | "
|
1616
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1613
1617
|
defaultSizeTypes?: string[] | undefined;
|
1614
1618
|
cacheGroups?: Record<string, false | {
|
1615
1619
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1616
|
-
priority?: number | undefined;
|
1617
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1618
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1619
1620
|
type?: string | RegExp | undefined;
|
1620
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1621
1621
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1622
1622
|
moduleGraph: ModuleGraph;
|
1623
1623
|
chunkGraph: ChunkGraph;
|
1624
1624
|
}, ...args: unknown[]) => boolean) | undefined;
|
1625
|
+
priority?: number | undefined;
|
1626
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1627
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1628
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1625
1629
|
defaultSizeTypes?: string[] | undefined;
|
1626
1630
|
minSize?: number | Record<string, number> | undefined;
|
1631
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1627
1632
|
maxSize?: number | Record<string, number> | undefined;
|
1628
1633
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1629
1634
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1637,7 +1642,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1637
1642
|
idHint?: string | undefined;
|
1638
1643
|
}> | undefined;
|
1639
1644
|
fallbackCacheGroup?: {
|
1640
|
-
chunks?: RegExp | "
|
1645
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1641
1646
|
minSize?: number | undefined;
|
1642
1647
|
maxSize?: number | undefined;
|
1643
1648
|
maxAsyncSize?: number | undefined;
|
@@ -1645,6 +1650,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1645
1650
|
automaticNameDelimiter?: string | undefined;
|
1646
1651
|
} | undefined;
|
1647
1652
|
minSize?: number | Record<string, number> | undefined;
|
1653
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1648
1654
|
maxSize?: number | Record<string, number> | undefined;
|
1649
1655
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1650
1656
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1657,21 +1663,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1657
1663
|
}, {
|
1658
1664
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1659
1665
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1660
|
-
chunks?: RegExp | "
|
1666
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1661
1667
|
defaultSizeTypes?: string[] | undefined;
|
1662
1668
|
cacheGroups?: Record<string, false | {
|
1663
1669
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1664
|
-
priority?: number | undefined;
|
1665
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1666
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1667
1670
|
type?: string | RegExp | undefined;
|
1668
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1669
1671
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1670
1672
|
moduleGraph: ModuleGraph;
|
1671
1673
|
chunkGraph: ChunkGraph;
|
1672
1674
|
}, ...args: unknown[]) => boolean) | undefined;
|
1675
|
+
priority?: number | undefined;
|
1676
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1677
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1678
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1673
1679
|
defaultSizeTypes?: string[] | undefined;
|
1674
1680
|
minSize?: number | Record<string, number> | undefined;
|
1681
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1675
1682
|
maxSize?: number | Record<string, number> | undefined;
|
1676
1683
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1677
1684
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1685,7 +1692,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1685
1692
|
idHint?: string | undefined;
|
1686
1693
|
}> | undefined;
|
1687
1694
|
fallbackCacheGroup?: {
|
1688
|
-
chunks?: RegExp | "
|
1695
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1689
1696
|
minSize?: number | undefined;
|
1690
1697
|
maxSize?: number | undefined;
|
1691
1698
|
maxAsyncSize?: number | undefined;
|
@@ -1693,6 +1700,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1693
1700
|
automaticNameDelimiter?: string | undefined;
|
1694
1701
|
} | undefined;
|
1695
1702
|
minSize?: number | Record<string, number> | undefined;
|
1703
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1696
1704
|
maxSize?: number | Record<string, number> | undefined;
|
1697
1705
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1698
1706
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1736,21 +1744,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1736
1744
|
splitChunks?: false | {
|
1737
1745
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1738
1746
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1739
|
-
chunks?: RegExp | "
|
1747
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1740
1748
|
defaultSizeTypes?: string[] | undefined;
|
1741
1749
|
cacheGroups?: Record<string, false | {
|
1742
1750
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1743
|
-
priority?: number | undefined;
|
1744
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1745
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1746
1751
|
type?: string | RegExp | undefined;
|
1747
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1748
1752
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1749
1753
|
moduleGraph: ModuleGraph;
|
1750
1754
|
chunkGraph: ChunkGraph;
|
1751
1755
|
}, ...args: unknown[]) => boolean) | undefined;
|
1756
|
+
priority?: number | undefined;
|
1757
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1758
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1759
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1752
1760
|
defaultSizeTypes?: string[] | undefined;
|
1753
1761
|
minSize?: number | Record<string, number> | undefined;
|
1762
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1754
1763
|
maxSize?: number | Record<string, number> | undefined;
|
1755
1764
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1756
1765
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1764,7 +1773,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1764
1773
|
idHint?: string | undefined;
|
1765
1774
|
}> | undefined;
|
1766
1775
|
fallbackCacheGroup?: {
|
1767
|
-
chunks?: RegExp | "
|
1776
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1768
1777
|
minSize?: number | undefined;
|
1769
1778
|
maxSize?: number | undefined;
|
1770
1779
|
maxAsyncSize?: number | undefined;
|
@@ -1772,6 +1781,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1772
1781
|
automaticNameDelimiter?: string | undefined;
|
1773
1782
|
} | undefined;
|
1774
1783
|
minSize?: number | Record<string, number> | undefined;
|
1784
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1775
1785
|
maxSize?: number | Record<string, number> | undefined;
|
1776
1786
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1777
1787
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1808,21 +1818,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1808
1818
|
splitChunks?: false | {
|
1809
1819
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1810
1820
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1811
|
-
chunks?: RegExp | "
|
1821
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1812
1822
|
defaultSizeTypes?: string[] | undefined;
|
1813
1823
|
cacheGroups?: Record<string, false | {
|
1814
1824
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1815
|
-
priority?: number | undefined;
|
1816
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1817
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1818
1825
|
type?: string | RegExp | undefined;
|
1819
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1820
1826
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1821
1827
|
moduleGraph: ModuleGraph;
|
1822
1828
|
chunkGraph: ChunkGraph;
|
1823
1829
|
}, ...args: unknown[]) => boolean) | undefined;
|
1830
|
+
priority?: number | undefined;
|
1831
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1832
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1833
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1824
1834
|
defaultSizeTypes?: string[] | undefined;
|
1825
1835
|
minSize?: number | Record<string, number> | undefined;
|
1836
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1826
1837
|
maxSize?: number | Record<string, number> | undefined;
|
1827
1838
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1828
1839
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1836,7 +1847,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1836
1847
|
idHint?: string | undefined;
|
1837
1848
|
}> | undefined;
|
1838
1849
|
fallbackCacheGroup?: {
|
1839
|
-
chunks?: RegExp | "
|
1850
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1840
1851
|
minSize?: number | undefined;
|
1841
1852
|
maxSize?: number | undefined;
|
1842
1853
|
maxAsyncSize?: number | undefined;
|
@@ -1844,6 +1855,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1844
1855
|
automaticNameDelimiter?: string | undefined;
|
1845
1856
|
} | undefined;
|
1846
1857
|
minSize?: number | Record<string, number> | undefined;
|
1858
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1847
1859
|
maxSize?: number | Record<string, number> | undefined;
|
1848
1860
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1849
1861
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1877,13 +1889,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1877
1889
|
emitOnErrors?: boolean | undefined;
|
1878
1890
|
avoidEntryIife?: boolean | undefined;
|
1879
1891
|
}>>;
|
1880
|
-
resolve: z.ZodOptional<z.
|
1881
|
-
resolveLoader: z.ZodOptional<z.
|
1882
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.
|
1883
|
-
devServer: z.ZodOptional<z.
|
1892
|
+
resolve: z.ZodOptional<z.Schema<t.ResolveOptions, z.ZodTypeDef, t.ResolveOptions>>;
|
1893
|
+
resolveLoader: z.ZodOptional<z.Schema<t.ResolveOptions, z.ZodTypeDef, t.ResolveOptions>>;
|
1894
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.Schema<t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction, z.ZodTypeDef, t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>;
|
1895
|
+
devServer: z.ZodOptional<z.Schema<t.DevServer, z.ZodTypeDef, t.DevServer>>;
|
1884
1896
|
module: z.ZodOptional<z.ZodObject<{
|
1885
|
-
defaultRules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">,
|
1886
|
-
rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">,
|
1897
|
+
defaultRules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">, ZodRspackCrossChecker<t.RuleSetRule>]>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>;
|
1898
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"...">, ZodRspackCrossChecker<t.RuleSetRule>]>, z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<0>, z.ZodLiteral<"">, z.ZodNull, z.ZodUndefined]>]>, "many">>;
|
1887
1899
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1888
1900
|
asset: z.ZodOptional<z.ZodObject<{
|
1889
1901
|
dataUrlCondition: z.ZodOptional<z.ZodObject<{
|
@@ -1932,7 +1944,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1932
1944
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
1933
1945
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1934
1946
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1935
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
1947
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
1936
1948
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1937
1949
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1938
1950
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -1944,12 +1956,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1944
1956
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
1945
1957
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
1946
1958
|
}, "strict", z.ZodTypeAny, {
|
1959
|
+
importMeta?: boolean | undefined;
|
1947
1960
|
url?: boolean | "relative" | undefined;
|
1948
|
-
dynamicImportMode?: "
|
1961
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
1949
1962
|
dynamicImportPreload?: number | boolean | undefined;
|
1950
1963
|
dynamicImportPrefetch?: number | boolean | undefined;
|
1951
1964
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
1952
|
-
importMeta?: boolean | undefined;
|
1953
1965
|
exprContextCritical?: boolean | undefined;
|
1954
1966
|
wrappedContextCritical?: boolean | undefined;
|
1955
1967
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -1964,12 +1976,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1964
1976
|
requireResolve?: boolean | undefined;
|
1965
1977
|
importDynamic?: boolean | undefined;
|
1966
1978
|
}, {
|
1979
|
+
importMeta?: boolean | undefined;
|
1967
1980
|
url?: boolean | "relative" | undefined;
|
1968
|
-
dynamicImportMode?: "
|
1981
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
1969
1982
|
dynamicImportPreload?: number | boolean | undefined;
|
1970
1983
|
dynamicImportPrefetch?: number | boolean | undefined;
|
1971
1984
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
1972
|
-
importMeta?: boolean | undefined;
|
1973
1985
|
exprContextCritical?: boolean | undefined;
|
1974
1986
|
wrappedContextCritical?: boolean | undefined;
|
1975
1987
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -1993,7 +2005,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1993
2005
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
1994
2006
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1995
2007
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1996
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2008
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
1997
2009
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1998
2010
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1999
2011
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2005,12 +2017,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2005
2017
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2006
2018
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2007
2019
|
}, "strict", z.ZodTypeAny, {
|
2020
|
+
importMeta?: boolean | undefined;
|
2008
2021
|
url?: boolean | "relative" | undefined;
|
2009
|
-
dynamicImportMode?: "
|
2022
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2010
2023
|
dynamicImportPreload?: number | boolean | undefined;
|
2011
2024
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2012
2025
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2013
|
-
importMeta?: boolean | undefined;
|
2014
2026
|
exprContextCritical?: boolean | undefined;
|
2015
2027
|
wrappedContextCritical?: boolean | undefined;
|
2016
2028
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2025,12 +2037,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2025
2037
|
requireResolve?: boolean | undefined;
|
2026
2038
|
importDynamic?: boolean | undefined;
|
2027
2039
|
}, {
|
2040
|
+
importMeta?: boolean | undefined;
|
2028
2041
|
url?: boolean | "relative" | undefined;
|
2029
|
-
dynamicImportMode?: "
|
2042
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2030
2043
|
dynamicImportPreload?: number | boolean | undefined;
|
2031
2044
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2032
2045
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2033
|
-
importMeta?: boolean | undefined;
|
2034
2046
|
exprContextCritical?: boolean | undefined;
|
2035
2047
|
wrappedContextCritical?: boolean | undefined;
|
2036
2048
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2054,7 +2066,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2054
2066
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
2055
2067
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2056
2068
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2057
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2069
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
2058
2070
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2059
2071
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2060
2072
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2066,12 +2078,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2066
2078
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2067
2079
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2068
2080
|
}, "strict", z.ZodTypeAny, {
|
2081
|
+
importMeta?: boolean | undefined;
|
2069
2082
|
url?: boolean | "relative" | undefined;
|
2070
|
-
dynamicImportMode?: "
|
2083
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2071
2084
|
dynamicImportPreload?: number | boolean | undefined;
|
2072
2085
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2073
2086
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2074
|
-
importMeta?: boolean | undefined;
|
2075
2087
|
exprContextCritical?: boolean | undefined;
|
2076
2088
|
wrappedContextCritical?: boolean | undefined;
|
2077
2089
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2086,12 +2098,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2086
2098
|
requireResolve?: boolean | undefined;
|
2087
2099
|
importDynamic?: boolean | undefined;
|
2088
2100
|
}, {
|
2101
|
+
importMeta?: boolean | undefined;
|
2089
2102
|
url?: boolean | "relative" | undefined;
|
2090
|
-
dynamicImportMode?: "
|
2103
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2091
2104
|
dynamicImportPreload?: number | boolean | undefined;
|
2092
2105
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2093
2106
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2094
|
-
importMeta?: boolean | undefined;
|
2095
2107
|
exprContextCritical?: boolean | undefined;
|
2096
2108
|
wrappedContextCritical?: boolean | undefined;
|
2097
2109
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2115,7 +2127,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2115
2127
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
2116
2128
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2117
2129
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2118
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2130
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
2119
2131
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2120
2132
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2121
2133
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2127,12 +2139,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2127
2139
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2128
2140
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2129
2141
|
}, "strict", z.ZodTypeAny, {
|
2142
|
+
importMeta?: boolean | undefined;
|
2130
2143
|
url?: boolean | "relative" | undefined;
|
2131
|
-
dynamicImportMode?: "
|
2144
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2132
2145
|
dynamicImportPreload?: number | boolean | undefined;
|
2133
2146
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2134
2147
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2135
|
-
importMeta?: boolean | undefined;
|
2136
2148
|
exprContextCritical?: boolean | undefined;
|
2137
2149
|
wrappedContextCritical?: boolean | undefined;
|
2138
2150
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2147,12 +2159,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2147
2159
|
requireResolve?: boolean | undefined;
|
2148
2160
|
importDynamic?: boolean | undefined;
|
2149
2161
|
}, {
|
2162
|
+
importMeta?: boolean | undefined;
|
2150
2163
|
url?: boolean | "relative" | undefined;
|
2151
|
-
dynamicImportMode?: "
|
2164
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2152
2165
|
dynamicImportPreload?: number | boolean | undefined;
|
2153
2166
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2154
2167
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2155
|
-
importMeta?: boolean | undefined;
|
2156
2168
|
exprContextCritical?: boolean | undefined;
|
2157
2169
|
wrappedContextCritical?: boolean | undefined;
|
2158
2170
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2178,12 +2190,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2178
2190
|
namedExports?: boolean | undefined;
|
2179
2191
|
} | undefined;
|
2180
2192
|
javascript?: {
|
2193
|
+
importMeta?: boolean | undefined;
|
2181
2194
|
url?: boolean | "relative" | undefined;
|
2182
|
-
dynamicImportMode?: "
|
2195
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2183
2196
|
dynamicImportPreload?: number | boolean | undefined;
|
2184
2197
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2185
2198
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2186
|
-
importMeta?: boolean | undefined;
|
2187
2199
|
exprContextCritical?: boolean | undefined;
|
2188
2200
|
wrappedContextCritical?: boolean | undefined;
|
2189
2201
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2204,12 +2216,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2204
2216
|
} | undefined;
|
2205
2217
|
} | undefined;
|
2206
2218
|
"javascript/auto"?: {
|
2219
|
+
importMeta?: boolean | undefined;
|
2207
2220
|
url?: boolean | "relative" | undefined;
|
2208
|
-
dynamicImportMode?: "
|
2221
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2209
2222
|
dynamicImportPreload?: number | boolean | undefined;
|
2210
2223
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2211
2224
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2212
|
-
importMeta?: boolean | undefined;
|
2213
2225
|
exprContextCritical?: boolean | undefined;
|
2214
2226
|
wrappedContextCritical?: boolean | undefined;
|
2215
2227
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2225,12 +2237,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2225
2237
|
importDynamic?: boolean | undefined;
|
2226
2238
|
} | undefined;
|
2227
2239
|
"javascript/dynamic"?: {
|
2240
|
+
importMeta?: boolean | undefined;
|
2228
2241
|
url?: boolean | "relative" | undefined;
|
2229
|
-
dynamicImportMode?: "
|
2242
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2230
2243
|
dynamicImportPreload?: number | boolean | undefined;
|
2231
2244
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2232
2245
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2233
|
-
importMeta?: boolean | undefined;
|
2234
2246
|
exprContextCritical?: boolean | undefined;
|
2235
2247
|
wrappedContextCritical?: boolean | undefined;
|
2236
2248
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2246,12 +2258,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2246
2258
|
importDynamic?: boolean | undefined;
|
2247
2259
|
} | undefined;
|
2248
2260
|
"javascript/esm"?: {
|
2261
|
+
importMeta?: boolean | undefined;
|
2249
2262
|
url?: boolean | "relative" | undefined;
|
2250
|
-
dynamicImportMode?: "
|
2263
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2251
2264
|
dynamicImportPreload?: number | boolean | undefined;
|
2252
2265
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2253
2266
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2254
|
-
importMeta?: boolean | undefined;
|
2255
2267
|
exprContextCritical?: boolean | undefined;
|
2256
2268
|
wrappedContextCritical?: boolean | undefined;
|
2257
2269
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2277,12 +2289,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2277
2289
|
namedExports?: boolean | undefined;
|
2278
2290
|
} | undefined;
|
2279
2291
|
javascript?: {
|
2292
|
+
importMeta?: boolean | undefined;
|
2280
2293
|
url?: boolean | "relative" | undefined;
|
2281
|
-
dynamicImportMode?: "
|
2294
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2282
2295
|
dynamicImportPreload?: number | boolean | undefined;
|
2283
2296
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2284
2297
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2285
|
-
importMeta?: boolean | undefined;
|
2286
2298
|
exprContextCritical?: boolean | undefined;
|
2287
2299
|
wrappedContextCritical?: boolean | undefined;
|
2288
2300
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2303,12 +2315,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2303
2315
|
} | undefined;
|
2304
2316
|
} | undefined;
|
2305
2317
|
"javascript/auto"?: {
|
2318
|
+
importMeta?: boolean | undefined;
|
2306
2319
|
url?: boolean | "relative" | undefined;
|
2307
|
-
dynamicImportMode?: "
|
2320
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2308
2321
|
dynamicImportPreload?: number | boolean | undefined;
|
2309
2322
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2310
2323
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2311
|
-
importMeta?: boolean | undefined;
|
2312
2324
|
exprContextCritical?: boolean | undefined;
|
2313
2325
|
wrappedContextCritical?: boolean | undefined;
|
2314
2326
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2324,12 +2336,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2324
2336
|
importDynamic?: boolean | undefined;
|
2325
2337
|
} | undefined;
|
2326
2338
|
"javascript/dynamic"?: {
|
2339
|
+
importMeta?: boolean | undefined;
|
2327
2340
|
url?: boolean | "relative" | undefined;
|
2328
|
-
dynamicImportMode?: "
|
2341
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2329
2342
|
dynamicImportPreload?: number | boolean | undefined;
|
2330
2343
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2331
2344
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2332
|
-
importMeta?: boolean | undefined;
|
2333
2345
|
exprContextCritical?: boolean | undefined;
|
2334
2346
|
wrappedContextCritical?: boolean | undefined;
|
2335
2347
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2345,12 +2357,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2345
2357
|
importDynamic?: boolean | undefined;
|
2346
2358
|
} | undefined;
|
2347
2359
|
"javascript/esm"?: {
|
2360
|
+
importMeta?: boolean | undefined;
|
2348
2361
|
url?: boolean | "relative" | undefined;
|
2349
|
-
dynamicImportMode?: "
|
2362
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2350
2363
|
dynamicImportPreload?: number | boolean | undefined;
|
2351
2364
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2352
2365
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2353
|
-
importMeta?: boolean | undefined;
|
2354
2366
|
exprContextCritical?: boolean | undefined;
|
2355
2367
|
wrappedContextCritical?: boolean | undefined;
|
2356
2368
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2367,7 +2379,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2367
2379
|
} | undefined;
|
2368
2380
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
2369
2381
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
2370
|
-
asset: z.ZodOptional<z.ZodObject<
|
2382
|
+
asset: z.ZodOptional<z.ZodObject<{
|
2371
2383
|
dataUrl: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
2372
2384
|
encoding: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"base64">]>>;
|
2373
2385
|
mimetype: z.ZodOptional<z.ZodString>;
|
@@ -2377,9 +2389,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2377
2389
|
}, {
|
2378
2390
|
mimetype?: string | undefined;
|
2379
2391
|
encoding?: false | "base64" | undefined;
|
2380
|
-
}>, z.ZodFunction<z.ZodTuple<[z.
|
2392
|
+
}>, z.ZodFunction<z.ZodTuple<[z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
2381
2393
|
filename: z.ZodString;
|
2382
|
-
module: z.
|
2394
|
+
module: z.Schema<Module, z.ZodTypeDef, Module>;
|
2383
2395
|
}, "strict", z.ZodTypeAny, {
|
2384
2396
|
module: Module;
|
2385
2397
|
filename: string;
|
@@ -2387,11 +2399,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2387
2399
|
module: Module;
|
2388
2400
|
filename: string;
|
2389
2401
|
}>], z.ZodUnknown>, z.ZodString>]>>;
|
2390
|
-
}
|
2402
|
+
} & {
|
2391
2403
|
emit: z.ZodOptional<z.ZodBoolean>;
|
2392
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
2393
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
2394
|
-
}
|
2404
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2405
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
2406
|
+
}, "strict", z.ZodTypeAny, {
|
2395
2407
|
emit?: boolean | undefined;
|
2396
2408
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2397
2409
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2424,9 +2436,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2424
2436
|
}, {
|
2425
2437
|
mimetype?: string | undefined;
|
2426
2438
|
encoding?: false | "base64" | undefined;
|
2427
|
-
}>, z.ZodFunction<z.ZodTuple<[z.
|
2439
|
+
}>, z.ZodFunction<z.ZodTuple<[z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
2428
2440
|
filename: z.ZodString;
|
2429
|
-
module: z.
|
2441
|
+
module: z.Schema<Module, z.ZodTypeDef, Module>;
|
2430
2442
|
}, "strict", z.ZodTypeAny, {
|
2431
2443
|
module: Module;
|
2432
2444
|
filename: string;
|
@@ -2453,8 +2465,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2453
2465
|
}>>;
|
2454
2466
|
"asset/resource": z.ZodOptional<z.ZodObject<{
|
2455
2467
|
emit: z.ZodOptional<z.ZodBoolean>;
|
2456
|
-
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
2457
|
-
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.
|
2468
|
+
filename: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>>;
|
2469
|
+
publicPath: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodUnion<[z.ZodString, z.ZodFunction<z.ZodTuple<[z.Schema<PathData, z.ZodTypeDef, PathData>, z.ZodOptional<z.Schema<AssetInfo, z.ZodTypeDef, AssetInfo>>], z.ZodUnknown>, z.ZodString>]>]>>;
|
2458
2470
|
}, "strict", z.ZodTypeAny, {
|
2459
2471
|
emit?: boolean | undefined;
|
2460
2472
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2606,7 +2618,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2606
2618
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2607
2619
|
} | undefined;
|
2608
2620
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
2609
|
-
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
2621
|
+
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">]>>;
|
2610
2622
|
}, "strict", z.ZodTypeAny, {
|
2611
2623
|
parser?: {
|
2612
2624
|
css?: {
|
@@ -2619,12 +2631,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2619
2631
|
namedExports?: boolean | undefined;
|
2620
2632
|
} | undefined;
|
2621
2633
|
javascript?: {
|
2634
|
+
importMeta?: boolean | undefined;
|
2622
2635
|
url?: boolean | "relative" | undefined;
|
2623
|
-
dynamicImportMode?: "
|
2636
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2624
2637
|
dynamicImportPreload?: number | boolean | undefined;
|
2625
2638
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2626
2639
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2627
|
-
importMeta?: boolean | undefined;
|
2628
2640
|
exprContextCritical?: boolean | undefined;
|
2629
2641
|
wrappedContextCritical?: boolean | undefined;
|
2630
2642
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2645,12 +2657,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2645
2657
|
} | undefined;
|
2646
2658
|
} | undefined;
|
2647
2659
|
"javascript/auto"?: {
|
2660
|
+
importMeta?: boolean | undefined;
|
2648
2661
|
url?: boolean | "relative" | undefined;
|
2649
|
-
dynamicImportMode?: "
|
2662
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2650
2663
|
dynamicImportPreload?: number | boolean | undefined;
|
2651
2664
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2652
2665
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2653
|
-
importMeta?: boolean | undefined;
|
2654
2666
|
exprContextCritical?: boolean | undefined;
|
2655
2667
|
wrappedContextCritical?: boolean | undefined;
|
2656
2668
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2666,12 +2678,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2666
2678
|
importDynamic?: boolean | undefined;
|
2667
2679
|
} | undefined;
|
2668
2680
|
"javascript/dynamic"?: {
|
2681
|
+
importMeta?: boolean | undefined;
|
2669
2682
|
url?: boolean | "relative" | undefined;
|
2670
|
-
dynamicImportMode?: "
|
2683
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2671
2684
|
dynamicImportPreload?: number | boolean | undefined;
|
2672
2685
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2673
2686
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2674
|
-
importMeta?: boolean | undefined;
|
2675
2687
|
exprContextCritical?: boolean | undefined;
|
2676
2688
|
wrappedContextCritical?: boolean | undefined;
|
2677
2689
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2687,12 +2699,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2687
2699
|
importDynamic?: boolean | undefined;
|
2688
2700
|
} | undefined;
|
2689
2701
|
"javascript/esm"?: {
|
2702
|
+
importMeta?: boolean | undefined;
|
2690
2703
|
url?: boolean | "relative" | undefined;
|
2691
|
-
dynamicImportMode?: "
|
2704
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2692
2705
|
dynamicImportPreload?: number | boolean | undefined;
|
2693
2706
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2694
2707
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2695
|
-
importMeta?: boolean | undefined;
|
2696
2708
|
exprContextCritical?: boolean | undefined;
|
2697
2709
|
wrappedContextCritical?: boolean | undefined;
|
2698
2710
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2770,12 +2782,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2770
2782
|
namedExports?: boolean | undefined;
|
2771
2783
|
} | undefined;
|
2772
2784
|
javascript?: {
|
2785
|
+
importMeta?: boolean | undefined;
|
2773
2786
|
url?: boolean | "relative" | undefined;
|
2774
|
-
dynamicImportMode?: "
|
2787
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2775
2788
|
dynamicImportPreload?: number | boolean | undefined;
|
2776
2789
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2777
2790
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2778
|
-
importMeta?: boolean | undefined;
|
2779
2791
|
exprContextCritical?: boolean | undefined;
|
2780
2792
|
wrappedContextCritical?: boolean | undefined;
|
2781
2793
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2796,12 +2808,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2796
2808
|
} | undefined;
|
2797
2809
|
} | undefined;
|
2798
2810
|
"javascript/auto"?: {
|
2811
|
+
importMeta?: boolean | undefined;
|
2799
2812
|
url?: boolean | "relative" | undefined;
|
2800
|
-
dynamicImportMode?: "
|
2813
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2801
2814
|
dynamicImportPreload?: number | boolean | undefined;
|
2802
2815
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2803
2816
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2804
|
-
importMeta?: boolean | undefined;
|
2805
2817
|
exprContextCritical?: boolean | undefined;
|
2806
2818
|
wrappedContextCritical?: boolean | undefined;
|
2807
2819
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2817,12 +2829,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2817
2829
|
importDynamic?: boolean | undefined;
|
2818
2830
|
} | undefined;
|
2819
2831
|
"javascript/dynamic"?: {
|
2832
|
+
importMeta?: boolean | undefined;
|
2820
2833
|
url?: boolean | "relative" | undefined;
|
2821
|
-
dynamicImportMode?: "
|
2834
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2822
2835
|
dynamicImportPreload?: number | boolean | undefined;
|
2823
2836
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2824
2837
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2825
|
-
importMeta?: boolean | undefined;
|
2826
2838
|
exprContextCritical?: boolean | undefined;
|
2827
2839
|
wrappedContextCritical?: boolean | undefined;
|
2828
2840
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2838,12 +2850,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2838
2850
|
importDynamic?: boolean | undefined;
|
2839
2851
|
} | undefined;
|
2840
2852
|
"javascript/esm"?: {
|
2853
|
+
importMeta?: boolean | undefined;
|
2841
2854
|
url?: boolean | "relative" | undefined;
|
2842
|
-
dynamicImportMode?: "
|
2855
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2843
2856
|
dynamicImportPreload?: number | boolean | undefined;
|
2844
2857
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2845
2858
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2846
|
-
importMeta?: boolean | undefined;
|
2847
2859
|
exprContextCritical?: boolean | undefined;
|
2848
2860
|
wrappedContextCritical?: boolean | undefined;
|
2849
2861
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2931,7 +2943,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2931
2943
|
}>, z.ZodLiteral<false>]>>;
|
2932
2944
|
}, "strict", z.ZodTypeAny, {
|
2933
2945
|
name?: string | undefined;
|
2934
|
-
resolve?: t.ResolveOptions | undefined;
|
2935
2946
|
module?: {
|
2936
2947
|
parser?: {
|
2937
2948
|
css?: {
|
@@ -2944,12 +2955,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2944
2955
|
namedExports?: boolean | undefined;
|
2945
2956
|
} | undefined;
|
2946
2957
|
javascript?: {
|
2958
|
+
importMeta?: boolean | undefined;
|
2947
2959
|
url?: boolean | "relative" | undefined;
|
2948
|
-
dynamicImportMode?: "
|
2960
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2949
2961
|
dynamicImportPreload?: number | boolean | undefined;
|
2950
2962
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2951
2963
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2952
|
-
importMeta?: boolean | undefined;
|
2953
2964
|
exprContextCritical?: boolean | undefined;
|
2954
2965
|
wrappedContextCritical?: boolean | undefined;
|
2955
2966
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2970,12 +2981,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2970
2981
|
} | undefined;
|
2971
2982
|
} | undefined;
|
2972
2983
|
"javascript/auto"?: {
|
2984
|
+
importMeta?: boolean | undefined;
|
2973
2985
|
url?: boolean | "relative" | undefined;
|
2974
|
-
dynamicImportMode?: "
|
2986
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2975
2987
|
dynamicImportPreload?: number | boolean | undefined;
|
2976
2988
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2977
2989
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2978
|
-
importMeta?: boolean | undefined;
|
2979
2990
|
exprContextCritical?: boolean | undefined;
|
2980
2991
|
wrappedContextCritical?: boolean | undefined;
|
2981
2992
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2991,12 +3002,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2991
3002
|
importDynamic?: boolean | undefined;
|
2992
3003
|
} | undefined;
|
2993
3004
|
"javascript/dynamic"?: {
|
3005
|
+
importMeta?: boolean | undefined;
|
2994
3006
|
url?: boolean | "relative" | undefined;
|
2995
|
-
dynamicImportMode?: "
|
3007
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2996
3008
|
dynamicImportPreload?: number | boolean | undefined;
|
2997
3009
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2998
3010
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2999
|
-
importMeta?: boolean | undefined;
|
3000
3011
|
exprContextCritical?: boolean | undefined;
|
3001
3012
|
wrappedContextCritical?: boolean | undefined;
|
3002
3013
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3012,12 +3023,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3012
3023
|
importDynamic?: boolean | undefined;
|
3013
3024
|
} | undefined;
|
3014
3025
|
"javascript/esm"?: {
|
3026
|
+
importMeta?: boolean | undefined;
|
3015
3027
|
url?: boolean | "relative" | undefined;
|
3016
|
-
dynamicImportMode?: "
|
3028
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3017
3029
|
dynamicImportPreload?: number | boolean | undefined;
|
3018
3030
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3019
3031
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3020
|
-
importMeta?: boolean | undefined;
|
3021
3032
|
exprContextCritical?: boolean | undefined;
|
3022
3033
|
wrappedContextCritical?: boolean | undefined;
|
3023
3034
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3084,197 +3095,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3084
3095
|
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3085
3096
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3086
3097
|
} | undefined;
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
|
3095
|
-
|
3096
|
-
|
3097
|
-
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
|
3103
|
-
} | undefined;
|
3104
|
-
mode?: "none" | "development" | "production" | undefined;
|
3105
|
-
experiments?: {
|
3106
|
-
css?: boolean | undefined;
|
3107
|
-
cache?: boolean | {
|
3108
|
-
type: "memory";
|
3109
|
-
} | {
|
3110
|
-
type: "persistent";
|
3111
|
-
version?: string | undefined;
|
3112
|
-
buildDependencies?: string[] | undefined;
|
3113
|
-
snapshot?: {
|
3114
|
-
immutablePaths?: (string | RegExp)[] | undefined;
|
3115
|
-
unmanagedPaths?: (string | RegExp)[] | undefined;
|
3116
|
-
managedPaths?: (string | RegExp)[] | undefined;
|
3098
|
+
resolve?: t.ResolveOptions | undefined;
|
3099
|
+
entry?: string | string[] | Record<string, string | string[] | {
|
3100
|
+
import: string | string[];
|
3101
|
+
runtime?: string | false | undefined;
|
3102
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3103
|
+
layer?: string | null | undefined;
|
3104
|
+
baseUri?: string | undefined;
|
3105
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3106
|
+
chunkLoading?: string | false | undefined;
|
3107
|
+
asyncChunks?: boolean | undefined;
|
3108
|
+
library?: {
|
3109
|
+
type: string;
|
3110
|
+
name?: string | string[] | {
|
3111
|
+
commonjs?: string | undefined;
|
3112
|
+
amd?: string | undefined;
|
3113
|
+
root?: string | string[] | undefined;
|
3117
3114
|
} | undefined;
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3115
|
+
amdContainer?: string | undefined;
|
3116
|
+
auxiliaryComment?: string | {
|
3117
|
+
commonjs?: string | undefined;
|
3118
|
+
amd?: string | undefined;
|
3119
|
+
commonjs2?: string | undefined;
|
3120
|
+
root?: string | undefined;
|
3121
3121
|
} | undefined;
|
3122
|
-
|
3123
|
-
|
3124
|
-
entries?: boolean | undefined;
|
3125
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3126
|
-
imports?: boolean | undefined;
|
3127
|
-
client?: string | undefined;
|
3128
|
-
serverUrl?: string | undefined;
|
3129
|
-
} | undefined;
|
3130
|
-
asyncWebAssembly?: boolean | undefined;
|
3131
|
-
outputModule?: boolean | undefined;
|
3132
|
-
topLevelAwait?: boolean | undefined;
|
3133
|
-
layers?: boolean | undefined;
|
3134
|
-
incremental?: boolean | {
|
3135
|
-
make?: boolean | undefined;
|
3136
|
-
providedExports?: boolean | undefined;
|
3137
|
-
sideEffects?: boolean | undefined;
|
3138
|
-
moduleIds?: boolean | undefined;
|
3139
|
-
chunkIds?: boolean | undefined;
|
3140
|
-
inferAsyncModules?: boolean | undefined;
|
3141
|
-
dependenciesDiagnostics?: boolean | undefined;
|
3142
|
-
buildChunkGraph?: boolean | undefined;
|
3143
|
-
modulesHashes?: boolean | undefined;
|
3144
|
-
modulesCodegen?: boolean | undefined;
|
3145
|
-
modulesRuntimeRequirements?: boolean | undefined;
|
3146
|
-
chunksRuntimeRequirements?: boolean | undefined;
|
3147
|
-
chunksHashes?: boolean | undefined;
|
3148
|
-
chunksRender?: boolean | undefined;
|
3149
|
-
emitAssets?: boolean | undefined;
|
3150
|
-
} | undefined;
|
3151
|
-
parallelCodeSplitting?: boolean | undefined;
|
3152
|
-
futureDefaults?: boolean | undefined;
|
3153
|
-
rspackFuture?: {
|
3154
|
-
bundlerInfo?: {
|
3155
|
-
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3156
|
-
version?: string | undefined;
|
3157
|
-
bundler?: string | undefined;
|
3158
|
-
} | undefined;
|
3159
|
-
} | undefined;
|
3160
|
-
buildHttp?: {
|
3161
|
-
allowedUris: (string | RegExp)[];
|
3162
|
-
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
3163
|
-
status: number;
|
3164
|
-
body: Buffer<ArrayBufferLike>;
|
3165
|
-
headers: Record<string, string>;
|
3166
|
-
}>) | undefined;
|
3167
|
-
lockfileLocation?: string | undefined;
|
3168
|
-
cacheLocation?: string | false | undefined;
|
3169
|
-
upgrade?: boolean | undefined;
|
3170
|
-
} | undefined;
|
3171
|
-
parallelLoader?: boolean | undefined;
|
3172
|
-
} | undefined;
|
3173
|
-
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;
|
3174
|
-
stats?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3175
|
-
ids?: boolean | undefined;
|
3176
|
-
runtime?: boolean | undefined;
|
3177
|
-
hash?: boolean | undefined;
|
3178
|
-
modules?: boolean | undefined;
|
3179
|
-
publicPath?: boolean | undefined;
|
3180
|
-
chunks?: boolean | undefined;
|
3181
|
-
source?: boolean | undefined;
|
3182
|
-
all?: boolean | undefined;
|
3183
|
-
usedExports?: boolean | undefined;
|
3184
|
-
assets?: boolean | undefined;
|
3185
|
-
version?: boolean | undefined;
|
3186
|
-
preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3187
|
-
entrypoints?: boolean | "auto" | undefined;
|
3188
|
-
chunkGroups?: boolean | undefined;
|
3189
|
-
warnings?: boolean | undefined;
|
3190
|
-
warningsCount?: boolean | undefined;
|
3191
|
-
errors?: boolean | undefined;
|
3192
|
-
errorsCount?: boolean | undefined;
|
3193
|
-
colors?: boolean | undefined;
|
3194
|
-
reasons?: boolean | undefined;
|
3195
|
-
outputPath?: boolean | undefined;
|
3196
|
-
chunkModules?: boolean | undefined;
|
3197
|
-
chunkRelations?: boolean | undefined;
|
3198
|
-
timings?: boolean | undefined;
|
3199
|
-
builtAt?: boolean | undefined;
|
3200
|
-
moduleAssets?: boolean | undefined;
|
3201
|
-
nestedModules?: boolean | undefined;
|
3202
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
3203
|
-
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3204
|
-
loggingTrace?: boolean | undefined;
|
3205
|
-
runtimeModules?: boolean | undefined;
|
3206
|
-
children?: boolean | undefined;
|
3207
|
-
providedExports?: boolean | undefined;
|
3208
|
-
optimizationBailout?: boolean | undefined;
|
3209
|
-
groupModulesByType?: boolean | undefined;
|
3210
|
-
groupModulesByCacheStatus?: boolean | undefined;
|
3211
|
-
groupModulesByLayer?: boolean | undefined;
|
3212
|
-
groupModulesByAttributes?: boolean | undefined;
|
3213
|
-
groupModulesByPath?: boolean | undefined;
|
3214
|
-
groupModulesByExtension?: boolean | undefined;
|
3215
|
-
modulesSpace?: number | undefined;
|
3216
|
-
chunkModulesSpace?: number | undefined;
|
3217
|
-
nestedModulesSpace?: number | undefined;
|
3218
|
-
relatedAssets?: boolean | undefined;
|
3219
|
-
groupAssetsByEmitStatus?: boolean | undefined;
|
3220
|
-
groupAssetsByInfo?: boolean | undefined;
|
3221
|
-
groupAssetsByPath?: boolean | undefined;
|
3222
|
-
groupAssetsByExtension?: boolean | undefined;
|
3223
|
-
groupAssetsByChunk?: boolean | undefined;
|
3224
|
-
assetsSpace?: number | undefined;
|
3225
|
-
orphanModules?: boolean | undefined;
|
3226
|
-
excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined;
|
3227
|
-
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3228
|
-
modulesSort?: string | undefined;
|
3229
|
-
chunkModulesSort?: string | undefined;
|
3230
|
-
nestedModulesSort?: string | undefined;
|
3231
|
-
chunksSort?: string | undefined;
|
3232
|
-
assetsSort?: string | undefined;
|
3233
|
-
performance?: boolean | undefined;
|
3234
|
-
env?: boolean | undefined;
|
3235
|
-
chunkGroupAuxiliary?: boolean | undefined;
|
3236
|
-
chunkGroupChildren?: boolean | undefined;
|
3237
|
-
chunkGroupMaxAssets?: number | undefined;
|
3238
|
-
dependentModules?: boolean | undefined;
|
3239
|
-
chunkOrigins?: boolean | undefined;
|
3240
|
-
depth?: boolean | undefined;
|
3241
|
-
reasonsSpace?: number | undefined;
|
3242
|
-
groupReasonsByOrigin?: boolean | undefined;
|
3243
|
-
errorDetails?: boolean | undefined;
|
3244
|
-
errorStack?: boolean | undefined;
|
3245
|
-
moduleTrace?: boolean | undefined;
|
3246
|
-
cachedModules?: boolean | undefined;
|
3247
|
-
cachedAssets?: boolean | undefined;
|
3248
|
-
cached?: boolean | undefined;
|
3249
|
-
errorsSpace?: number | undefined;
|
3250
|
-
warningsSpace?: number | undefined;
|
3251
|
-
} | undefined;
|
3252
|
-
dependencies?: string[] | undefined;
|
3253
|
-
entry?: string | string[] | Record<string, string | string[] | {
|
3254
|
-
import: string | string[];
|
3255
|
-
runtime?: string | false | undefined;
|
3256
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3257
|
-
layer?: string | null | undefined;
|
3258
|
-
baseUri?: string | undefined;
|
3259
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3260
|
-
chunkLoading?: string | false | undefined;
|
3261
|
-
asyncChunks?: boolean | undefined;
|
3262
|
-
library?: {
|
3263
|
-
type: string;
|
3264
|
-
name?: string | string[] | {
|
3265
|
-
commonjs?: string | undefined;
|
3266
|
-
amd?: string | undefined;
|
3267
|
-
root?: string | string[] | undefined;
|
3268
|
-
} | undefined;
|
3269
|
-
amdContainer?: string | undefined;
|
3270
|
-
auxiliaryComment?: string | {
|
3271
|
-
commonjs?: string | undefined;
|
3272
|
-
commonjs2?: string | undefined;
|
3273
|
-
amd?: string | undefined;
|
3274
|
-
root?: string | undefined;
|
3275
|
-
} | undefined;
|
3276
|
-
export?: string | string[] | undefined;
|
3277
|
-
umdNamedDefine?: boolean | undefined;
|
3122
|
+
export?: string | string[] | undefined;
|
3123
|
+
umdNamedDefine?: boolean | undefined;
|
3278
3124
|
} | undefined;
|
3279
3125
|
dependOn?: string | string[] | undefined;
|
3280
3126
|
wasmLoading?: string | false | undefined;
|
@@ -3297,8 +3143,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3297
3143
|
amdContainer?: string | undefined;
|
3298
3144
|
auxiliaryComment?: string | {
|
3299
3145
|
commonjs?: string | undefined;
|
3300
|
-
commonjs2?: string | undefined;
|
3301
3146
|
amd?: string | undefined;
|
3147
|
+
commonjs2?: string | undefined;
|
3302
3148
|
root?: string | undefined;
|
3303
3149
|
} | undefined;
|
3304
3150
|
export?: string | string[] | undefined;
|
@@ -3325,8 +3171,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3325
3171
|
amdContainer?: string | undefined;
|
3326
3172
|
auxiliaryComment?: string | {
|
3327
3173
|
commonjs?: string | undefined;
|
3328
|
-
commonjs2?: string | undefined;
|
3329
3174
|
amd?: string | undefined;
|
3175
|
+
commonjs2?: string | undefined;
|
3330
3176
|
root?: string | undefined;
|
3331
3177
|
} | undefined;
|
3332
3178
|
export?: string | string[] | undefined;
|
@@ -3335,33 +3181,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3335
3181
|
dependOn?: string | string[] | undefined;
|
3336
3182
|
wasmLoading?: string | false | undefined;
|
3337
3183
|
}>>) | undefined;
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3184
|
+
mode?: "development" | "none" | "production" | undefined;
|
3185
|
+
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | `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}` | "webworker" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | `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}` | "webworker" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
|
3186
|
+
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3187
|
+
node?: false | {
|
3188
|
+
global?: boolean | "warn" | undefined;
|
3189
|
+
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3190
|
+
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3345
3191
|
} | undefined;
|
3346
|
-
|
3347
|
-
|
3348
|
-
|
3192
|
+
amd?: false | Record<string, any> | undefined;
|
3193
|
+
profile?: boolean | undefined;
|
3194
|
+
cache?: boolean | undefined;
|
3195
|
+
context?: string | undefined;
|
3196
|
+
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" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "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" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "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;
|
3197
|
+
watch?: boolean | undefined;
|
3349
3198
|
output?: {
|
3350
3199
|
module?: boolean | undefined;
|
3200
|
+
path?: string | undefined;
|
3351
3201
|
environment?: {
|
3352
3202
|
module?: boolean | undefined;
|
3203
|
+
dynamicImport?: boolean | undefined;
|
3204
|
+
optionalChaining?: boolean | undefined;
|
3353
3205
|
arrowFunction?: boolean | undefined;
|
3354
3206
|
asyncFunction?: boolean | undefined;
|
3355
3207
|
bigIntLiteral?: boolean | undefined;
|
3356
3208
|
const?: boolean | undefined;
|
3357
3209
|
destructuring?: boolean | undefined;
|
3358
3210
|
document?: boolean | undefined;
|
3359
|
-
dynamicImport?: boolean | undefined;
|
3360
3211
|
dynamicImportInWorker?: boolean | undefined;
|
3361
3212
|
forOf?: boolean | undefined;
|
3362
3213
|
globalThis?: boolean | undefined;
|
3363
3214
|
nodePrefixForCoreModules?: boolean | undefined;
|
3364
|
-
optionalChaining?: boolean | undefined;
|
3365
3215
|
templateLiteral?: boolean | undefined;
|
3366
3216
|
} | undefined;
|
3367
3217
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3383,20 +3233,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3383
3233
|
amdContainer?: string | undefined;
|
3384
3234
|
auxiliaryComment?: string | {
|
3385
3235
|
commonjs?: string | undefined;
|
3386
|
-
commonjs2?: string | undefined;
|
3387
3236
|
amd?: string | undefined;
|
3237
|
+
commonjs2?: string | undefined;
|
3388
3238
|
root?: string | undefined;
|
3389
3239
|
} | undefined;
|
3390
3240
|
export?: string | string[] | undefined;
|
3391
3241
|
umdNamedDefine?: boolean | undefined;
|
3392
3242
|
} | undefined;
|
3393
|
-
path?: string | undefined;
|
3394
3243
|
wasmLoading?: string | false | undefined;
|
3395
3244
|
cssHeadDataCompression?: boolean | undefined;
|
3396
3245
|
auxiliaryComment?: string | {
|
3397
3246
|
commonjs?: string | undefined;
|
3398
|
-
commonjs2?: string | undefined;
|
3399
3247
|
amd?: string | undefined;
|
3248
|
+
commonjs2?: string | undefined;
|
3400
3249
|
root?: string | undefined;
|
3401
3250
|
} | undefined;
|
3402
3251
|
umdNamedDefine?: boolean | undefined;
|
@@ -3430,23 +3279,188 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3430
3279
|
policyName?: string | undefined;
|
3431
3280
|
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
3432
3281
|
} | undefined;
|
3433
|
-
sourceMapFilename?: string | undefined;
|
3434
|
-
hashDigest?: string | undefined;
|
3435
|
-
hashDigestLength?: number | undefined;
|
3436
|
-
hashFunction?: "md4" | "xxhash64" | undefined;
|
3437
|
-
hashSalt?: string | undefined;
|
3438
|
-
workerChunkLoading?: string | false | undefined;
|
3439
|
-
workerWasmLoading?: string | false | undefined;
|
3440
|
-
workerPublicPath?: string | undefined;
|
3441
|
-
scriptType?: false | "module" | "text/javascript" | undefined;
|
3442
|
-
devtoolNamespace?: string | undefined;
|
3443
|
-
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3444
|
-
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3445
|
-
chunkLoadTimeout?: number | undefined;
|
3446
|
-
charset?: boolean | undefined;
|
3447
|
-
compareBeforeEmit?: boolean | undefined;
|
3282
|
+
sourceMapFilename?: string | undefined;
|
3283
|
+
hashDigest?: string | undefined;
|
3284
|
+
hashDigestLength?: number | undefined;
|
3285
|
+
hashFunction?: "md4" | "xxhash64" | undefined;
|
3286
|
+
hashSalt?: string | undefined;
|
3287
|
+
workerChunkLoading?: string | false | undefined;
|
3288
|
+
workerWasmLoading?: string | false | undefined;
|
3289
|
+
workerPublicPath?: string | undefined;
|
3290
|
+
scriptType?: false | "module" | "text/javascript" | undefined;
|
3291
|
+
devtoolNamespace?: string | undefined;
|
3292
|
+
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3293
|
+
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3294
|
+
chunkLoadTimeout?: number | undefined;
|
3295
|
+
charset?: boolean | undefined;
|
3296
|
+
compareBeforeEmit?: boolean | undefined;
|
3297
|
+
} | undefined;
|
3298
|
+
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3299
|
+
ids?: boolean | undefined;
|
3300
|
+
runtime?: boolean | undefined;
|
3301
|
+
hash?: boolean | undefined;
|
3302
|
+
modules?: boolean | undefined;
|
3303
|
+
all?: boolean | undefined;
|
3304
|
+
outputPath?: boolean | undefined;
|
3305
|
+
env?: boolean | undefined;
|
3306
|
+
publicPath?: boolean | undefined;
|
3307
|
+
chunks?: boolean | undefined;
|
3308
|
+
source?: boolean | undefined;
|
3309
|
+
usedExports?: boolean | undefined;
|
3310
|
+
assets?: boolean | undefined;
|
3311
|
+
version?: boolean | undefined;
|
3312
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3313
|
+
entrypoints?: boolean | "auto" | undefined;
|
3314
|
+
chunkGroups?: boolean | undefined;
|
3315
|
+
warnings?: boolean | undefined;
|
3316
|
+
warningsCount?: boolean | undefined;
|
3317
|
+
errors?: boolean | undefined;
|
3318
|
+
errorsCount?: boolean | undefined;
|
3319
|
+
colors?: boolean | undefined;
|
3320
|
+
reasons?: boolean | undefined;
|
3321
|
+
chunkModules?: boolean | undefined;
|
3322
|
+
chunkRelations?: boolean | undefined;
|
3323
|
+
timings?: boolean | undefined;
|
3324
|
+
builtAt?: boolean | undefined;
|
3325
|
+
moduleAssets?: boolean | undefined;
|
3326
|
+
nestedModules?: boolean | undefined;
|
3327
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3328
|
+
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3329
|
+
loggingTrace?: boolean | undefined;
|
3330
|
+
runtimeModules?: boolean | undefined;
|
3331
|
+
children?: boolean | undefined;
|
3332
|
+
providedExports?: boolean | undefined;
|
3333
|
+
optimizationBailout?: boolean | undefined;
|
3334
|
+
groupModulesByType?: boolean | undefined;
|
3335
|
+
groupModulesByCacheStatus?: boolean | undefined;
|
3336
|
+
groupModulesByLayer?: boolean | undefined;
|
3337
|
+
groupModulesByAttributes?: boolean | undefined;
|
3338
|
+
groupModulesByPath?: boolean | undefined;
|
3339
|
+
groupModulesByExtension?: boolean | undefined;
|
3340
|
+
modulesSpace?: number | undefined;
|
3341
|
+
chunkModulesSpace?: number | undefined;
|
3342
|
+
nestedModulesSpace?: number | undefined;
|
3343
|
+
relatedAssets?: boolean | undefined;
|
3344
|
+
groupAssetsByEmitStatus?: boolean | undefined;
|
3345
|
+
groupAssetsByInfo?: boolean | undefined;
|
3346
|
+
groupAssetsByPath?: boolean | undefined;
|
3347
|
+
groupAssetsByExtension?: boolean | undefined;
|
3348
|
+
groupAssetsByChunk?: boolean | undefined;
|
3349
|
+
assetsSpace?: number | undefined;
|
3350
|
+
orphanModules?: boolean | undefined;
|
3351
|
+
excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined;
|
3352
|
+
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3353
|
+
modulesSort?: string | undefined;
|
3354
|
+
chunkModulesSort?: string | undefined;
|
3355
|
+
nestedModulesSort?: string | undefined;
|
3356
|
+
chunksSort?: string | undefined;
|
3357
|
+
assetsSort?: string | undefined;
|
3358
|
+
performance?: boolean | undefined;
|
3359
|
+
chunkGroupAuxiliary?: boolean | undefined;
|
3360
|
+
chunkGroupChildren?: boolean | undefined;
|
3361
|
+
chunkGroupMaxAssets?: number | undefined;
|
3362
|
+
dependentModules?: boolean | undefined;
|
3363
|
+
chunkOrigins?: boolean | undefined;
|
3364
|
+
depth?: boolean | undefined;
|
3365
|
+
reasonsSpace?: number | undefined;
|
3366
|
+
groupReasonsByOrigin?: boolean | undefined;
|
3367
|
+
errorDetails?: boolean | undefined;
|
3368
|
+
errorStack?: boolean | undefined;
|
3369
|
+
moduleTrace?: boolean | undefined;
|
3370
|
+
cachedModules?: boolean | undefined;
|
3371
|
+
cachedAssets?: boolean | undefined;
|
3372
|
+
cached?: boolean | undefined;
|
3373
|
+
errorsSpace?: number | undefined;
|
3374
|
+
warningsSpace?: number | undefined;
|
3375
|
+
} | undefined;
|
3376
|
+
performance?: false | {
|
3377
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
3378
|
+
hints?: false | "error" | "warning" | undefined;
|
3379
|
+
maxAssetSize?: number | undefined;
|
3380
|
+
maxEntrypointSize?: number | undefined;
|
3381
|
+
} | undefined;
|
3382
|
+
experiments?: {
|
3383
|
+
css?: boolean | undefined;
|
3384
|
+
topLevelAwait?: boolean | undefined;
|
3385
|
+
cache?: boolean | {
|
3386
|
+
type: "memory";
|
3387
|
+
} | {
|
3388
|
+
type: "persistent";
|
3389
|
+
version?: string | undefined;
|
3390
|
+
buildDependencies?: string[] | undefined;
|
3391
|
+
snapshot?: {
|
3392
|
+
immutablePaths?: (string | RegExp)[] | undefined;
|
3393
|
+
unmanagedPaths?: (string | RegExp)[] | undefined;
|
3394
|
+
managedPaths?: (string | RegExp)[] | undefined;
|
3395
|
+
} | undefined;
|
3396
|
+
storage?: {
|
3397
|
+
type: "filesystem";
|
3398
|
+
directory?: string | undefined;
|
3399
|
+
} | undefined;
|
3400
|
+
} | undefined;
|
3401
|
+
lazyCompilation?: boolean | {
|
3402
|
+
entries?: boolean | undefined;
|
3403
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3404
|
+
serverUrl?: string | undefined;
|
3405
|
+
imports?: boolean | undefined;
|
3406
|
+
client?: string | undefined;
|
3407
|
+
} | undefined;
|
3408
|
+
asyncWebAssembly?: boolean | undefined;
|
3409
|
+
outputModule?: boolean | undefined;
|
3410
|
+
layers?: boolean | undefined;
|
3411
|
+
incremental?: boolean | {
|
3412
|
+
make?: boolean | undefined;
|
3413
|
+
providedExports?: boolean | undefined;
|
3414
|
+
sideEffects?: boolean | undefined;
|
3415
|
+
moduleIds?: boolean | undefined;
|
3416
|
+
chunkIds?: boolean | undefined;
|
3417
|
+
inferAsyncModules?: boolean | undefined;
|
3418
|
+
dependenciesDiagnostics?: boolean | undefined;
|
3419
|
+
buildChunkGraph?: boolean | undefined;
|
3420
|
+
modulesHashes?: boolean | undefined;
|
3421
|
+
modulesCodegen?: boolean | undefined;
|
3422
|
+
modulesRuntimeRequirements?: boolean | undefined;
|
3423
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
3424
|
+
chunksHashes?: boolean | undefined;
|
3425
|
+
chunksRender?: boolean | undefined;
|
3426
|
+
emitAssets?: boolean | undefined;
|
3427
|
+
} | undefined;
|
3428
|
+
parallelCodeSplitting?: boolean | undefined;
|
3429
|
+
futureDefaults?: boolean | undefined;
|
3430
|
+
rspackFuture?: {
|
3431
|
+
bundlerInfo?: {
|
3432
|
+
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3433
|
+
version?: string | undefined;
|
3434
|
+
bundler?: string | undefined;
|
3435
|
+
} | undefined;
|
3436
|
+
} | undefined;
|
3437
|
+
buildHttp?: {
|
3438
|
+
allowedUris: (string | RegExp)[];
|
3439
|
+
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
3440
|
+
status: number;
|
3441
|
+
body: Buffer<ArrayBufferLike>;
|
3442
|
+
headers: Record<string, string>;
|
3443
|
+
}>) | undefined;
|
3444
|
+
lockfileLocation?: string | undefined;
|
3445
|
+
cacheLocation?: string | false | undefined;
|
3446
|
+
upgrade?: boolean | undefined;
|
3447
|
+
} | undefined;
|
3448
|
+
parallelLoader?: boolean | undefined;
|
3449
|
+
} | undefined;
|
3450
|
+
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;
|
3451
|
+
loader?: Record<string, any> | undefined;
|
3452
|
+
dependencies?: string[] | undefined;
|
3453
|
+
infrastructureLogging?: {
|
3454
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3455
|
+
colors?: boolean | undefined;
|
3456
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3457
|
+
console?: Console | undefined;
|
3458
|
+
appendOnly?: boolean | undefined;
|
3459
|
+
stream?: NodeJS.WritableStream | undefined;
|
3448
3460
|
} | undefined;
|
3449
|
-
|
3461
|
+
snapshot?: {} | undefined;
|
3462
|
+
extends?: string | string[] | undefined;
|
3463
|
+
externalsType?: "module" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
|
3450
3464
|
externalsPresets?: {
|
3451
3465
|
node?: boolean | undefined;
|
3452
3466
|
web?: boolean | undefined;
|
@@ -3459,32 +3473,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3459
3473
|
} | undefined;
|
3460
3474
|
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
3461
3475
|
watchOptions?: {
|
3476
|
+
ignored?: string | RegExp | string[] | undefined;
|
3462
3477
|
aggregateTimeout?: number | undefined;
|
3463
3478
|
followSymlinks?: boolean | undefined;
|
3464
|
-
ignored?: string | RegExp | string[] | undefined;
|
3465
3479
|
poll?: number | boolean | undefined;
|
3466
3480
|
stdin?: boolean | undefined;
|
3467
3481
|
} | undefined;
|
3468
|
-
watch?: boolean | undefined;
|
3469
3482
|
optimization?: {
|
3470
3483
|
splitChunks?: false | {
|
3471
3484
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
3472
3485
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3473
|
-
chunks?: RegExp | "
|
3486
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3474
3487
|
defaultSizeTypes?: string[] | undefined;
|
3475
3488
|
cacheGroups?: Record<string, false | {
|
3476
3489
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
3477
|
-
priority?: number | undefined;
|
3478
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
3479
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3480
3490
|
type?: string | RegExp | undefined;
|
3481
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3482
3491
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
3483
3492
|
moduleGraph: ModuleGraph;
|
3484
3493
|
chunkGraph: ChunkGraph;
|
3485
3494
|
}, ...args: unknown[]) => boolean) | undefined;
|
3495
|
+
priority?: number | undefined;
|
3496
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
3497
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3498
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3486
3499
|
defaultSizeTypes?: string[] | undefined;
|
3487
3500
|
minSize?: number | Record<string, number> | undefined;
|
3501
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
3488
3502
|
maxSize?: number | Record<string, number> | undefined;
|
3489
3503
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
3490
3504
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -3498,7 +3512,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3498
3512
|
idHint?: string | undefined;
|
3499
3513
|
}> | undefined;
|
3500
3514
|
fallbackCacheGroup?: {
|
3501
|
-
chunks?: RegExp | "
|
3515
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3502
3516
|
minSize?: number | undefined;
|
3503
3517
|
maxSize?: number | undefined;
|
3504
3518
|
maxAsyncSize?: number | undefined;
|
@@ -3506,6 +3520,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3506
3520
|
automaticNameDelimiter?: string | undefined;
|
3507
3521
|
} | undefined;
|
3508
3522
|
minSize?: number | Record<string, number> | undefined;
|
3523
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
3509
3524
|
maxSize?: number | Record<string, number> | undefined;
|
3510
3525
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
3511
3526
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -3540,12 +3555,10 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3540
3555
|
avoidEntryIife?: boolean | undefined;
|
3541
3556
|
} | undefined;
|
3542
3557
|
resolveLoader?: t.ResolveOptions | undefined;
|
3543
|
-
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3544
3558
|
devServer?: t.DevServer | undefined;
|
3545
3559
|
bail?: boolean | undefined;
|
3546
3560
|
}, {
|
3547
3561
|
name?: string | undefined;
|
3548
|
-
resolve?: t.ResolveOptions | undefined;
|
3549
3562
|
module?: {
|
3550
3563
|
parser?: {
|
3551
3564
|
css?: {
|
@@ -3558,12 +3571,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3558
3571
|
namedExports?: boolean | undefined;
|
3559
3572
|
} | undefined;
|
3560
3573
|
javascript?: {
|
3574
|
+
importMeta?: boolean | undefined;
|
3561
3575
|
url?: boolean | "relative" | undefined;
|
3562
|
-
dynamicImportMode?: "
|
3576
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3563
3577
|
dynamicImportPreload?: number | boolean | undefined;
|
3564
3578
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3565
3579
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3566
|
-
importMeta?: boolean | undefined;
|
3567
3580
|
exprContextCritical?: boolean | undefined;
|
3568
3581
|
wrappedContextCritical?: boolean | undefined;
|
3569
3582
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3584,12 +3597,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3584
3597
|
} | undefined;
|
3585
3598
|
} | undefined;
|
3586
3599
|
"javascript/auto"?: {
|
3600
|
+
importMeta?: boolean | undefined;
|
3587
3601
|
url?: boolean | "relative" | undefined;
|
3588
|
-
dynamicImportMode?: "
|
3602
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3589
3603
|
dynamicImportPreload?: number | boolean | undefined;
|
3590
3604
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3591
3605
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3592
|
-
importMeta?: boolean | undefined;
|
3593
3606
|
exprContextCritical?: boolean | undefined;
|
3594
3607
|
wrappedContextCritical?: boolean | undefined;
|
3595
3608
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3605,12 +3618,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3605
3618
|
importDynamic?: boolean | undefined;
|
3606
3619
|
} | undefined;
|
3607
3620
|
"javascript/dynamic"?: {
|
3621
|
+
importMeta?: boolean | undefined;
|
3608
3622
|
url?: boolean | "relative" | undefined;
|
3609
|
-
dynamicImportMode?: "
|
3623
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3610
3624
|
dynamicImportPreload?: number | boolean | undefined;
|
3611
3625
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3612
3626
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3613
|
-
importMeta?: boolean | undefined;
|
3614
3627
|
exprContextCritical?: boolean | undefined;
|
3615
3628
|
wrappedContextCritical?: boolean | undefined;
|
3616
3629
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3626,12 +3639,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3626
3639
|
importDynamic?: boolean | undefined;
|
3627
3640
|
} | undefined;
|
3628
3641
|
"javascript/esm"?: {
|
3642
|
+
importMeta?: boolean | undefined;
|
3629
3643
|
url?: boolean | "relative" | undefined;
|
3630
|
-
dynamicImportMode?: "
|
3644
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3631
3645
|
dynamicImportPreload?: number | boolean | undefined;
|
3632
3646
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3633
3647
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3634
|
-
importMeta?: boolean | undefined;
|
3635
3648
|
exprContextCritical?: boolean | undefined;
|
3636
3649
|
wrappedContextCritical?: boolean | undefined;
|
3637
3650
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3649,221 +3662,56 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3649
3662
|
} | Record<string, Record<string, any>> | undefined;
|
3650
3663
|
generator?: Record<string, Record<string, any>> | {
|
3651
3664
|
css?: {
|
3652
|
-
exportsOnly?: boolean | undefined;
|
3653
|
-
esModule?: boolean | undefined;
|
3654
|
-
} | undefined;
|
3655
|
-
"css/auto"?: {
|
3656
|
-
exportsOnly?: boolean | undefined;
|
3657
|
-
esModule?: boolean | undefined;
|
3658
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3659
|
-
localIdentName?: string | undefined;
|
3660
|
-
} | undefined;
|
3661
|
-
"css/module"?: {
|
3662
|
-
exportsOnly?: boolean | undefined;
|
3663
|
-
esModule?: boolean | undefined;
|
3664
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3665
|
-
localIdentName?: string | undefined;
|
3666
|
-
} | undefined;
|
3667
|
-
asset?: {
|
3668
|
-
emit?: boolean | undefined;
|
3669
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3670
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3671
|
-
dataUrl?: {
|
3672
|
-
mimetype?: string | undefined;
|
3673
|
-
encoding?: false | "base64" | undefined;
|
3674
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3675
|
-
module: Module;
|
3676
|
-
filename: string;
|
3677
|
-
}, ...args: unknown[]) => string) | undefined;
|
3678
|
-
} | undefined;
|
3679
|
-
json?: {
|
3680
|
-
JSONParse?: boolean | undefined;
|
3681
|
-
} | undefined;
|
3682
|
-
"asset/inline"?: {
|
3683
|
-
dataUrl?: {
|
3684
|
-
mimetype?: string | undefined;
|
3685
|
-
encoding?: false | "base64" | undefined;
|
3686
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3687
|
-
module: Module;
|
3688
|
-
filename: string;
|
3689
|
-
}, ...args: unknown[]) => string) | undefined;
|
3690
|
-
} | undefined;
|
3691
|
-
"asset/resource"?: {
|
3692
|
-
emit?: boolean | undefined;
|
3693
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3694
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3695
|
-
} | undefined;
|
3696
|
-
} | undefined;
|
3697
|
-
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3698
|
-
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3699
|
-
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3700
|
-
} | undefined;
|
3701
|
-
profile?: boolean | undefined;
|
3702
|
-
cache?: boolean | undefined;
|
3703
|
-
context?: string | undefined;
|
3704
|
-
amd?: false | Record<string, any> | undefined;
|
3705
|
-
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" | "import" | "jsonp" | "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" | "import" | "jsonp" | "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;
|
3706
|
-
target?: false | "async-node" | "node" | "web" | `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}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("async-node" | "node" | "web" | `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}` | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
|
3707
|
-
node?: false | {
|
3708
|
-
global?: boolean | "warn" | undefined;
|
3709
|
-
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3710
|
-
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3711
|
-
} | undefined;
|
3712
|
-
performance?: false | {
|
3713
|
-
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
3714
|
-
hints?: false | "error" | "warning" | undefined;
|
3715
|
-
maxAssetSize?: number | undefined;
|
3716
|
-
maxEntrypointSize?: number | undefined;
|
3717
|
-
} | undefined;
|
3718
|
-
mode?: "none" | "development" | "production" | undefined;
|
3719
|
-
experiments?: {
|
3720
|
-
css?: boolean | undefined;
|
3721
|
-
cache?: boolean | {
|
3722
|
-
type: "memory";
|
3723
|
-
} | {
|
3724
|
-
type: "persistent";
|
3725
|
-
version?: string | undefined;
|
3726
|
-
buildDependencies?: string[] | undefined;
|
3727
|
-
snapshot?: {
|
3728
|
-
immutablePaths?: (string | RegExp)[] | undefined;
|
3729
|
-
unmanagedPaths?: (string | RegExp)[] | undefined;
|
3730
|
-
managedPaths?: (string | RegExp)[] | undefined;
|
3731
|
-
} | undefined;
|
3732
|
-
storage?: {
|
3733
|
-
type: "filesystem";
|
3734
|
-
directory?: string | undefined;
|
3735
|
-
} | undefined;
|
3736
|
-
} | undefined;
|
3737
|
-
lazyCompilation?: boolean | {
|
3738
|
-
entries?: boolean | undefined;
|
3739
|
-
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3740
|
-
imports?: boolean | undefined;
|
3741
|
-
client?: string | undefined;
|
3742
|
-
serverUrl?: string | undefined;
|
3743
|
-
} | undefined;
|
3744
|
-
asyncWebAssembly?: boolean | undefined;
|
3745
|
-
outputModule?: boolean | undefined;
|
3746
|
-
topLevelAwait?: boolean | undefined;
|
3747
|
-
layers?: boolean | undefined;
|
3748
|
-
incremental?: boolean | {
|
3749
|
-
make?: boolean | undefined;
|
3750
|
-
providedExports?: boolean | undefined;
|
3751
|
-
sideEffects?: boolean | undefined;
|
3752
|
-
moduleIds?: boolean | undefined;
|
3753
|
-
chunkIds?: boolean | undefined;
|
3754
|
-
inferAsyncModules?: boolean | undefined;
|
3755
|
-
dependenciesDiagnostics?: boolean | undefined;
|
3756
|
-
buildChunkGraph?: boolean | undefined;
|
3757
|
-
modulesHashes?: boolean | undefined;
|
3758
|
-
modulesCodegen?: boolean | undefined;
|
3759
|
-
modulesRuntimeRequirements?: boolean | undefined;
|
3760
|
-
chunksRuntimeRequirements?: boolean | undefined;
|
3761
|
-
chunksHashes?: boolean | undefined;
|
3762
|
-
chunksRender?: boolean | undefined;
|
3763
|
-
emitAssets?: boolean | undefined;
|
3764
|
-
} | undefined;
|
3765
|
-
parallelCodeSplitting?: boolean | undefined;
|
3766
|
-
futureDefaults?: boolean | undefined;
|
3767
|
-
rspackFuture?: {
|
3768
|
-
bundlerInfo?: {
|
3769
|
-
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3770
|
-
version?: string | undefined;
|
3771
|
-
bundler?: string | undefined;
|
3772
|
-
} | undefined;
|
3773
|
-
} | undefined;
|
3774
|
-
buildHttp?: {
|
3775
|
-
allowedUris: (string | RegExp)[];
|
3776
|
-
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
3777
|
-
status: number;
|
3778
|
-
body: Buffer<ArrayBufferLike>;
|
3779
|
-
headers: Record<string, string>;
|
3780
|
-
}>) | undefined;
|
3781
|
-
lockfileLocation?: string | undefined;
|
3782
|
-
cacheLocation?: string | false | undefined;
|
3783
|
-
upgrade?: boolean | undefined;
|
3784
|
-
} | undefined;
|
3785
|
-
parallelLoader?: boolean | undefined;
|
3786
|
-
} | undefined;
|
3787
|
-
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;
|
3788
|
-
stats?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3789
|
-
ids?: boolean | undefined;
|
3790
|
-
runtime?: boolean | undefined;
|
3791
|
-
hash?: boolean | undefined;
|
3792
|
-
modules?: boolean | undefined;
|
3793
|
-
publicPath?: boolean | undefined;
|
3794
|
-
chunks?: boolean | undefined;
|
3795
|
-
source?: boolean | undefined;
|
3796
|
-
all?: boolean | undefined;
|
3797
|
-
usedExports?: boolean | undefined;
|
3798
|
-
assets?: boolean | undefined;
|
3799
|
-
version?: boolean | undefined;
|
3800
|
-
preset?: boolean | "verbose" | "none" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3801
|
-
entrypoints?: boolean | "auto" | undefined;
|
3802
|
-
chunkGroups?: boolean | undefined;
|
3803
|
-
warnings?: boolean | undefined;
|
3804
|
-
warningsCount?: boolean | undefined;
|
3805
|
-
errors?: boolean | undefined;
|
3806
|
-
errorsCount?: boolean | undefined;
|
3807
|
-
colors?: boolean | undefined;
|
3808
|
-
reasons?: boolean | undefined;
|
3809
|
-
outputPath?: boolean | undefined;
|
3810
|
-
chunkModules?: boolean | undefined;
|
3811
|
-
chunkRelations?: boolean | undefined;
|
3812
|
-
timings?: boolean | undefined;
|
3813
|
-
builtAt?: boolean | undefined;
|
3814
|
-
moduleAssets?: boolean | undefined;
|
3815
|
-
nestedModules?: boolean | undefined;
|
3816
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" | "none" | undefined;
|
3817
|
-
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3818
|
-
loggingTrace?: boolean | undefined;
|
3819
|
-
runtimeModules?: boolean | undefined;
|
3820
|
-
children?: boolean | undefined;
|
3821
|
-
providedExports?: boolean | undefined;
|
3822
|
-
optimizationBailout?: boolean | undefined;
|
3823
|
-
groupModulesByType?: boolean | undefined;
|
3824
|
-
groupModulesByCacheStatus?: boolean | undefined;
|
3825
|
-
groupModulesByLayer?: boolean | undefined;
|
3826
|
-
groupModulesByAttributes?: boolean | undefined;
|
3827
|
-
groupModulesByPath?: boolean | undefined;
|
3828
|
-
groupModulesByExtension?: boolean | undefined;
|
3829
|
-
modulesSpace?: number | undefined;
|
3830
|
-
chunkModulesSpace?: number | undefined;
|
3831
|
-
nestedModulesSpace?: number | undefined;
|
3832
|
-
relatedAssets?: boolean | undefined;
|
3833
|
-
groupAssetsByEmitStatus?: boolean | undefined;
|
3834
|
-
groupAssetsByInfo?: boolean | undefined;
|
3835
|
-
groupAssetsByPath?: boolean | undefined;
|
3836
|
-
groupAssetsByExtension?: boolean | undefined;
|
3837
|
-
groupAssetsByChunk?: boolean | undefined;
|
3838
|
-
assetsSpace?: number | undefined;
|
3839
|
-
orphanModules?: boolean | undefined;
|
3840
|
-
excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined;
|
3841
|
-
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3842
|
-
modulesSort?: string | undefined;
|
3843
|
-
chunkModulesSort?: string | undefined;
|
3844
|
-
nestedModulesSort?: string | undefined;
|
3845
|
-
chunksSort?: string | undefined;
|
3846
|
-
assetsSort?: string | undefined;
|
3847
|
-
performance?: boolean | undefined;
|
3848
|
-
env?: boolean | undefined;
|
3849
|
-
chunkGroupAuxiliary?: boolean | undefined;
|
3850
|
-
chunkGroupChildren?: boolean | undefined;
|
3851
|
-
chunkGroupMaxAssets?: number | undefined;
|
3852
|
-
dependentModules?: boolean | undefined;
|
3853
|
-
chunkOrigins?: boolean | undefined;
|
3854
|
-
depth?: boolean | undefined;
|
3855
|
-
reasonsSpace?: number | undefined;
|
3856
|
-
groupReasonsByOrigin?: boolean | undefined;
|
3857
|
-
errorDetails?: boolean | undefined;
|
3858
|
-
errorStack?: boolean | undefined;
|
3859
|
-
moduleTrace?: boolean | undefined;
|
3860
|
-
cachedModules?: boolean | undefined;
|
3861
|
-
cachedAssets?: boolean | undefined;
|
3862
|
-
cached?: boolean | undefined;
|
3863
|
-
errorsSpace?: number | undefined;
|
3864
|
-
warningsSpace?: number | undefined;
|
3665
|
+
exportsOnly?: boolean | undefined;
|
3666
|
+
esModule?: boolean | undefined;
|
3667
|
+
} | undefined;
|
3668
|
+
"css/auto"?: {
|
3669
|
+
exportsOnly?: boolean | undefined;
|
3670
|
+
esModule?: boolean | undefined;
|
3671
|
+
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3672
|
+
localIdentName?: string | undefined;
|
3673
|
+
} | undefined;
|
3674
|
+
"css/module"?: {
|
3675
|
+
exportsOnly?: boolean | undefined;
|
3676
|
+
esModule?: boolean | undefined;
|
3677
|
+
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3678
|
+
localIdentName?: string | undefined;
|
3679
|
+
} | undefined;
|
3680
|
+
asset?: {
|
3681
|
+
emit?: boolean | undefined;
|
3682
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3683
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3684
|
+
dataUrl?: {
|
3685
|
+
mimetype?: string | undefined;
|
3686
|
+
encoding?: false | "base64" | undefined;
|
3687
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3688
|
+
module: Module;
|
3689
|
+
filename: string;
|
3690
|
+
}, ...args: unknown[]) => string) | undefined;
|
3691
|
+
} | undefined;
|
3692
|
+
json?: {
|
3693
|
+
JSONParse?: boolean | undefined;
|
3694
|
+
} | undefined;
|
3695
|
+
"asset/inline"?: {
|
3696
|
+
dataUrl?: {
|
3697
|
+
mimetype?: string | undefined;
|
3698
|
+
encoding?: false | "base64" | undefined;
|
3699
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3700
|
+
module: Module;
|
3701
|
+
filename: string;
|
3702
|
+
}, ...args: unknown[]) => string) | undefined;
|
3703
|
+
} | undefined;
|
3704
|
+
"asset/resource"?: {
|
3705
|
+
emit?: boolean | undefined;
|
3706
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3707
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3708
|
+
} | undefined;
|
3709
|
+
} | undefined;
|
3710
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3711
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3712
|
+
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3865
3713
|
} | undefined;
|
3866
|
-
|
3714
|
+
resolve?: t.ResolveOptions | undefined;
|
3867
3715
|
entry?: string | string[] | Record<string, string | string[] | {
|
3868
3716
|
import: string | string[];
|
3869
3717
|
runtime?: string | false | undefined;
|
@@ -3883,8 +3731,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3883
3731
|
amdContainer?: string | undefined;
|
3884
3732
|
auxiliaryComment?: string | {
|
3885
3733
|
commonjs?: string | undefined;
|
3886
|
-
commonjs2?: string | undefined;
|
3887
3734
|
amd?: string | undefined;
|
3735
|
+
commonjs2?: string | undefined;
|
3888
3736
|
root?: string | undefined;
|
3889
3737
|
} | undefined;
|
3890
3738
|
export?: string | string[] | undefined;
|
@@ -3911,8 +3759,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3911
3759
|
amdContainer?: string | undefined;
|
3912
3760
|
auxiliaryComment?: string | {
|
3913
3761
|
commonjs?: string | undefined;
|
3914
|
-
commonjs2?: string | undefined;
|
3915
3762
|
amd?: string | undefined;
|
3763
|
+
commonjs2?: string | undefined;
|
3916
3764
|
root?: string | undefined;
|
3917
3765
|
} | undefined;
|
3918
3766
|
export?: string | string[] | undefined;
|
@@ -3939,8 +3787,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3939
3787
|
amdContainer?: string | undefined;
|
3940
3788
|
auxiliaryComment?: string | {
|
3941
3789
|
commonjs?: string | undefined;
|
3942
|
-
commonjs2?: string | undefined;
|
3943
3790
|
amd?: string | undefined;
|
3791
|
+
commonjs2?: string | undefined;
|
3944
3792
|
root?: string | undefined;
|
3945
3793
|
} | undefined;
|
3946
3794
|
export?: string | string[] | undefined;
|
@@ -3949,33 +3797,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3949
3797
|
dependOn?: string | string[] | undefined;
|
3950
3798
|
wasmLoading?: string | false | undefined;
|
3951
3799
|
}>>) | undefined;
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3800
|
+
mode?: "development" | "none" | "production" | undefined;
|
3801
|
+
target?: false | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | `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}` | "webworker" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist" | ("es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "node" | "async-node" | "web" | `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}` | "webworker" | "electron-main" | "electron-renderer" | "electron-preload" | "nwjs" | "node-webkit" | "browserslist")[] | undefined;
|
3802
|
+
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3803
|
+
node?: false | {
|
3804
|
+
global?: boolean | "warn" | undefined;
|
3805
|
+
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3806
|
+
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3959
3807
|
} | undefined;
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
3808
|
+
amd?: false | Record<string, any> | undefined;
|
3809
|
+
profile?: boolean | undefined;
|
3810
|
+
cache?: boolean | undefined;
|
3811
|
+
context?: string | undefined;
|
3812
|
+
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" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "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" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "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;
|
3813
|
+
watch?: boolean | undefined;
|
3963
3814
|
output?: {
|
3964
3815
|
module?: boolean | undefined;
|
3816
|
+
path?: string | undefined;
|
3965
3817
|
environment?: {
|
3966
3818
|
module?: boolean | undefined;
|
3819
|
+
dynamicImport?: boolean | undefined;
|
3820
|
+
optionalChaining?: boolean | undefined;
|
3967
3821
|
arrowFunction?: boolean | undefined;
|
3968
3822
|
asyncFunction?: boolean | undefined;
|
3969
3823
|
bigIntLiteral?: boolean | undefined;
|
3970
3824
|
const?: boolean | undefined;
|
3971
3825
|
destructuring?: boolean | undefined;
|
3972
3826
|
document?: boolean | undefined;
|
3973
|
-
dynamicImport?: boolean | undefined;
|
3974
3827
|
dynamicImportInWorker?: boolean | undefined;
|
3975
3828
|
forOf?: boolean | undefined;
|
3976
3829
|
globalThis?: boolean | undefined;
|
3977
3830
|
nodePrefixForCoreModules?: boolean | undefined;
|
3978
|
-
optionalChaining?: boolean | undefined;
|
3979
3831
|
templateLiteral?: boolean | undefined;
|
3980
3832
|
} | undefined;
|
3981
3833
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3997,20 +3849,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3997
3849
|
amdContainer?: string | undefined;
|
3998
3850
|
auxiliaryComment?: string | {
|
3999
3851
|
commonjs?: string | undefined;
|
4000
|
-
commonjs2?: string | undefined;
|
4001
3852
|
amd?: string | undefined;
|
3853
|
+
commonjs2?: string | undefined;
|
4002
3854
|
root?: string | undefined;
|
4003
3855
|
} | undefined;
|
4004
3856
|
export?: string | string[] | undefined;
|
4005
3857
|
umdNamedDefine?: boolean | undefined;
|
4006
3858
|
} | undefined;
|
4007
|
-
path?: string | undefined;
|
4008
3859
|
wasmLoading?: string | false | undefined;
|
4009
3860
|
cssHeadDataCompression?: boolean | undefined;
|
4010
3861
|
auxiliaryComment?: string | {
|
4011
3862
|
commonjs?: string | undefined;
|
4012
|
-
commonjs2?: string | undefined;
|
4013
3863
|
amd?: string | undefined;
|
3864
|
+
commonjs2?: string | undefined;
|
4014
3865
|
root?: string | undefined;
|
4015
3866
|
} | undefined;
|
4016
3867
|
umdNamedDefine?: boolean | undefined;
|
@@ -4060,7 +3911,172 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4060
3911
|
charset?: boolean | undefined;
|
4061
3912
|
compareBeforeEmit?: boolean | undefined;
|
4062
3913
|
} | undefined;
|
4063
|
-
|
3914
|
+
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3915
|
+
ids?: boolean | undefined;
|
3916
|
+
runtime?: boolean | undefined;
|
3917
|
+
hash?: boolean | undefined;
|
3918
|
+
modules?: boolean | undefined;
|
3919
|
+
all?: boolean | undefined;
|
3920
|
+
outputPath?: boolean | undefined;
|
3921
|
+
env?: boolean | undefined;
|
3922
|
+
publicPath?: boolean | undefined;
|
3923
|
+
chunks?: boolean | undefined;
|
3924
|
+
source?: boolean | undefined;
|
3925
|
+
usedExports?: boolean | undefined;
|
3926
|
+
assets?: boolean | undefined;
|
3927
|
+
version?: boolean | undefined;
|
3928
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3929
|
+
entrypoints?: boolean | "auto" | undefined;
|
3930
|
+
chunkGroups?: boolean | undefined;
|
3931
|
+
warnings?: boolean | undefined;
|
3932
|
+
warningsCount?: boolean | undefined;
|
3933
|
+
errors?: boolean | undefined;
|
3934
|
+
errorsCount?: boolean | undefined;
|
3935
|
+
colors?: boolean | undefined;
|
3936
|
+
reasons?: boolean | undefined;
|
3937
|
+
chunkModules?: boolean | undefined;
|
3938
|
+
chunkRelations?: boolean | undefined;
|
3939
|
+
timings?: boolean | undefined;
|
3940
|
+
builtAt?: boolean | undefined;
|
3941
|
+
moduleAssets?: boolean | undefined;
|
3942
|
+
nestedModules?: boolean | undefined;
|
3943
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3944
|
+
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3945
|
+
loggingTrace?: boolean | undefined;
|
3946
|
+
runtimeModules?: boolean | undefined;
|
3947
|
+
children?: boolean | undefined;
|
3948
|
+
providedExports?: boolean | undefined;
|
3949
|
+
optimizationBailout?: boolean | undefined;
|
3950
|
+
groupModulesByType?: boolean | undefined;
|
3951
|
+
groupModulesByCacheStatus?: boolean | undefined;
|
3952
|
+
groupModulesByLayer?: boolean | undefined;
|
3953
|
+
groupModulesByAttributes?: boolean | undefined;
|
3954
|
+
groupModulesByPath?: boolean | undefined;
|
3955
|
+
groupModulesByExtension?: boolean | undefined;
|
3956
|
+
modulesSpace?: number | undefined;
|
3957
|
+
chunkModulesSpace?: number | undefined;
|
3958
|
+
nestedModulesSpace?: number | undefined;
|
3959
|
+
relatedAssets?: boolean | undefined;
|
3960
|
+
groupAssetsByEmitStatus?: boolean | undefined;
|
3961
|
+
groupAssetsByInfo?: boolean | undefined;
|
3962
|
+
groupAssetsByPath?: boolean | undefined;
|
3963
|
+
groupAssetsByExtension?: boolean | undefined;
|
3964
|
+
groupAssetsByChunk?: boolean | undefined;
|
3965
|
+
assetsSpace?: number | undefined;
|
3966
|
+
orphanModules?: boolean | undefined;
|
3967
|
+
excludeModules?: string | boolean | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any, args_2: any) => boolean))[] | undefined;
|
3968
|
+
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3969
|
+
modulesSort?: string | undefined;
|
3970
|
+
chunkModulesSort?: string | undefined;
|
3971
|
+
nestedModulesSort?: string | undefined;
|
3972
|
+
chunksSort?: string | undefined;
|
3973
|
+
assetsSort?: string | undefined;
|
3974
|
+
performance?: boolean | undefined;
|
3975
|
+
chunkGroupAuxiliary?: boolean | undefined;
|
3976
|
+
chunkGroupChildren?: boolean | undefined;
|
3977
|
+
chunkGroupMaxAssets?: number | undefined;
|
3978
|
+
dependentModules?: boolean | undefined;
|
3979
|
+
chunkOrigins?: boolean | undefined;
|
3980
|
+
depth?: boolean | undefined;
|
3981
|
+
reasonsSpace?: number | undefined;
|
3982
|
+
groupReasonsByOrigin?: boolean | undefined;
|
3983
|
+
errorDetails?: boolean | undefined;
|
3984
|
+
errorStack?: boolean | undefined;
|
3985
|
+
moduleTrace?: boolean | undefined;
|
3986
|
+
cachedModules?: boolean | undefined;
|
3987
|
+
cachedAssets?: boolean | undefined;
|
3988
|
+
cached?: boolean | undefined;
|
3989
|
+
errorsSpace?: number | undefined;
|
3990
|
+
warningsSpace?: number | undefined;
|
3991
|
+
} | undefined;
|
3992
|
+
performance?: false | {
|
3993
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
3994
|
+
hints?: false | "error" | "warning" | undefined;
|
3995
|
+
maxAssetSize?: number | undefined;
|
3996
|
+
maxEntrypointSize?: number | undefined;
|
3997
|
+
} | undefined;
|
3998
|
+
experiments?: {
|
3999
|
+
css?: boolean | undefined;
|
4000
|
+
topLevelAwait?: boolean | undefined;
|
4001
|
+
cache?: boolean | {
|
4002
|
+
type: "memory";
|
4003
|
+
} | {
|
4004
|
+
type: "persistent";
|
4005
|
+
version?: string | undefined;
|
4006
|
+
buildDependencies?: string[] | undefined;
|
4007
|
+
snapshot?: {
|
4008
|
+
immutablePaths?: (string | RegExp)[] | undefined;
|
4009
|
+
unmanagedPaths?: (string | RegExp)[] | undefined;
|
4010
|
+
managedPaths?: (string | RegExp)[] | undefined;
|
4011
|
+
} | undefined;
|
4012
|
+
storage?: {
|
4013
|
+
type: "filesystem";
|
4014
|
+
directory?: string | undefined;
|
4015
|
+
} | undefined;
|
4016
|
+
} | undefined;
|
4017
|
+
lazyCompilation?: boolean | {
|
4018
|
+
entries?: boolean | undefined;
|
4019
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
4020
|
+
serverUrl?: string | undefined;
|
4021
|
+
imports?: boolean | undefined;
|
4022
|
+
client?: string | undefined;
|
4023
|
+
} | undefined;
|
4024
|
+
asyncWebAssembly?: boolean | undefined;
|
4025
|
+
outputModule?: boolean | undefined;
|
4026
|
+
layers?: boolean | undefined;
|
4027
|
+
incremental?: boolean | {
|
4028
|
+
make?: boolean | undefined;
|
4029
|
+
providedExports?: boolean | undefined;
|
4030
|
+
sideEffects?: boolean | undefined;
|
4031
|
+
moduleIds?: boolean | undefined;
|
4032
|
+
chunkIds?: boolean | undefined;
|
4033
|
+
inferAsyncModules?: boolean | undefined;
|
4034
|
+
dependenciesDiagnostics?: boolean | undefined;
|
4035
|
+
buildChunkGraph?: boolean | undefined;
|
4036
|
+
modulesHashes?: boolean | undefined;
|
4037
|
+
modulesCodegen?: boolean | undefined;
|
4038
|
+
modulesRuntimeRequirements?: boolean | undefined;
|
4039
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
4040
|
+
chunksHashes?: boolean | undefined;
|
4041
|
+
chunksRender?: boolean | undefined;
|
4042
|
+
emitAssets?: boolean | undefined;
|
4043
|
+
} | undefined;
|
4044
|
+
parallelCodeSplitting?: boolean | undefined;
|
4045
|
+
futureDefaults?: boolean | undefined;
|
4046
|
+
rspackFuture?: {
|
4047
|
+
bundlerInfo?: {
|
4048
|
+
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
4049
|
+
version?: string | undefined;
|
4050
|
+
bundler?: string | undefined;
|
4051
|
+
} | undefined;
|
4052
|
+
} | undefined;
|
4053
|
+
buildHttp?: {
|
4054
|
+
allowedUris: (string | RegExp)[];
|
4055
|
+
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
4056
|
+
status: number;
|
4057
|
+
body: Buffer<ArrayBufferLike>;
|
4058
|
+
headers: Record<string, string>;
|
4059
|
+
}>) | undefined;
|
4060
|
+
lockfileLocation?: string | undefined;
|
4061
|
+
cacheLocation?: string | false | undefined;
|
4062
|
+
upgrade?: boolean | undefined;
|
4063
|
+
} | undefined;
|
4064
|
+
parallelLoader?: boolean | undefined;
|
4065
|
+
} | undefined;
|
4066
|
+
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;
|
4067
|
+
loader?: Record<string, any> | undefined;
|
4068
|
+
dependencies?: string[] | undefined;
|
4069
|
+
infrastructureLogging?: {
|
4070
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
4071
|
+
colors?: boolean | undefined;
|
4072
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
4073
|
+
console?: Console | undefined;
|
4074
|
+
appendOnly?: boolean | undefined;
|
4075
|
+
stream?: NodeJS.WritableStream | undefined;
|
4076
|
+
} | undefined;
|
4077
|
+
snapshot?: {} | undefined;
|
4078
|
+
extends?: string | string[] | undefined;
|
4079
|
+
externalsType?: "module" | "promise" | "commonjs" | "umd" | "amd" | "import" | "jsonp" | "var" | "assign" | "this" | "window" | "self" | "global" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd2" | "system" | "module-import" | "script" | "node-commonjs" | "commonjs-import" | undefined;
|
4064
4080
|
externalsPresets?: {
|
4065
4081
|
node?: boolean | undefined;
|
4066
4082
|
web?: boolean | undefined;
|
@@ -4073,32 +4089,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4073
4089
|
} | undefined;
|
4074
4090
|
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
4075
4091
|
watchOptions?: {
|
4092
|
+
ignored?: string | RegExp | string[] | undefined;
|
4076
4093
|
aggregateTimeout?: number | undefined;
|
4077
4094
|
followSymlinks?: boolean | undefined;
|
4078
|
-
ignored?: string | RegExp | string[] | undefined;
|
4079
4095
|
poll?: number | boolean | undefined;
|
4080
4096
|
stdin?: boolean | undefined;
|
4081
4097
|
} | undefined;
|
4082
|
-
watch?: boolean | undefined;
|
4083
4098
|
optimization?: {
|
4084
4099
|
splitChunks?: false | {
|
4085
4100
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
4086
4101
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4087
|
-
chunks?: RegExp | "
|
4102
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4088
4103
|
defaultSizeTypes?: string[] | undefined;
|
4089
4104
|
cacheGroups?: Record<string, false | {
|
4090
4105
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
4091
|
-
priority?: number | undefined;
|
4092
|
-
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
4093
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4094
4106
|
type?: string | RegExp | undefined;
|
4095
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4096
4107
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
4097
4108
|
moduleGraph: ModuleGraph;
|
4098
4109
|
chunkGraph: ChunkGraph;
|
4099
4110
|
}, ...args: unknown[]) => boolean) | undefined;
|
4111
|
+
priority?: number | undefined;
|
4112
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
4113
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4114
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4100
4115
|
defaultSizeTypes?: string[] | undefined;
|
4101
4116
|
minSize?: number | Record<string, number> | undefined;
|
4117
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
4102
4118
|
maxSize?: number | Record<string, number> | undefined;
|
4103
4119
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
4104
4120
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -4112,7 +4128,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4112
4128
|
idHint?: string | undefined;
|
4113
4129
|
}> | undefined;
|
4114
4130
|
fallbackCacheGroup?: {
|
4115
|
-
chunks?: RegExp | "
|
4131
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4116
4132
|
minSize?: number | undefined;
|
4117
4133
|
maxSize?: number | undefined;
|
4118
4134
|
maxAsyncSize?: number | undefined;
|
@@ -4120,6 +4136,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4120
4136
|
automaticNameDelimiter?: string | undefined;
|
4121
4137
|
} | undefined;
|
4122
4138
|
minSize?: number | Record<string, number> | undefined;
|
4139
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
4123
4140
|
maxSize?: number | Record<string, number> | undefined;
|
4124
4141
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
4125
4142
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -4154,7 +4171,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4154
4171
|
avoidEntryIife?: boolean | undefined;
|
4155
4172
|
} | undefined;
|
4156
4173
|
resolveLoader?: t.ResolveOptions | undefined;
|
4157
|
-
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
4158
4174
|
devServer?: t.DevServer | undefined;
|
4159
4175
|
bail?: boolean | undefined;
|
4160
4176
|
}>;
|