@rspack/core 1.3.5 → 1.3.7
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 +1 -1
- package/compiled/zod/index.d.ts +2 -2
- 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 +1 -6
- package/dist/Module.d.ts +1 -0
- package/dist/RspackError.d.ts +2 -1
- package/dist/builtin-loader/swc/pluginImport.d.ts +35 -0
- package/dist/builtin-loader/swc/types.d.ts +4434 -2
- package/dist/builtin-plugin/CircularDependencyRspackPlugin.d.ts +14 -14
- 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 +17 -5
- package/dist/config/utils.d.ts +3 -3
- package/dist/config/zod.d.ts +717 -694
- package/dist/cssExtractHmr.js +112 -211
- package/dist/cssExtractLoader.js +129 -246
- package/dist/exports.d.ts +2 -1
- package/dist/index.js +13106 -21084
- 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 +37 -0
- package/dist/util/validate.d.ts +4 -1
- package/dist/worker.js +909 -1834
- package/package.json +11 -23
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,24 @@ 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
|
+
prefix: z.ZodOptional<z.ZodString>;
|
893
894
|
}, "strip", z.ZodTypeAny, {
|
894
895
|
entries?: boolean | undefined;
|
895
896
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
897
|
+
prefix?: string | undefined;
|
898
|
+
serverUrl?: string | undefined;
|
896
899
|
imports?: boolean | undefined;
|
897
900
|
client?: string | undefined;
|
898
|
-
serverUrl?: string | undefined;
|
899
901
|
}, {
|
900
902
|
entries?: boolean | undefined;
|
901
903
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
904
|
+
prefix?: string | undefined;
|
905
|
+
serverUrl?: string | undefined;
|
902
906
|
imports?: boolean | undefined;
|
903
907
|
client?: string | undefined;
|
904
|
-
serverUrl?: string | undefined;
|
905
908
|
}>]>;
|
906
909
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
907
910
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
@@ -987,14 +990,14 @@ export declare const rspackOptions: z.ZodObject<{
|
|
987
990
|
} | undefined;
|
988
991
|
}>>;
|
989
992
|
buildHttp: z.ZodOptional<z.ZodObject<{
|
990
|
-
allowedUris: z.ZodArray<z.ZodUnion<[z.ZodString, z.
|
993
|
+
allowedUris: z.ZodArray<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, "many">;
|
991
994
|
lockfileLocation: z.ZodOptional<z.ZodString>;
|
992
995
|
cacheLocation: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
993
996
|
upgrade: z.ZodOptional<z.ZodBoolean>;
|
994
997
|
httpClient: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>], z.ZodUnknown>, z.ZodPromise<z.ZodObject<{
|
995
998
|
status: z.ZodNumber;
|
996
999
|
headers: z.ZodRecord<z.ZodString, z.ZodString>;
|
997
|
-
body: z.
|
1000
|
+
body: z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>;
|
998
1001
|
}, "strip", z.ZodTypeAny, {
|
999
1002
|
status: number;
|
1000
1003
|
body: Buffer<ArrayBufferLike>;
|
@@ -1028,6 +1031,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1028
1031
|
parallelLoader: z.ZodOptional<z.ZodBoolean>;
|
1029
1032
|
}, "strict", z.ZodTypeAny, {
|
1030
1033
|
css?: boolean | undefined;
|
1034
|
+
topLevelAwait?: boolean | undefined;
|
1031
1035
|
cache?: boolean | {
|
1032
1036
|
type: "memory";
|
1033
1037
|
} | {
|
@@ -1047,13 +1051,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1047
1051
|
lazyCompilation?: boolean | {
|
1048
1052
|
entries?: boolean | undefined;
|
1049
1053
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1054
|
+
prefix?: string | undefined;
|
1055
|
+
serverUrl?: string | undefined;
|
1050
1056
|
imports?: boolean | undefined;
|
1051
1057
|
client?: string | undefined;
|
1052
|
-
serverUrl?: string | undefined;
|
1053
1058
|
} | undefined;
|
1054
1059
|
asyncWebAssembly?: boolean | undefined;
|
1055
1060
|
outputModule?: boolean | undefined;
|
1056
|
-
topLevelAwait?: boolean | undefined;
|
1057
1061
|
layers?: boolean | undefined;
|
1058
1062
|
incremental?: boolean | {
|
1059
1063
|
make?: boolean | undefined;
|
@@ -1095,6 +1099,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1095
1099
|
parallelLoader?: boolean | undefined;
|
1096
1100
|
}, {
|
1097
1101
|
css?: boolean | undefined;
|
1102
|
+
topLevelAwait?: boolean | undefined;
|
1098
1103
|
cache?: boolean | {
|
1099
1104
|
type: "memory";
|
1100
1105
|
} | {
|
@@ -1114,13 +1119,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1114
1119
|
lazyCompilation?: boolean | {
|
1115
1120
|
entries?: boolean | undefined;
|
1116
1121
|
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
1122
|
+
prefix?: string | undefined;
|
1123
|
+
serverUrl?: string | undefined;
|
1117
1124
|
imports?: boolean | undefined;
|
1118
1125
|
client?: string | undefined;
|
1119
|
-
serverUrl?: string | undefined;
|
1120
1126
|
} | undefined;
|
1121
1127
|
asyncWebAssembly?: boolean | undefined;
|
1122
1128
|
outputModule?: boolean | undefined;
|
1123
|
-
topLevelAwait?: boolean | undefined;
|
1124
1129
|
layers?: boolean | undefined;
|
1125
1130
|
incremental?: boolean | {
|
1126
1131
|
make?: boolean | undefined;
|
@@ -1161,7 +1166,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1161
1166
|
} | undefined;
|
1162
1167
|
parallelLoader?: boolean | undefined;
|
1163
1168
|
}>>;
|
1164
|
-
externals: z.ZodOptional<z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1169
|
+
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
1170
|
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
1171
|
externalsPresets: z.ZodOptional<z.ZodObject<{
|
1167
1172
|
node: z.ZodOptional<z.ZodBoolean>;
|
@@ -1194,21 +1199,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1194
1199
|
infrastructureLogging: z.ZodOptional<z.ZodObject<{
|
1195
1200
|
appendOnly: z.ZodOptional<z.ZodBoolean>;
|
1196
1201
|
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.
|
1202
|
+
console: z.ZodOptional<z.Schema<Console, z.ZodTypeDef, Console>>;
|
1203
|
+
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
1204
|
level: z.ZodOptional<z.ZodEnum<["none", "error", "warn", "info", "log", "verbose"]>>;
|
1200
|
-
stream: z.ZodOptional<z.
|
1205
|
+
stream: z.ZodOptional<z.Schema<NodeJS.WritableStream, z.ZodTypeDef, NodeJS.WritableStream>>;
|
1201
1206
|
}, "strict", z.ZodTypeAny, {
|
1202
1207
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1203
1208
|
colors?: boolean | undefined;
|
1204
|
-
level?: "error" | "warn" | "info" | "log" | "verbose" |
|
1209
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1205
1210
|
console?: Console | undefined;
|
1206
1211
|
appendOnly?: boolean | undefined;
|
1207
1212
|
stream?: NodeJS.WritableStream | undefined;
|
1208
1213
|
}, {
|
1209
1214
|
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1210
1215
|
colors?: boolean | undefined;
|
1211
|
-
level?: "error" | "warn" | "info" | "log" | "verbose" |
|
1216
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1212
1217
|
console?: Console | undefined;
|
1213
1218
|
appendOnly?: boolean | undefined;
|
1214
1219
|
stream?: NodeJS.WritableStream | undefined;
|
@@ -1230,23 +1235,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1230
1235
|
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
1231
1236
|
}>]>>;
|
1232
1237
|
loader: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
1233
|
-
ignoreWarnings: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.
|
1238
|
+
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
1239
|
watchOptions: z.ZodOptional<z.ZodObject<{
|
1235
1240
|
aggregateTimeout: z.ZodOptional<z.ZodNumber>;
|
1236
1241
|
followSymlinks: z.ZodOptional<z.ZodBoolean>;
|
1237
|
-
ignored: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.
|
1242
|
+
ignored: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodString]>>;
|
1238
1243
|
poll: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodBoolean]>>;
|
1239
1244
|
stdin: z.ZodOptional<z.ZodBoolean>;
|
1240
1245
|
}, "strict", z.ZodTypeAny, {
|
1246
|
+
ignored?: string | RegExp | string[] | undefined;
|
1241
1247
|
aggregateTimeout?: number | undefined;
|
1242
1248
|
followSymlinks?: boolean | undefined;
|
1243
|
-
ignored?: string | RegExp | string[] | undefined;
|
1244
1249
|
poll?: number | boolean | undefined;
|
1245
1250
|
stdin?: boolean | undefined;
|
1246
1251
|
}, {
|
1252
|
+
ignored?: string | RegExp | string[] | undefined;
|
1247
1253
|
aggregateTimeout?: number | undefined;
|
1248
1254
|
followSymlinks?: boolean | undefined;
|
1249
|
-
ignored?: string | RegExp | string[] | undefined;
|
1250
1255
|
poll?: number | boolean | undefined;
|
1251
1256
|
stdin?: boolean | undefined;
|
1252
1257
|
}>>;
|
@@ -1278,7 +1283,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1278
1283
|
nestedModules: z.ZodOptional<z.ZodBoolean>;
|
1279
1284
|
source: z.ZodOptional<z.ZodBoolean>;
|
1280
1285
|
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.
|
1286
|
+
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
1287
|
loggingTrace: z.ZodOptional<z.ZodBoolean>;
|
1283
1288
|
runtimeModules: z.ZodOptional<z.ZodBoolean>;
|
1284
1289
|
children: z.ZodOptional<z.ZodBoolean>;
|
@@ -1302,8 +1307,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1302
1307
|
groupAssetsByChunk: z.ZodOptional<z.ZodBoolean>;
|
1303
1308
|
assetsSpace: z.ZodOptional<z.ZodNumber>;
|
1304
1309
|
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.
|
1310
|
+
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]>>;
|
1311
|
+
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
1312
|
modulesSort: z.ZodOptional<z.ZodString>;
|
1308
1313
|
chunkModulesSort: z.ZodOptional<z.ZodString>;
|
1309
1314
|
nestedModulesSort: z.ZodOptional<z.ZodString>;
|
@@ -1333,14 +1338,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1333
1338
|
runtime?: boolean | undefined;
|
1334
1339
|
hash?: boolean | undefined;
|
1335
1340
|
modules?: boolean | undefined;
|
1341
|
+
all?: boolean | undefined;
|
1342
|
+
outputPath?: boolean | undefined;
|
1343
|
+
env?: boolean | undefined;
|
1336
1344
|
publicPath?: boolean | undefined;
|
1337
1345
|
chunks?: boolean | undefined;
|
1338
1346
|
source?: boolean | undefined;
|
1339
|
-
all?: boolean | undefined;
|
1340
1347
|
usedExports?: boolean | undefined;
|
1341
1348
|
assets?: boolean | undefined;
|
1342
1349
|
version?: boolean | undefined;
|
1343
|
-
preset?: boolean | "
|
1350
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1344
1351
|
entrypoints?: boolean | "auto" | undefined;
|
1345
1352
|
chunkGroups?: boolean | undefined;
|
1346
1353
|
warnings?: boolean | undefined;
|
@@ -1349,14 +1356,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1349
1356
|
errorsCount?: boolean | undefined;
|
1350
1357
|
colors?: boolean | undefined;
|
1351
1358
|
reasons?: boolean | undefined;
|
1352
|
-
outputPath?: boolean | undefined;
|
1353
1359
|
chunkModules?: boolean | undefined;
|
1354
1360
|
chunkRelations?: boolean | undefined;
|
1355
1361
|
timings?: boolean | undefined;
|
1356
1362
|
builtAt?: boolean | undefined;
|
1357
1363
|
moduleAssets?: boolean | undefined;
|
1358
1364
|
nestedModules?: boolean | undefined;
|
1359
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" |
|
1365
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1360
1366
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1361
1367
|
loggingTrace?: boolean | undefined;
|
1362
1368
|
runtimeModules?: boolean | undefined;
|
@@ -1388,7 +1394,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1388
1394
|
chunksSort?: string | undefined;
|
1389
1395
|
assetsSort?: string | undefined;
|
1390
1396
|
performance?: boolean | undefined;
|
1391
|
-
env?: boolean | undefined;
|
1392
1397
|
chunkGroupAuxiliary?: boolean | undefined;
|
1393
1398
|
chunkGroupChildren?: boolean | undefined;
|
1394
1399
|
chunkGroupMaxAssets?: number | undefined;
|
@@ -1410,14 +1415,16 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1410
1415
|
runtime?: boolean | undefined;
|
1411
1416
|
hash?: boolean | undefined;
|
1412
1417
|
modules?: boolean | undefined;
|
1418
|
+
all?: boolean | undefined;
|
1419
|
+
outputPath?: boolean | undefined;
|
1420
|
+
env?: boolean | undefined;
|
1413
1421
|
publicPath?: boolean | undefined;
|
1414
1422
|
chunks?: boolean | undefined;
|
1415
1423
|
source?: boolean | undefined;
|
1416
|
-
all?: boolean | undefined;
|
1417
1424
|
usedExports?: boolean | undefined;
|
1418
1425
|
assets?: boolean | undefined;
|
1419
1426
|
version?: boolean | undefined;
|
1420
|
-
preset?: boolean | "
|
1427
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
1421
1428
|
entrypoints?: boolean | "auto" | undefined;
|
1422
1429
|
chunkGroups?: boolean | undefined;
|
1423
1430
|
warnings?: boolean | undefined;
|
@@ -1426,14 +1433,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1426
1433
|
errorsCount?: boolean | undefined;
|
1427
1434
|
colors?: boolean | undefined;
|
1428
1435
|
reasons?: boolean | undefined;
|
1429
|
-
outputPath?: boolean | undefined;
|
1430
1436
|
chunkModules?: boolean | undefined;
|
1431
1437
|
chunkRelations?: boolean | undefined;
|
1432
1438
|
timings?: boolean | undefined;
|
1433
1439
|
builtAt?: boolean | undefined;
|
1434
1440
|
moduleAssets?: boolean | undefined;
|
1435
1441
|
nestedModules?: boolean | undefined;
|
1436
|
-
logging?: boolean | "error" | "warn" | "info" | "log" | "verbose" |
|
1442
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
1437
1443
|
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
1438
1444
|
loggingTrace?: boolean | undefined;
|
1439
1445
|
runtimeModules?: boolean | undefined;
|
@@ -1465,7 +1471,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1465
1471
|
chunksSort?: string | undefined;
|
1466
1472
|
assetsSort?: string | undefined;
|
1467
1473
|
performance?: boolean | undefined;
|
1468
|
-
env?: boolean | undefined;
|
1469
1474
|
chunkGroupAuxiliary?: boolean | undefined;
|
1470
1475
|
chunkGroupChildren?: boolean | undefined;
|
1471
1476
|
chunkGroupMaxAssets?: number | undefined;
|
@@ -1488,16 +1493,17 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1488
1493
|
moduleIds: z.ZodOptional<z.ZodEnum<["named", "natural", "deterministic"]>>;
|
1489
1494
|
chunkIds: z.ZodOptional<z.ZodEnum<["natural", "named", "deterministic", "size", "total-size"]>>;
|
1490
1495
|
minimize: z.ZodOptional<z.ZodBoolean>;
|
1491
|
-
minimizer: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"...">, z.ZodUnion<[z.
|
1496
|
+
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
1497
|
mergeDuplicateChunks: z.ZodOptional<z.ZodBoolean>;
|
1493
1498
|
splitChunks: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
1494
|
-
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.
|
1499
|
+
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
1500
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1496
1501
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
1497
1502
|
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.
|
1503
|
+
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>>]>>;
|
1504
|
+
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
1505
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1506
|
+
minSizeReduction: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1501
1507
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1502
1508
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1503
1509
|
maxInitialSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
@@ -1505,22 +1511,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1505
1511
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
1506
1512
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1507
1513
|
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.
|
1514
|
+
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
1515
|
defaultSizeTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
1510
1516
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
1511
1517
|
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.
|
1518
|
+
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>>]>>;
|
1519
|
+
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
1520
|
minSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1521
|
+
minSizeReduction: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1515
1522
|
maxSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1516
1523
|
maxAsyncSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1517
1524
|
maxInitialSize: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodRecord<z.ZodString, z.ZodNumber>]>>;
|
1518
1525
|
maxAsyncRequests: z.ZodOptional<z.ZodNumber>;
|
1519
1526
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
1520
1527
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1521
|
-
test: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1522
|
-
moduleGraph: z.
|
1523
|
-
chunkGraph: z.
|
1528
|
+
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<{
|
1529
|
+
moduleGraph: z.Schema<ModuleGraph, z.ZodTypeDef, ModuleGraph>;
|
1530
|
+
chunkGraph: z.Schema<ChunkGraph, z.ZodTypeDef, ChunkGraph>;
|
1524
1531
|
}, "strip", z.ZodTypeAny, {
|
1525
1532
|
moduleGraph: ModuleGraph;
|
1526
1533
|
chunkGraph: ChunkGraph;
|
@@ -1531,22 +1538,23 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1531
1538
|
priority: z.ZodOptional<z.ZodNumber>;
|
1532
1539
|
enforce: z.ZodOptional<z.ZodBoolean>;
|
1533
1540
|
reuseExistingChunk: z.ZodOptional<z.ZodBoolean>;
|
1534
|
-
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.
|
1541
|
+
type: z.ZodOptional<z.ZodUnion<[z.ZodString, z.Schema<RegExp, z.ZodTypeDef, RegExp>]>>;
|
1535
1542
|
idHint: z.ZodOptional<z.ZodString>;
|
1536
|
-
layer: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
1543
|
+
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
1544
|
}, "strict", z.ZodTypeAny, {
|
1538
1545
|
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
1546
|
type?: string | RegExp | undefined;
|
1543
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1544
1547
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1545
1548
|
moduleGraph: ModuleGraph;
|
1546
1549
|
chunkGraph: ChunkGraph;
|
1547
1550
|
}, ...args: unknown[]) => boolean) | undefined;
|
1551
|
+
priority?: number | undefined;
|
1552
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1553
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1554
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1548
1555
|
defaultSizeTypes?: string[] | undefined;
|
1549
1556
|
minSize?: number | Record<string, number> | undefined;
|
1557
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1550
1558
|
maxSize?: number | Record<string, number> | undefined;
|
1551
1559
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1552
1560
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1560,17 +1568,18 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1560
1568
|
idHint?: string | undefined;
|
1561
1569
|
}, {
|
1562
1570
|
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
1571
|
type?: string | RegExp | undefined;
|
1567
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1568
1572
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1569
1573
|
moduleGraph: ModuleGraph;
|
1570
1574
|
chunkGraph: ChunkGraph;
|
1571
1575
|
}, ...args: unknown[]) => boolean) | undefined;
|
1576
|
+
priority?: number | undefined;
|
1577
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1578
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1579
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1572
1580
|
defaultSizeTypes?: string[] | undefined;
|
1573
1581
|
minSize?: number | Record<string, number> | undefined;
|
1582
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1574
1583
|
maxSize?: number | Record<string, number> | undefined;
|
1575
1584
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1576
1585
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1584,21 +1593,21 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1584
1593
|
idHint?: string | undefined;
|
1585
1594
|
}>]>>>;
|
1586
1595
|
fallbackCacheGroup: z.ZodOptional<z.ZodObject<{
|
1587
|
-
chunks: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.
|
1596
|
+
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
1597
|
minSize: z.ZodOptional<z.ZodNumber>;
|
1589
1598
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
1590
1599
|
maxAsyncSize: z.ZodOptional<z.ZodNumber>;
|
1591
1600
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
1592
1601
|
automaticNameDelimiter: z.ZodOptional<z.ZodString>;
|
1593
1602
|
}, "strict", z.ZodTypeAny, {
|
1594
|
-
chunks?: RegExp | "
|
1603
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1595
1604
|
minSize?: number | undefined;
|
1596
1605
|
maxSize?: number | undefined;
|
1597
1606
|
maxAsyncSize?: number | undefined;
|
1598
1607
|
maxInitialSize?: number | undefined;
|
1599
1608
|
automaticNameDelimiter?: string | undefined;
|
1600
1609
|
}, {
|
1601
|
-
chunks?: RegExp | "
|
1610
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1602
1611
|
minSize?: number | undefined;
|
1603
1612
|
maxSize?: number | undefined;
|
1604
1613
|
maxAsyncSize?: number | undefined;
|
@@ -1609,21 +1618,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1609
1618
|
}, "strict", z.ZodTypeAny, {
|
1610
1619
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1611
1620
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1612
|
-
chunks?: RegExp | "
|
1621
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1613
1622
|
defaultSizeTypes?: string[] | undefined;
|
1614
1623
|
cacheGroups?: Record<string, false | {
|
1615
1624
|
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
1625
|
type?: string | RegExp | undefined;
|
1620
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1621
1626
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1622
1627
|
moduleGraph: ModuleGraph;
|
1623
1628
|
chunkGraph: ChunkGraph;
|
1624
1629
|
}, ...args: unknown[]) => boolean) | undefined;
|
1630
|
+
priority?: number | undefined;
|
1631
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1632
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1633
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1625
1634
|
defaultSizeTypes?: string[] | undefined;
|
1626
1635
|
minSize?: number | Record<string, number> | undefined;
|
1636
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1627
1637
|
maxSize?: number | Record<string, number> | undefined;
|
1628
1638
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1629
1639
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1637,7 +1647,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1637
1647
|
idHint?: string | undefined;
|
1638
1648
|
}> | undefined;
|
1639
1649
|
fallbackCacheGroup?: {
|
1640
|
-
chunks?: RegExp | "
|
1650
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1641
1651
|
minSize?: number | undefined;
|
1642
1652
|
maxSize?: number | undefined;
|
1643
1653
|
maxAsyncSize?: number | undefined;
|
@@ -1645,6 +1655,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1645
1655
|
automaticNameDelimiter?: string | undefined;
|
1646
1656
|
} | undefined;
|
1647
1657
|
minSize?: number | Record<string, number> | undefined;
|
1658
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1648
1659
|
maxSize?: number | Record<string, number> | undefined;
|
1649
1660
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1650
1661
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1657,21 +1668,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1657
1668
|
}, {
|
1658
1669
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1659
1670
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1660
|
-
chunks?: RegExp | "
|
1671
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1661
1672
|
defaultSizeTypes?: string[] | undefined;
|
1662
1673
|
cacheGroups?: Record<string, false | {
|
1663
1674
|
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
1675
|
type?: string | RegExp | undefined;
|
1668
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1669
1676
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1670
1677
|
moduleGraph: ModuleGraph;
|
1671
1678
|
chunkGraph: ChunkGraph;
|
1672
1679
|
}, ...args: unknown[]) => boolean) | undefined;
|
1680
|
+
priority?: number | undefined;
|
1681
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1682
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1683
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1673
1684
|
defaultSizeTypes?: string[] | undefined;
|
1674
1685
|
minSize?: number | Record<string, number> | undefined;
|
1686
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1675
1687
|
maxSize?: number | Record<string, number> | undefined;
|
1676
1688
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1677
1689
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1685,7 +1697,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1685
1697
|
idHint?: string | undefined;
|
1686
1698
|
}> | undefined;
|
1687
1699
|
fallbackCacheGroup?: {
|
1688
|
-
chunks?: RegExp | "
|
1700
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1689
1701
|
minSize?: number | undefined;
|
1690
1702
|
maxSize?: number | undefined;
|
1691
1703
|
maxAsyncSize?: number | undefined;
|
@@ -1693,6 +1705,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1693
1705
|
automaticNameDelimiter?: string | undefined;
|
1694
1706
|
} | undefined;
|
1695
1707
|
minSize?: number | Record<string, number> | undefined;
|
1708
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1696
1709
|
maxSize?: number | Record<string, number> | undefined;
|
1697
1710
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1698
1711
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1736,21 +1749,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1736
1749
|
splitChunks?: false | {
|
1737
1750
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1738
1751
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1739
|
-
chunks?: RegExp | "
|
1752
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1740
1753
|
defaultSizeTypes?: string[] | undefined;
|
1741
1754
|
cacheGroups?: Record<string, false | {
|
1742
1755
|
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
1756
|
type?: string | RegExp | undefined;
|
1747
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1748
1757
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1749
1758
|
moduleGraph: ModuleGraph;
|
1750
1759
|
chunkGraph: ChunkGraph;
|
1751
1760
|
}, ...args: unknown[]) => boolean) | undefined;
|
1761
|
+
priority?: number | undefined;
|
1762
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1763
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1764
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1752
1765
|
defaultSizeTypes?: string[] | undefined;
|
1753
1766
|
minSize?: number | Record<string, number> | undefined;
|
1767
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1754
1768
|
maxSize?: number | Record<string, number> | undefined;
|
1755
1769
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1756
1770
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1764,7 +1778,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1764
1778
|
idHint?: string | undefined;
|
1765
1779
|
}> | undefined;
|
1766
1780
|
fallbackCacheGroup?: {
|
1767
|
-
chunks?: RegExp | "
|
1781
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1768
1782
|
minSize?: number | undefined;
|
1769
1783
|
maxSize?: number | undefined;
|
1770
1784
|
maxAsyncSize?: number | undefined;
|
@@ -1772,6 +1786,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1772
1786
|
automaticNameDelimiter?: string | undefined;
|
1773
1787
|
} | undefined;
|
1774
1788
|
minSize?: number | Record<string, number> | undefined;
|
1789
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1775
1790
|
maxSize?: number | Record<string, number> | undefined;
|
1776
1791
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1777
1792
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1808,21 +1823,22 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1808
1823
|
splitChunks?: false | {
|
1809
1824
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
1810
1825
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1811
|
-
chunks?: RegExp | "
|
1826
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1812
1827
|
defaultSizeTypes?: string[] | undefined;
|
1813
1828
|
cacheGroups?: Record<string, false | {
|
1814
1829
|
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
1830
|
type?: string | RegExp | undefined;
|
1819
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1820
1831
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
1821
1832
|
moduleGraph: ModuleGraph;
|
1822
1833
|
chunkGraph: ChunkGraph;
|
1823
1834
|
}, ...args: unknown[]) => boolean) | undefined;
|
1835
|
+
priority?: number | undefined;
|
1836
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
1837
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
1838
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1824
1839
|
defaultSizeTypes?: string[] | undefined;
|
1825
1840
|
minSize?: number | Record<string, number> | undefined;
|
1841
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1826
1842
|
maxSize?: number | Record<string, number> | undefined;
|
1827
1843
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1828
1844
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1836,7 +1852,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1836
1852
|
idHint?: string | undefined;
|
1837
1853
|
}> | undefined;
|
1838
1854
|
fallbackCacheGroup?: {
|
1839
|
-
chunks?: RegExp | "
|
1855
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
1840
1856
|
minSize?: number | undefined;
|
1841
1857
|
maxSize?: number | undefined;
|
1842
1858
|
maxAsyncSize?: number | undefined;
|
@@ -1844,6 +1860,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1844
1860
|
automaticNameDelimiter?: string | undefined;
|
1845
1861
|
} | undefined;
|
1846
1862
|
minSize?: number | Record<string, number> | undefined;
|
1863
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
1847
1864
|
maxSize?: number | Record<string, number> | undefined;
|
1848
1865
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
1849
1866
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -1877,13 +1894,13 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1877
1894
|
emitOnErrors?: boolean | undefined;
|
1878
1895
|
avoidEntryIife?: boolean | undefined;
|
1879
1896
|
}>>;
|
1880
|
-
resolve: z.ZodOptional<z.
|
1881
|
-
resolveLoader: z.ZodOptional<z.
|
1882
|
-
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.
|
1883
|
-
devServer: z.ZodOptional<z.
|
1897
|
+
resolve: z.ZodOptional<z.Schema<t.ResolveOptions, z.ZodTypeDef, t.ResolveOptions>>;
|
1898
|
+
resolveLoader: z.ZodOptional<z.Schema<t.ResolveOptions, z.ZodTypeDef, t.ResolveOptions>>;
|
1899
|
+
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">>;
|
1900
|
+
devServer: z.ZodOptional<z.Schema<t.DevServer, z.ZodTypeDef, t.DevServer>>;
|
1884
1901
|
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<"...">,
|
1902
|
+
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">>;
|
1903
|
+
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
1904
|
parser: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
1888
1905
|
asset: z.ZodOptional<z.ZodObject<{
|
1889
1906
|
dataUrlCondition: z.ZodOptional<z.ZodObject<{
|
@@ -1932,7 +1949,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1932
1949
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
1933
1950
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1934
1951
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1935
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
1952
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
1936
1953
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1937
1954
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1938
1955
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -1944,12 +1961,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1944
1961
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
1945
1962
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
1946
1963
|
}, "strict", z.ZodTypeAny, {
|
1964
|
+
importMeta?: boolean | undefined;
|
1947
1965
|
url?: boolean | "relative" | undefined;
|
1948
|
-
dynamicImportMode?: "
|
1966
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
1949
1967
|
dynamicImportPreload?: number | boolean | undefined;
|
1950
1968
|
dynamicImportPrefetch?: number | boolean | undefined;
|
1951
1969
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
1952
|
-
importMeta?: boolean | undefined;
|
1953
1970
|
exprContextCritical?: boolean | undefined;
|
1954
1971
|
wrappedContextCritical?: boolean | undefined;
|
1955
1972
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -1964,12 +1981,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1964
1981
|
requireResolve?: boolean | undefined;
|
1965
1982
|
importDynamic?: boolean | undefined;
|
1966
1983
|
}, {
|
1984
|
+
importMeta?: boolean | undefined;
|
1967
1985
|
url?: boolean | "relative" | undefined;
|
1968
|
-
dynamicImportMode?: "
|
1986
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
1969
1987
|
dynamicImportPreload?: number | boolean | undefined;
|
1970
1988
|
dynamicImportPrefetch?: number | boolean | undefined;
|
1971
1989
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
1972
|
-
importMeta?: boolean | undefined;
|
1973
1990
|
exprContextCritical?: boolean | undefined;
|
1974
1991
|
wrappedContextCritical?: boolean | undefined;
|
1975
1992
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -1993,7 +2010,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
1993
2010
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
1994
2011
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1995
2012
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
1996
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2013
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
1997
2014
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1998
2015
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
1999
2016
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2005,12 +2022,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2005
2022
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2006
2023
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2007
2024
|
}, "strict", z.ZodTypeAny, {
|
2025
|
+
importMeta?: boolean | undefined;
|
2008
2026
|
url?: boolean | "relative" | undefined;
|
2009
|
-
dynamicImportMode?: "
|
2027
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2010
2028
|
dynamicImportPreload?: number | boolean | undefined;
|
2011
2029
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2012
2030
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2013
|
-
importMeta?: boolean | undefined;
|
2014
2031
|
exprContextCritical?: boolean | undefined;
|
2015
2032
|
wrappedContextCritical?: boolean | undefined;
|
2016
2033
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2025,12 +2042,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2025
2042
|
requireResolve?: boolean | undefined;
|
2026
2043
|
importDynamic?: boolean | undefined;
|
2027
2044
|
}, {
|
2045
|
+
importMeta?: boolean | undefined;
|
2028
2046
|
url?: boolean | "relative" | undefined;
|
2029
|
-
dynamicImportMode?: "
|
2047
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2030
2048
|
dynamicImportPreload?: number | boolean | undefined;
|
2031
2049
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2032
2050
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2033
|
-
importMeta?: boolean | undefined;
|
2034
2051
|
exprContextCritical?: boolean | undefined;
|
2035
2052
|
wrappedContextCritical?: boolean | undefined;
|
2036
2053
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2054,7 +2071,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2054
2071
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
2055
2072
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2056
2073
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2057
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2074
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
2058
2075
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2059
2076
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2060
2077
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2066,12 +2083,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2066
2083
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2067
2084
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2068
2085
|
}, "strict", z.ZodTypeAny, {
|
2086
|
+
importMeta?: boolean | undefined;
|
2069
2087
|
url?: boolean | "relative" | undefined;
|
2070
|
-
dynamicImportMode?: "
|
2088
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2071
2089
|
dynamicImportPreload?: number | boolean | undefined;
|
2072
2090
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2073
2091
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2074
|
-
importMeta?: boolean | undefined;
|
2075
2092
|
exprContextCritical?: boolean | undefined;
|
2076
2093
|
wrappedContextCritical?: boolean | undefined;
|
2077
2094
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2086,12 +2103,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2086
2103
|
requireResolve?: boolean | undefined;
|
2087
2104
|
importDynamic?: boolean | undefined;
|
2088
2105
|
}, {
|
2106
|
+
importMeta?: boolean | undefined;
|
2089
2107
|
url?: boolean | "relative" | undefined;
|
2090
|
-
dynamicImportMode?: "
|
2108
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2091
2109
|
dynamicImportPreload?: number | boolean | undefined;
|
2092
2110
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2093
2111
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2094
|
-
importMeta?: boolean | undefined;
|
2095
2112
|
exprContextCritical?: boolean | undefined;
|
2096
2113
|
wrappedContextCritical?: boolean | undefined;
|
2097
2114
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2115,7 +2132,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2115
2132
|
url: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"relative">, z.ZodBoolean]>>;
|
2116
2133
|
exprContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2117
2134
|
wrappedContextCritical: z.ZodOptional<z.ZodBoolean>;
|
2118
|
-
wrappedContextRegExp: z.ZodOptional<z.
|
2135
|
+
wrappedContextRegExp: z.ZodOptional<z.Schema<RegExp, z.ZodTypeDef, RegExp>>;
|
2119
2136
|
exportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2120
2137
|
importExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
2121
2138
|
reexportExportsPresence: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["error", "warn", "auto"]>, z.ZodLiteral<false>]>>;
|
@@ -2127,12 +2144,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2127
2144
|
requireResolve: z.ZodOptional<z.ZodBoolean>;
|
2128
2145
|
importDynamic: z.ZodOptional<z.ZodBoolean>;
|
2129
2146
|
}, "strict", z.ZodTypeAny, {
|
2147
|
+
importMeta?: boolean | undefined;
|
2130
2148
|
url?: boolean | "relative" | undefined;
|
2131
|
-
dynamicImportMode?: "
|
2149
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2132
2150
|
dynamicImportPreload?: number | boolean | undefined;
|
2133
2151
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2134
2152
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2135
|
-
importMeta?: boolean | undefined;
|
2136
2153
|
exprContextCritical?: boolean | undefined;
|
2137
2154
|
wrappedContextCritical?: boolean | undefined;
|
2138
2155
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2147,12 +2164,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2147
2164
|
requireResolve?: boolean | undefined;
|
2148
2165
|
importDynamic?: boolean | undefined;
|
2149
2166
|
}, {
|
2167
|
+
importMeta?: boolean | undefined;
|
2150
2168
|
url?: boolean | "relative" | undefined;
|
2151
|
-
dynamicImportMode?: "
|
2169
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2152
2170
|
dynamicImportPreload?: number | boolean | undefined;
|
2153
2171
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2154
2172
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2155
|
-
importMeta?: boolean | undefined;
|
2156
2173
|
exprContextCritical?: boolean | undefined;
|
2157
2174
|
wrappedContextCritical?: boolean | undefined;
|
2158
2175
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2178,12 +2195,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2178
2195
|
namedExports?: boolean | undefined;
|
2179
2196
|
} | undefined;
|
2180
2197
|
javascript?: {
|
2198
|
+
importMeta?: boolean | undefined;
|
2181
2199
|
url?: boolean | "relative" | undefined;
|
2182
|
-
dynamicImportMode?: "
|
2200
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2183
2201
|
dynamicImportPreload?: number | boolean | undefined;
|
2184
2202
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2185
2203
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2186
|
-
importMeta?: boolean | undefined;
|
2187
2204
|
exprContextCritical?: boolean | undefined;
|
2188
2205
|
wrappedContextCritical?: boolean | undefined;
|
2189
2206
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2204,12 +2221,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2204
2221
|
} | undefined;
|
2205
2222
|
} | undefined;
|
2206
2223
|
"javascript/auto"?: {
|
2224
|
+
importMeta?: boolean | undefined;
|
2207
2225
|
url?: boolean | "relative" | undefined;
|
2208
|
-
dynamicImportMode?: "
|
2226
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2209
2227
|
dynamicImportPreload?: number | boolean | undefined;
|
2210
2228
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2211
2229
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2212
|
-
importMeta?: boolean | undefined;
|
2213
2230
|
exprContextCritical?: boolean | undefined;
|
2214
2231
|
wrappedContextCritical?: boolean | undefined;
|
2215
2232
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2225,12 +2242,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2225
2242
|
importDynamic?: boolean | undefined;
|
2226
2243
|
} | undefined;
|
2227
2244
|
"javascript/dynamic"?: {
|
2245
|
+
importMeta?: boolean | undefined;
|
2228
2246
|
url?: boolean | "relative" | undefined;
|
2229
|
-
dynamicImportMode?: "
|
2247
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2230
2248
|
dynamicImportPreload?: number | boolean | undefined;
|
2231
2249
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2232
2250
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2233
|
-
importMeta?: boolean | undefined;
|
2234
2251
|
exprContextCritical?: boolean | undefined;
|
2235
2252
|
wrappedContextCritical?: boolean | undefined;
|
2236
2253
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2246,12 +2263,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2246
2263
|
importDynamic?: boolean | undefined;
|
2247
2264
|
} | undefined;
|
2248
2265
|
"javascript/esm"?: {
|
2266
|
+
importMeta?: boolean | undefined;
|
2249
2267
|
url?: boolean | "relative" | undefined;
|
2250
|
-
dynamicImportMode?: "
|
2268
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2251
2269
|
dynamicImportPreload?: number | boolean | undefined;
|
2252
2270
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2253
2271
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2254
|
-
importMeta?: boolean | undefined;
|
2255
2272
|
exprContextCritical?: boolean | undefined;
|
2256
2273
|
wrappedContextCritical?: boolean | undefined;
|
2257
2274
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2277,12 +2294,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2277
2294
|
namedExports?: boolean | undefined;
|
2278
2295
|
} | undefined;
|
2279
2296
|
javascript?: {
|
2297
|
+
importMeta?: boolean | undefined;
|
2280
2298
|
url?: boolean | "relative" | undefined;
|
2281
|
-
dynamicImportMode?: "
|
2299
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2282
2300
|
dynamicImportPreload?: number | boolean | undefined;
|
2283
2301
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2284
2302
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2285
|
-
importMeta?: boolean | undefined;
|
2286
2303
|
exprContextCritical?: boolean | undefined;
|
2287
2304
|
wrappedContextCritical?: boolean | undefined;
|
2288
2305
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2303,12 +2320,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2303
2320
|
} | undefined;
|
2304
2321
|
} | undefined;
|
2305
2322
|
"javascript/auto"?: {
|
2323
|
+
importMeta?: boolean | undefined;
|
2306
2324
|
url?: boolean | "relative" | undefined;
|
2307
|
-
dynamicImportMode?: "
|
2325
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2308
2326
|
dynamicImportPreload?: number | boolean | undefined;
|
2309
2327
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2310
2328
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2311
|
-
importMeta?: boolean | undefined;
|
2312
2329
|
exprContextCritical?: boolean | undefined;
|
2313
2330
|
wrappedContextCritical?: boolean | undefined;
|
2314
2331
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2324,12 +2341,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2324
2341
|
importDynamic?: boolean | undefined;
|
2325
2342
|
} | undefined;
|
2326
2343
|
"javascript/dynamic"?: {
|
2344
|
+
importMeta?: boolean | undefined;
|
2327
2345
|
url?: boolean | "relative" | undefined;
|
2328
|
-
dynamicImportMode?: "
|
2346
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2329
2347
|
dynamicImportPreload?: number | boolean | undefined;
|
2330
2348
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2331
2349
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2332
|
-
importMeta?: boolean | undefined;
|
2333
2350
|
exprContextCritical?: boolean | undefined;
|
2334
2351
|
wrappedContextCritical?: boolean | undefined;
|
2335
2352
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2345,12 +2362,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2345
2362
|
importDynamic?: boolean | undefined;
|
2346
2363
|
} | undefined;
|
2347
2364
|
"javascript/esm"?: {
|
2365
|
+
importMeta?: boolean | undefined;
|
2348
2366
|
url?: boolean | "relative" | undefined;
|
2349
|
-
dynamicImportMode?: "
|
2367
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2350
2368
|
dynamicImportPreload?: number | boolean | undefined;
|
2351
2369
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2352
2370
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2353
|
-
importMeta?: boolean | undefined;
|
2354
2371
|
exprContextCritical?: boolean | undefined;
|
2355
2372
|
wrappedContextCritical?: boolean | undefined;
|
2356
2373
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2367,7 +2384,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2367
2384
|
} | undefined;
|
2368
2385
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
2369
2386
|
generator: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
2370
|
-
asset: z.ZodOptional<z.ZodObject<
|
2387
|
+
asset: z.ZodOptional<z.ZodObject<{
|
2371
2388
|
dataUrl: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
2372
2389
|
encoding: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodLiteral<"base64">]>>;
|
2373
2390
|
mimetype: z.ZodOptional<z.ZodString>;
|
@@ -2377,9 +2394,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2377
2394
|
}, {
|
2378
2395
|
mimetype?: string | undefined;
|
2379
2396
|
encoding?: false | "base64" | undefined;
|
2380
|
-
}>, z.ZodFunction<z.ZodTuple<[z.
|
2397
|
+
}>, z.ZodFunction<z.ZodTuple<[z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
2381
2398
|
filename: z.ZodString;
|
2382
|
-
module: z.
|
2399
|
+
module: z.Schema<Module, z.ZodTypeDef, Module>;
|
2383
2400
|
}, "strict", z.ZodTypeAny, {
|
2384
2401
|
module: Module;
|
2385
2402
|
filename: string;
|
@@ -2387,11 +2404,11 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2387
2404
|
module: Module;
|
2388
2405
|
filename: string;
|
2389
2406
|
}>], z.ZodUnknown>, z.ZodString>]>>;
|
2390
|
-
}
|
2407
|
+
} & {
|
2391
2408
|
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
|
-
}
|
2409
|
+
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>]>>;
|
2410
|
+
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>]>]>>;
|
2411
|
+
}, "strict", z.ZodTypeAny, {
|
2395
2412
|
emit?: boolean | undefined;
|
2396
2413
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2397
2414
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2424,9 +2441,9 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2424
2441
|
}, {
|
2425
2442
|
mimetype?: string | undefined;
|
2426
2443
|
encoding?: false | "base64" | undefined;
|
2427
|
-
}>, z.ZodFunction<z.ZodTuple<[z.
|
2444
|
+
}>, z.ZodFunction<z.ZodTuple<[z.Schema<Buffer<ArrayBufferLike>, z.ZodTypeDef, Buffer<ArrayBufferLike>>, z.ZodObject<{
|
2428
2445
|
filename: z.ZodString;
|
2429
|
-
module: z.
|
2446
|
+
module: z.Schema<Module, z.ZodTypeDef, Module>;
|
2430
2447
|
}, "strict", z.ZodTypeAny, {
|
2431
2448
|
module: Module;
|
2432
2449
|
filename: string;
|
@@ -2453,8 +2470,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2453
2470
|
}>>;
|
2454
2471
|
"asset/resource": z.ZodOptional<z.ZodObject<{
|
2455
2472
|
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.
|
2473
|
+
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>]>>;
|
2474
|
+
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
2475
|
}, "strict", z.ZodTypeAny, {
|
2459
2476
|
emit?: boolean | undefined;
|
2460
2477
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -2606,7 +2623,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2606
2623
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
2607
2624
|
} | undefined;
|
2608
2625
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
2609
|
-
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.
|
2626
|
+
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
2627
|
}, "strict", z.ZodTypeAny, {
|
2611
2628
|
parser?: {
|
2612
2629
|
css?: {
|
@@ -2619,12 +2636,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2619
2636
|
namedExports?: boolean | undefined;
|
2620
2637
|
} | undefined;
|
2621
2638
|
javascript?: {
|
2639
|
+
importMeta?: boolean | undefined;
|
2622
2640
|
url?: boolean | "relative" | undefined;
|
2623
|
-
dynamicImportMode?: "
|
2641
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2624
2642
|
dynamicImportPreload?: number | boolean | undefined;
|
2625
2643
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2626
2644
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2627
|
-
importMeta?: boolean | undefined;
|
2628
2645
|
exprContextCritical?: boolean | undefined;
|
2629
2646
|
wrappedContextCritical?: boolean | undefined;
|
2630
2647
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2645,12 +2662,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2645
2662
|
} | undefined;
|
2646
2663
|
} | undefined;
|
2647
2664
|
"javascript/auto"?: {
|
2665
|
+
importMeta?: boolean | undefined;
|
2648
2666
|
url?: boolean | "relative" | undefined;
|
2649
|
-
dynamicImportMode?: "
|
2667
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2650
2668
|
dynamicImportPreload?: number | boolean | undefined;
|
2651
2669
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2652
2670
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2653
|
-
importMeta?: boolean | undefined;
|
2654
2671
|
exprContextCritical?: boolean | undefined;
|
2655
2672
|
wrappedContextCritical?: boolean | undefined;
|
2656
2673
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2666,12 +2683,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2666
2683
|
importDynamic?: boolean | undefined;
|
2667
2684
|
} | undefined;
|
2668
2685
|
"javascript/dynamic"?: {
|
2686
|
+
importMeta?: boolean | undefined;
|
2669
2687
|
url?: boolean | "relative" | undefined;
|
2670
|
-
dynamicImportMode?: "
|
2688
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2671
2689
|
dynamicImportPreload?: number | boolean | undefined;
|
2672
2690
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2673
2691
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2674
|
-
importMeta?: boolean | undefined;
|
2675
2692
|
exprContextCritical?: boolean | undefined;
|
2676
2693
|
wrappedContextCritical?: boolean | undefined;
|
2677
2694
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2687,12 +2704,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2687
2704
|
importDynamic?: boolean | undefined;
|
2688
2705
|
} | undefined;
|
2689
2706
|
"javascript/esm"?: {
|
2707
|
+
importMeta?: boolean | undefined;
|
2690
2708
|
url?: boolean | "relative" | undefined;
|
2691
|
-
dynamicImportMode?: "
|
2709
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2692
2710
|
dynamicImportPreload?: number | boolean | undefined;
|
2693
2711
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2694
2712
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2695
|
-
importMeta?: boolean | undefined;
|
2696
2713
|
exprContextCritical?: boolean | undefined;
|
2697
2714
|
wrappedContextCritical?: boolean | undefined;
|
2698
2715
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2770,12 +2787,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2770
2787
|
namedExports?: boolean | undefined;
|
2771
2788
|
} | undefined;
|
2772
2789
|
javascript?: {
|
2790
|
+
importMeta?: boolean | undefined;
|
2773
2791
|
url?: boolean | "relative" | undefined;
|
2774
|
-
dynamicImportMode?: "
|
2792
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2775
2793
|
dynamicImportPreload?: number | boolean | undefined;
|
2776
2794
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2777
2795
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2778
|
-
importMeta?: boolean | undefined;
|
2779
2796
|
exprContextCritical?: boolean | undefined;
|
2780
2797
|
wrappedContextCritical?: boolean | undefined;
|
2781
2798
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2796,12 +2813,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2796
2813
|
} | undefined;
|
2797
2814
|
} | undefined;
|
2798
2815
|
"javascript/auto"?: {
|
2816
|
+
importMeta?: boolean | undefined;
|
2799
2817
|
url?: boolean | "relative" | undefined;
|
2800
|
-
dynamicImportMode?: "
|
2818
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2801
2819
|
dynamicImportPreload?: number | boolean | undefined;
|
2802
2820
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2803
2821
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2804
|
-
importMeta?: boolean | undefined;
|
2805
2822
|
exprContextCritical?: boolean | undefined;
|
2806
2823
|
wrappedContextCritical?: boolean | undefined;
|
2807
2824
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2817,12 +2834,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2817
2834
|
importDynamic?: boolean | undefined;
|
2818
2835
|
} | undefined;
|
2819
2836
|
"javascript/dynamic"?: {
|
2837
|
+
importMeta?: boolean | undefined;
|
2820
2838
|
url?: boolean | "relative" | undefined;
|
2821
|
-
dynamicImportMode?: "
|
2839
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2822
2840
|
dynamicImportPreload?: number | boolean | undefined;
|
2823
2841
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2824
2842
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2825
|
-
importMeta?: boolean | undefined;
|
2826
2843
|
exprContextCritical?: boolean | undefined;
|
2827
2844
|
wrappedContextCritical?: boolean | undefined;
|
2828
2845
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2838,12 +2855,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2838
2855
|
importDynamic?: boolean | undefined;
|
2839
2856
|
} | undefined;
|
2840
2857
|
"javascript/esm"?: {
|
2858
|
+
importMeta?: boolean | undefined;
|
2841
2859
|
url?: boolean | "relative" | undefined;
|
2842
|
-
dynamicImportMode?: "
|
2860
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2843
2861
|
dynamicImportPreload?: number | boolean | undefined;
|
2844
2862
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2845
2863
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2846
|
-
importMeta?: boolean | undefined;
|
2847
2864
|
exprContextCritical?: boolean | undefined;
|
2848
2865
|
wrappedContextCritical?: boolean | undefined;
|
2849
2866
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2943,12 +2960,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2943
2960
|
namedExports?: boolean | undefined;
|
2944
2961
|
} | undefined;
|
2945
2962
|
javascript?: {
|
2963
|
+
importMeta?: boolean | undefined;
|
2946
2964
|
url?: boolean | "relative" | undefined;
|
2947
|
-
dynamicImportMode?: "
|
2965
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2948
2966
|
dynamicImportPreload?: number | boolean | undefined;
|
2949
2967
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2950
2968
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2951
|
-
importMeta?: boolean | undefined;
|
2952
2969
|
exprContextCritical?: boolean | undefined;
|
2953
2970
|
wrappedContextCritical?: boolean | undefined;
|
2954
2971
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2969,12 +2986,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2969
2986
|
} | undefined;
|
2970
2987
|
} | undefined;
|
2971
2988
|
"javascript/auto"?: {
|
2989
|
+
importMeta?: boolean | undefined;
|
2972
2990
|
url?: boolean | "relative" | undefined;
|
2973
|
-
dynamicImportMode?: "
|
2991
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2974
2992
|
dynamicImportPreload?: number | boolean | undefined;
|
2975
2993
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2976
2994
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2977
|
-
importMeta?: boolean | undefined;
|
2978
2995
|
exprContextCritical?: boolean | undefined;
|
2979
2996
|
wrappedContextCritical?: boolean | undefined;
|
2980
2997
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -2990,12 +3007,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
2990
3007
|
importDynamic?: boolean | undefined;
|
2991
3008
|
} | undefined;
|
2992
3009
|
"javascript/dynamic"?: {
|
3010
|
+
importMeta?: boolean | undefined;
|
2993
3011
|
url?: boolean | "relative" | undefined;
|
2994
|
-
dynamicImportMode?: "
|
3012
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
2995
3013
|
dynamicImportPreload?: number | boolean | undefined;
|
2996
3014
|
dynamicImportPrefetch?: number | boolean | undefined;
|
2997
3015
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
2998
|
-
importMeta?: boolean | undefined;
|
2999
3016
|
exprContextCritical?: boolean | undefined;
|
3000
3017
|
wrappedContextCritical?: boolean | undefined;
|
3001
3018
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3011,12 +3028,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3011
3028
|
importDynamic?: boolean | undefined;
|
3012
3029
|
} | undefined;
|
3013
3030
|
"javascript/esm"?: {
|
3031
|
+
importMeta?: boolean | undefined;
|
3014
3032
|
url?: boolean | "relative" | undefined;
|
3015
|
-
dynamicImportMode?: "
|
3033
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3016
3034
|
dynamicImportPreload?: number | boolean | undefined;
|
3017
3035
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3018
3036
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3019
|
-
importMeta?: boolean | undefined;
|
3020
3037
|
exprContextCritical?: boolean | undefined;
|
3021
3038
|
wrappedContextCritical?: boolean | undefined;
|
3022
3039
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3084,197 +3101,31 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3084
3101
|
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3085
3102
|
} | undefined;
|
3086
3103
|
resolve?: t.ResolveOptions | undefined;
|
3087
|
-
|
3088
|
-
|
3089
|
-
|
3090
|
-
|
3091
|
-
|
3092
|
-
|
3093
|
-
|
3094
|
-
|
3095
|
-
|
3096
|
-
|
3097
|
-
|
3098
|
-
|
3099
|
-
|
3100
|
-
|
3101
|
-
|
3102
|
-
maxEntrypointSize?: number | undefined;
|
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;
|
3104
|
+
entry?: string | string[] | Record<string, string | string[] | {
|
3105
|
+
import: string | string[];
|
3106
|
+
runtime?: string | false | undefined;
|
3107
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3108
|
+
layer?: string | null | undefined;
|
3109
|
+
baseUri?: string | undefined;
|
3110
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3111
|
+
chunkLoading?: string | false | undefined;
|
3112
|
+
asyncChunks?: boolean | undefined;
|
3113
|
+
library?: {
|
3114
|
+
type: string;
|
3115
|
+
name?: string | string[] | {
|
3116
|
+
commonjs?: string | undefined;
|
3117
|
+
amd?: string | undefined;
|
3118
|
+
root?: string | string[] | undefined;
|
3117
3119
|
} | undefined;
|
3118
|
-
|
3119
|
-
|
3120
|
-
|
3120
|
+
amdContainer?: string | undefined;
|
3121
|
+
auxiliaryComment?: string | {
|
3122
|
+
commonjs?: string | undefined;
|
3123
|
+
amd?: string | undefined;
|
3124
|
+
commonjs2?: string | undefined;
|
3125
|
+
root?: string | undefined;
|
3121
3126
|
} | 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;
|
3127
|
+
export?: string | string[] | undefined;
|
3128
|
+
umdNamedDefine?: boolean | undefined;
|
3278
3129
|
} | undefined;
|
3279
3130
|
dependOn?: string | string[] | undefined;
|
3280
3131
|
wasmLoading?: string | false | undefined;
|
@@ -3297,8 +3148,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3297
3148
|
amdContainer?: string | undefined;
|
3298
3149
|
auxiliaryComment?: string | {
|
3299
3150
|
commonjs?: string | undefined;
|
3300
|
-
commonjs2?: string | undefined;
|
3301
3151
|
amd?: string | undefined;
|
3152
|
+
commonjs2?: string | undefined;
|
3302
3153
|
root?: string | undefined;
|
3303
3154
|
} | undefined;
|
3304
3155
|
export?: string | string[] | undefined;
|
@@ -3325,8 +3176,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3325
3176
|
amdContainer?: string | undefined;
|
3326
3177
|
auxiliaryComment?: string | {
|
3327
3178
|
commonjs?: string | undefined;
|
3328
|
-
commonjs2?: string | undefined;
|
3329
3179
|
amd?: string | undefined;
|
3180
|
+
commonjs2?: string | undefined;
|
3330
3181
|
root?: string | undefined;
|
3331
3182
|
} | undefined;
|
3332
3183
|
export?: string | string[] | undefined;
|
@@ -3335,33 +3186,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3335
3186
|
dependOn?: string | string[] | undefined;
|
3336
3187
|
wasmLoading?: string | false | undefined;
|
3337
3188
|
}>>) | undefined;
|
3338
|
-
|
3339
|
-
|
3340
|
-
|
3341
|
-
|
3342
|
-
|
3343
|
-
|
3344
|
-
|
3189
|
+
mode?: "development" | "none" | "production" | undefined;
|
3190
|
+
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;
|
3191
|
+
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3192
|
+
node?: false | {
|
3193
|
+
global?: boolean | "warn" | undefined;
|
3194
|
+
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3195
|
+
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3345
3196
|
} | undefined;
|
3346
|
-
|
3347
|
-
|
3348
|
-
|
3197
|
+
amd?: false | Record<string, any> | undefined;
|
3198
|
+
profile?: boolean | undefined;
|
3199
|
+
cache?: boolean | undefined;
|
3200
|
+
context?: string | undefined;
|
3201
|
+
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;
|
3202
|
+
watch?: boolean | undefined;
|
3349
3203
|
output?: {
|
3350
3204
|
module?: boolean | undefined;
|
3205
|
+
path?: string | undefined;
|
3351
3206
|
environment?: {
|
3352
3207
|
module?: boolean | undefined;
|
3208
|
+
dynamicImport?: boolean | undefined;
|
3209
|
+
optionalChaining?: boolean | undefined;
|
3353
3210
|
arrowFunction?: boolean | undefined;
|
3354
3211
|
asyncFunction?: boolean | undefined;
|
3355
3212
|
bigIntLiteral?: boolean | undefined;
|
3356
3213
|
const?: boolean | undefined;
|
3357
3214
|
destructuring?: boolean | undefined;
|
3358
3215
|
document?: boolean | undefined;
|
3359
|
-
dynamicImport?: boolean | undefined;
|
3360
3216
|
dynamicImportInWorker?: boolean | undefined;
|
3361
3217
|
forOf?: boolean | undefined;
|
3362
3218
|
globalThis?: boolean | undefined;
|
3363
3219
|
nodePrefixForCoreModules?: boolean | undefined;
|
3364
|
-
optionalChaining?: boolean | undefined;
|
3365
3220
|
templateLiteral?: boolean | undefined;
|
3366
3221
|
} | undefined;
|
3367
3222
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3383,20 +3238,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3383
3238
|
amdContainer?: string | undefined;
|
3384
3239
|
auxiliaryComment?: string | {
|
3385
3240
|
commonjs?: string | undefined;
|
3386
|
-
commonjs2?: string | undefined;
|
3387
3241
|
amd?: string | undefined;
|
3242
|
+
commonjs2?: string | undefined;
|
3388
3243
|
root?: string | undefined;
|
3389
3244
|
} | undefined;
|
3390
3245
|
export?: string | string[] | undefined;
|
3391
3246
|
umdNamedDefine?: boolean | undefined;
|
3392
3247
|
} | undefined;
|
3393
|
-
path?: string | undefined;
|
3394
3248
|
wasmLoading?: string | false | undefined;
|
3395
3249
|
cssHeadDataCompression?: boolean | undefined;
|
3396
3250
|
auxiliaryComment?: string | {
|
3397
3251
|
commonjs?: string | undefined;
|
3398
|
-
commonjs2?: string | undefined;
|
3399
3252
|
amd?: string | undefined;
|
3253
|
+
commonjs2?: string | undefined;
|
3400
3254
|
root?: string | undefined;
|
3401
3255
|
} | undefined;
|
3402
3256
|
umdNamedDefine?: boolean | undefined;
|
@@ -3430,23 +3284,189 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3430
3284
|
policyName?: string | undefined;
|
3431
3285
|
onPolicyCreationFailure?: "continue" | "stop" | undefined;
|
3432
3286
|
} | 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;
|
3287
|
+
sourceMapFilename?: string | undefined;
|
3288
|
+
hashDigest?: string | undefined;
|
3289
|
+
hashDigestLength?: number | undefined;
|
3290
|
+
hashFunction?: "md4" | "xxhash64" | undefined;
|
3291
|
+
hashSalt?: string | undefined;
|
3292
|
+
workerChunkLoading?: string | false | undefined;
|
3293
|
+
workerWasmLoading?: string | false | undefined;
|
3294
|
+
workerPublicPath?: string | undefined;
|
3295
|
+
scriptType?: false | "module" | "text/javascript" | undefined;
|
3296
|
+
devtoolNamespace?: string | undefined;
|
3297
|
+
devtoolModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3298
|
+
devtoolFallbackModuleFilenameTemplate?: string | ((args_0: any) => any) | undefined;
|
3299
|
+
chunkLoadTimeout?: number | undefined;
|
3300
|
+
charset?: boolean | undefined;
|
3301
|
+
compareBeforeEmit?: boolean | undefined;
|
3302
|
+
} | undefined;
|
3303
|
+
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3304
|
+
ids?: boolean | undefined;
|
3305
|
+
runtime?: boolean | undefined;
|
3306
|
+
hash?: boolean | undefined;
|
3307
|
+
modules?: boolean | undefined;
|
3308
|
+
all?: boolean | undefined;
|
3309
|
+
outputPath?: boolean | undefined;
|
3310
|
+
env?: boolean | undefined;
|
3311
|
+
publicPath?: boolean | undefined;
|
3312
|
+
chunks?: boolean | undefined;
|
3313
|
+
source?: boolean | undefined;
|
3314
|
+
usedExports?: boolean | undefined;
|
3315
|
+
assets?: boolean | undefined;
|
3316
|
+
version?: boolean | undefined;
|
3317
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3318
|
+
entrypoints?: boolean | "auto" | undefined;
|
3319
|
+
chunkGroups?: boolean | undefined;
|
3320
|
+
warnings?: boolean | undefined;
|
3321
|
+
warningsCount?: boolean | undefined;
|
3322
|
+
errors?: boolean | undefined;
|
3323
|
+
errorsCount?: boolean | undefined;
|
3324
|
+
colors?: boolean | undefined;
|
3325
|
+
reasons?: boolean | undefined;
|
3326
|
+
chunkModules?: boolean | undefined;
|
3327
|
+
chunkRelations?: boolean | undefined;
|
3328
|
+
timings?: boolean | undefined;
|
3329
|
+
builtAt?: boolean | undefined;
|
3330
|
+
moduleAssets?: boolean | undefined;
|
3331
|
+
nestedModules?: boolean | undefined;
|
3332
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3333
|
+
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3334
|
+
loggingTrace?: boolean | undefined;
|
3335
|
+
runtimeModules?: boolean | undefined;
|
3336
|
+
children?: boolean | undefined;
|
3337
|
+
providedExports?: boolean | undefined;
|
3338
|
+
optimizationBailout?: boolean | undefined;
|
3339
|
+
groupModulesByType?: boolean | undefined;
|
3340
|
+
groupModulesByCacheStatus?: boolean | undefined;
|
3341
|
+
groupModulesByLayer?: boolean | undefined;
|
3342
|
+
groupModulesByAttributes?: boolean | undefined;
|
3343
|
+
groupModulesByPath?: boolean | undefined;
|
3344
|
+
groupModulesByExtension?: boolean | undefined;
|
3345
|
+
modulesSpace?: number | undefined;
|
3346
|
+
chunkModulesSpace?: number | undefined;
|
3347
|
+
nestedModulesSpace?: number | undefined;
|
3348
|
+
relatedAssets?: boolean | undefined;
|
3349
|
+
groupAssetsByEmitStatus?: boolean | undefined;
|
3350
|
+
groupAssetsByInfo?: boolean | undefined;
|
3351
|
+
groupAssetsByPath?: boolean | undefined;
|
3352
|
+
groupAssetsByExtension?: boolean | undefined;
|
3353
|
+
groupAssetsByChunk?: boolean | undefined;
|
3354
|
+
assetsSpace?: number | undefined;
|
3355
|
+
orphanModules?: boolean | undefined;
|
3356
|
+
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;
|
3357
|
+
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3358
|
+
modulesSort?: string | undefined;
|
3359
|
+
chunkModulesSort?: string | undefined;
|
3360
|
+
nestedModulesSort?: string | undefined;
|
3361
|
+
chunksSort?: string | undefined;
|
3362
|
+
assetsSort?: string | undefined;
|
3363
|
+
performance?: boolean | undefined;
|
3364
|
+
chunkGroupAuxiliary?: boolean | undefined;
|
3365
|
+
chunkGroupChildren?: boolean | undefined;
|
3366
|
+
chunkGroupMaxAssets?: number | undefined;
|
3367
|
+
dependentModules?: boolean | undefined;
|
3368
|
+
chunkOrigins?: boolean | undefined;
|
3369
|
+
depth?: boolean | undefined;
|
3370
|
+
reasonsSpace?: number | undefined;
|
3371
|
+
groupReasonsByOrigin?: boolean | undefined;
|
3372
|
+
errorDetails?: boolean | undefined;
|
3373
|
+
errorStack?: boolean | undefined;
|
3374
|
+
moduleTrace?: boolean | undefined;
|
3375
|
+
cachedModules?: boolean | undefined;
|
3376
|
+
cachedAssets?: boolean | undefined;
|
3377
|
+
cached?: boolean | undefined;
|
3378
|
+
errorsSpace?: number | undefined;
|
3379
|
+
warningsSpace?: number | undefined;
|
3380
|
+
} | undefined;
|
3381
|
+
performance?: false | {
|
3382
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
3383
|
+
hints?: false | "error" | "warning" | undefined;
|
3384
|
+
maxAssetSize?: number | undefined;
|
3385
|
+
maxEntrypointSize?: number | undefined;
|
3386
|
+
} | undefined;
|
3387
|
+
experiments?: {
|
3388
|
+
css?: boolean | undefined;
|
3389
|
+
topLevelAwait?: boolean | undefined;
|
3390
|
+
cache?: boolean | {
|
3391
|
+
type: "memory";
|
3392
|
+
} | {
|
3393
|
+
type: "persistent";
|
3394
|
+
version?: string | undefined;
|
3395
|
+
buildDependencies?: string[] | undefined;
|
3396
|
+
snapshot?: {
|
3397
|
+
immutablePaths?: (string | RegExp)[] | undefined;
|
3398
|
+
unmanagedPaths?: (string | RegExp)[] | undefined;
|
3399
|
+
managedPaths?: (string | RegExp)[] | undefined;
|
3400
|
+
} | undefined;
|
3401
|
+
storage?: {
|
3402
|
+
type: "filesystem";
|
3403
|
+
directory?: string | undefined;
|
3404
|
+
} | undefined;
|
3405
|
+
} | undefined;
|
3406
|
+
lazyCompilation?: boolean | {
|
3407
|
+
entries?: boolean | undefined;
|
3408
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
3409
|
+
prefix?: string | undefined;
|
3410
|
+
serverUrl?: string | undefined;
|
3411
|
+
imports?: boolean | undefined;
|
3412
|
+
client?: string | undefined;
|
3413
|
+
} | undefined;
|
3414
|
+
asyncWebAssembly?: boolean | undefined;
|
3415
|
+
outputModule?: boolean | undefined;
|
3416
|
+
layers?: boolean | undefined;
|
3417
|
+
incremental?: boolean | {
|
3418
|
+
make?: boolean | undefined;
|
3419
|
+
providedExports?: boolean | undefined;
|
3420
|
+
sideEffects?: boolean | undefined;
|
3421
|
+
moduleIds?: boolean | undefined;
|
3422
|
+
chunkIds?: boolean | undefined;
|
3423
|
+
inferAsyncModules?: boolean | undefined;
|
3424
|
+
dependenciesDiagnostics?: boolean | undefined;
|
3425
|
+
buildChunkGraph?: boolean | undefined;
|
3426
|
+
modulesHashes?: boolean | undefined;
|
3427
|
+
modulesCodegen?: boolean | undefined;
|
3428
|
+
modulesRuntimeRequirements?: boolean | undefined;
|
3429
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
3430
|
+
chunksHashes?: boolean | undefined;
|
3431
|
+
chunksRender?: boolean | undefined;
|
3432
|
+
emitAssets?: boolean | undefined;
|
3433
|
+
} | undefined;
|
3434
|
+
parallelCodeSplitting?: boolean | undefined;
|
3435
|
+
futureDefaults?: boolean | undefined;
|
3436
|
+
rspackFuture?: {
|
3437
|
+
bundlerInfo?: {
|
3438
|
+
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
3439
|
+
version?: string | undefined;
|
3440
|
+
bundler?: string | undefined;
|
3441
|
+
} | undefined;
|
3442
|
+
} | undefined;
|
3443
|
+
buildHttp?: {
|
3444
|
+
allowedUris: (string | RegExp)[];
|
3445
|
+
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
3446
|
+
status: number;
|
3447
|
+
body: Buffer<ArrayBufferLike>;
|
3448
|
+
headers: Record<string, string>;
|
3449
|
+
}>) | undefined;
|
3450
|
+
lockfileLocation?: string | undefined;
|
3451
|
+
cacheLocation?: string | false | undefined;
|
3452
|
+
upgrade?: boolean | undefined;
|
3453
|
+
} | undefined;
|
3454
|
+
parallelLoader?: boolean | undefined;
|
3455
|
+
} | undefined;
|
3456
|
+
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;
|
3457
|
+
loader?: Record<string, any> | undefined;
|
3458
|
+
dependencies?: string[] | undefined;
|
3459
|
+
infrastructureLogging?: {
|
3460
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3461
|
+
colors?: boolean | undefined;
|
3462
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3463
|
+
console?: Console | undefined;
|
3464
|
+
appendOnly?: boolean | undefined;
|
3465
|
+
stream?: NodeJS.WritableStream | undefined;
|
3448
3466
|
} | undefined;
|
3449
|
-
|
3467
|
+
snapshot?: {} | undefined;
|
3468
|
+
extends?: string | string[] | undefined;
|
3469
|
+
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
3470
|
externalsPresets?: {
|
3451
3471
|
node?: boolean | undefined;
|
3452
3472
|
web?: boolean | undefined;
|
@@ -3459,32 +3479,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3459
3479
|
} | undefined;
|
3460
3480
|
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
3461
3481
|
watchOptions?: {
|
3482
|
+
ignored?: string | RegExp | string[] | undefined;
|
3462
3483
|
aggregateTimeout?: number | undefined;
|
3463
3484
|
followSymlinks?: boolean | undefined;
|
3464
|
-
ignored?: string | RegExp | string[] | undefined;
|
3465
3485
|
poll?: number | boolean | undefined;
|
3466
3486
|
stdin?: boolean | undefined;
|
3467
3487
|
} | undefined;
|
3468
|
-
watch?: boolean | undefined;
|
3469
3488
|
optimization?: {
|
3470
3489
|
splitChunks?: false | {
|
3471
3490
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
3472
3491
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3473
|
-
chunks?: RegExp | "
|
3492
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3474
3493
|
defaultSizeTypes?: string[] | undefined;
|
3475
3494
|
cacheGroups?: Record<string, false | {
|
3476
3495
|
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
3496
|
type?: string | RegExp | undefined;
|
3481
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3482
3497
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
3483
3498
|
moduleGraph: ModuleGraph;
|
3484
3499
|
chunkGraph: ChunkGraph;
|
3485
3500
|
}, ...args: unknown[]) => boolean) | undefined;
|
3501
|
+
priority?: number | undefined;
|
3502
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
3503
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3504
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3486
3505
|
defaultSizeTypes?: string[] | undefined;
|
3487
3506
|
minSize?: number | Record<string, number> | undefined;
|
3507
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
3488
3508
|
maxSize?: number | Record<string, number> | undefined;
|
3489
3509
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
3490
3510
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -3498,7 +3518,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3498
3518
|
idHint?: string | undefined;
|
3499
3519
|
}> | undefined;
|
3500
3520
|
fallbackCacheGroup?: {
|
3501
|
-
chunks?: RegExp | "
|
3521
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
3502
3522
|
minSize?: number | undefined;
|
3503
3523
|
maxSize?: number | undefined;
|
3504
3524
|
maxAsyncSize?: number | undefined;
|
@@ -3506,6 +3526,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3506
3526
|
automaticNameDelimiter?: string | undefined;
|
3507
3527
|
} | undefined;
|
3508
3528
|
minSize?: number | Record<string, number> | undefined;
|
3529
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
3509
3530
|
maxSize?: number | Record<string, number> | undefined;
|
3510
3531
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
3511
3532
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -3540,7 +3561,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3540
3561
|
avoidEntryIife?: boolean | undefined;
|
3541
3562
|
} | undefined;
|
3542
3563
|
resolveLoader?: t.ResolveOptions | undefined;
|
3543
|
-
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3544
3564
|
devServer?: t.DevServer | undefined;
|
3545
3565
|
bail?: boolean | undefined;
|
3546
3566
|
}, {
|
@@ -3557,12 +3577,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3557
3577
|
namedExports?: boolean | undefined;
|
3558
3578
|
} | undefined;
|
3559
3579
|
javascript?: {
|
3580
|
+
importMeta?: boolean | undefined;
|
3560
3581
|
url?: boolean | "relative" | undefined;
|
3561
|
-
dynamicImportMode?: "
|
3582
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3562
3583
|
dynamicImportPreload?: number | boolean | undefined;
|
3563
3584
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3564
3585
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3565
|
-
importMeta?: boolean | undefined;
|
3566
3586
|
exprContextCritical?: boolean | undefined;
|
3567
3587
|
wrappedContextCritical?: boolean | undefined;
|
3568
3588
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3583,12 +3603,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3583
3603
|
} | undefined;
|
3584
3604
|
} | undefined;
|
3585
3605
|
"javascript/auto"?: {
|
3606
|
+
importMeta?: boolean | undefined;
|
3586
3607
|
url?: boolean | "relative" | undefined;
|
3587
|
-
dynamicImportMode?: "
|
3608
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3588
3609
|
dynamicImportPreload?: number | boolean | undefined;
|
3589
3610
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3590
3611
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3591
|
-
importMeta?: boolean | undefined;
|
3592
3612
|
exprContextCritical?: boolean | undefined;
|
3593
3613
|
wrappedContextCritical?: boolean | undefined;
|
3594
3614
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3604,12 +3624,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3604
3624
|
importDynamic?: boolean | undefined;
|
3605
3625
|
} | undefined;
|
3606
3626
|
"javascript/dynamic"?: {
|
3627
|
+
importMeta?: boolean | undefined;
|
3607
3628
|
url?: boolean | "relative" | undefined;
|
3608
|
-
dynamicImportMode?: "
|
3629
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3609
3630
|
dynamicImportPreload?: number | boolean | undefined;
|
3610
3631
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3611
3632
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3612
|
-
importMeta?: boolean | undefined;
|
3613
3633
|
exprContextCritical?: boolean | undefined;
|
3614
3634
|
wrappedContextCritical?: boolean | undefined;
|
3615
3635
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3625,12 +3645,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3625
3645
|
importDynamic?: boolean | undefined;
|
3626
3646
|
} | undefined;
|
3627
3647
|
"javascript/esm"?: {
|
3648
|
+
importMeta?: boolean | undefined;
|
3628
3649
|
url?: boolean | "relative" | undefined;
|
3629
|
-
dynamicImportMode?: "
|
3650
|
+
dynamicImportMode?: "lazy" | "weak" | "eager" | "lazy-once" | undefined;
|
3630
3651
|
dynamicImportPreload?: number | boolean | undefined;
|
3631
3652
|
dynamicImportPrefetch?: number | boolean | undefined;
|
3632
3653
|
dynamicImportFetchPriority?: "auto" | "low" | "high" | undefined;
|
3633
|
-
importMeta?: boolean | undefined;
|
3634
3654
|
exprContextCritical?: boolean | undefined;
|
3635
3655
|
wrappedContextCritical?: boolean | undefined;
|
3636
3656
|
wrappedContextRegExp?: RegExp | undefined;
|
@@ -3648,222 +3668,56 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3648
3668
|
} | Record<string, Record<string, any>> | undefined;
|
3649
3669
|
generator?: Record<string, Record<string, any>> | {
|
3650
3670
|
css?: {
|
3651
|
-
exportsOnly?: boolean | undefined;
|
3652
|
-
esModule?: boolean | undefined;
|
3653
|
-
} | undefined;
|
3654
|
-
"css/auto"?: {
|
3655
|
-
exportsOnly?: boolean | undefined;
|
3656
|
-
esModule?: boolean | undefined;
|
3657
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3658
|
-
localIdentName?: string | undefined;
|
3659
|
-
} | undefined;
|
3660
|
-
"css/module"?: {
|
3661
|
-
exportsOnly?: boolean | undefined;
|
3662
|
-
esModule?: boolean | undefined;
|
3663
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3664
|
-
localIdentName?: string | undefined;
|
3665
|
-
} | undefined;
|
3666
|
-
asset?: {
|
3667
|
-
emit?: boolean | undefined;
|
3668
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3669
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3670
|
-
dataUrl?: {
|
3671
|
-
mimetype?: string | undefined;
|
3672
|
-
encoding?: false | "base64" | undefined;
|
3673
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3674
|
-
module: Module;
|
3675
|
-
filename: string;
|
3676
|
-
}, ...args: unknown[]) => string) | undefined;
|
3677
|
-
} | undefined;
|
3678
|
-
json?: {
|
3679
|
-
JSONParse?: boolean | undefined;
|
3680
|
-
} | undefined;
|
3681
|
-
"asset/inline"?: {
|
3682
|
-
dataUrl?: {
|
3683
|
-
mimetype?: string | undefined;
|
3684
|
-
encoding?: false | "base64" | undefined;
|
3685
|
-
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3686
|
-
module: Module;
|
3687
|
-
filename: string;
|
3688
|
-
}, ...args: unknown[]) => string) | undefined;
|
3689
|
-
} | undefined;
|
3690
|
-
"asset/resource"?: {
|
3691
|
-
emit?: boolean | undefined;
|
3692
|
-
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3693
|
-
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3694
|
-
} | undefined;
|
3695
|
-
} | undefined;
|
3696
|
-
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3697
|
-
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3698
|
-
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3699
|
-
} | undefined;
|
3700
|
-
resolve?: t.ResolveOptions | 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;
|
3671
|
+
exportsOnly?: boolean | undefined;
|
3672
|
+
esModule?: boolean | undefined;
|
3673
|
+
} | undefined;
|
3674
|
+
"css/auto"?: {
|
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
|
+
"css/module"?: {
|
3681
|
+
exportsOnly?: boolean | undefined;
|
3682
|
+
esModule?: boolean | undefined;
|
3683
|
+
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
3684
|
+
localIdentName?: string | undefined;
|
3685
|
+
} | undefined;
|
3686
|
+
asset?: {
|
3687
|
+
emit?: boolean | undefined;
|
3688
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3689
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3690
|
+
dataUrl?: {
|
3691
|
+
mimetype?: string | undefined;
|
3692
|
+
encoding?: false | "base64" | undefined;
|
3693
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3694
|
+
module: Module;
|
3695
|
+
filename: string;
|
3696
|
+
}, ...args: unknown[]) => string) | undefined;
|
3697
|
+
} | undefined;
|
3698
|
+
json?: {
|
3699
|
+
JSONParse?: boolean | undefined;
|
3700
|
+
} | undefined;
|
3701
|
+
"asset/inline"?: {
|
3702
|
+
dataUrl?: {
|
3703
|
+
mimetype?: string | undefined;
|
3704
|
+
encoding?: false | "base64" | undefined;
|
3705
|
+
} | ((args_0: Buffer<ArrayBufferLike>, args_1: {
|
3706
|
+
module: Module;
|
3707
|
+
filename: string;
|
3708
|
+
}, ...args: unknown[]) => string) | undefined;
|
3709
|
+
} | undefined;
|
3710
|
+
"asset/resource"?: {
|
3711
|
+
emit?: boolean | undefined;
|
3712
|
+
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3713
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
3714
|
+
} | undefined;
|
3715
|
+
} | undefined;
|
3716
|
+
rules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3717
|
+
defaultRules?: (false | "" | 0 | "..." | t.RuleSetRule | null | undefined)[] | undefined;
|
3718
|
+
noParse?: string | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3865
3719
|
} | undefined;
|
3866
|
-
|
3720
|
+
resolve?: t.ResolveOptions | undefined;
|
3867
3721
|
entry?: string | string[] | Record<string, string | string[] | {
|
3868
3722
|
import: string | string[];
|
3869
3723
|
runtime?: string | false | undefined;
|
@@ -3883,8 +3737,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3883
3737
|
amdContainer?: string | undefined;
|
3884
3738
|
auxiliaryComment?: string | {
|
3885
3739
|
commonjs?: string | undefined;
|
3886
|
-
commonjs2?: string | undefined;
|
3887
3740
|
amd?: string | undefined;
|
3741
|
+
commonjs2?: string | undefined;
|
3888
3742
|
root?: string | undefined;
|
3889
3743
|
} | undefined;
|
3890
3744
|
export?: string | string[] | undefined;
|
@@ -3911,8 +3765,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3911
3765
|
amdContainer?: string | undefined;
|
3912
3766
|
auxiliaryComment?: string | {
|
3913
3767
|
commonjs?: string | undefined;
|
3914
|
-
commonjs2?: string | undefined;
|
3915
3768
|
amd?: string | undefined;
|
3769
|
+
commonjs2?: string | undefined;
|
3916
3770
|
root?: string | undefined;
|
3917
3771
|
} | undefined;
|
3918
3772
|
export?: string | string[] | undefined;
|
@@ -3939,8 +3793,8 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3939
3793
|
amdContainer?: string | undefined;
|
3940
3794
|
auxiliaryComment?: string | {
|
3941
3795
|
commonjs?: string | undefined;
|
3942
|
-
commonjs2?: string | undefined;
|
3943
3796
|
amd?: string | undefined;
|
3797
|
+
commonjs2?: string | undefined;
|
3944
3798
|
root?: string | undefined;
|
3945
3799
|
} | undefined;
|
3946
3800
|
export?: string | string[] | undefined;
|
@@ -3949,33 +3803,37 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3949
3803
|
dependOn?: string | string[] | undefined;
|
3950
3804
|
wasmLoading?: string | false | undefined;
|
3951
3805
|
}>>) | undefined;
|
3952
|
-
|
3953
|
-
|
3954
|
-
|
3955
|
-
|
3956
|
-
|
3957
|
-
|
3958
|
-
|
3806
|
+
mode?: "development" | "none" | "production" | undefined;
|
3807
|
+
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;
|
3808
|
+
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
3809
|
+
node?: false | {
|
3810
|
+
global?: boolean | "warn" | undefined;
|
3811
|
+
__dirname?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3812
|
+
__filename?: boolean | "warn-mock" | "mock" | "eval-only" | "node-module" | undefined;
|
3959
3813
|
} | undefined;
|
3960
|
-
|
3961
|
-
|
3962
|
-
|
3814
|
+
amd?: false | Record<string, any> | undefined;
|
3815
|
+
profile?: boolean | undefined;
|
3816
|
+
cache?: boolean | undefined;
|
3817
|
+
context?: string | undefined;
|
3818
|
+
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;
|
3819
|
+
watch?: boolean | undefined;
|
3963
3820
|
output?: {
|
3964
3821
|
module?: boolean | undefined;
|
3822
|
+
path?: string | undefined;
|
3965
3823
|
environment?: {
|
3966
3824
|
module?: boolean | undefined;
|
3825
|
+
dynamicImport?: boolean | undefined;
|
3826
|
+
optionalChaining?: boolean | undefined;
|
3967
3827
|
arrowFunction?: boolean | undefined;
|
3968
3828
|
asyncFunction?: boolean | undefined;
|
3969
3829
|
bigIntLiteral?: boolean | undefined;
|
3970
3830
|
const?: boolean | undefined;
|
3971
3831
|
destructuring?: boolean | undefined;
|
3972
3832
|
document?: boolean | undefined;
|
3973
|
-
dynamicImport?: boolean | undefined;
|
3974
3833
|
dynamicImportInWorker?: boolean | undefined;
|
3975
3834
|
forOf?: boolean | undefined;
|
3976
3835
|
globalThis?: boolean | undefined;
|
3977
3836
|
nodePrefixForCoreModules?: boolean | undefined;
|
3978
|
-
optionalChaining?: boolean | undefined;
|
3979
3837
|
templateLiteral?: boolean | undefined;
|
3980
3838
|
} | undefined;
|
3981
3839
|
publicPath?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
@@ -3997,20 +3855,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
3997
3855
|
amdContainer?: string | undefined;
|
3998
3856
|
auxiliaryComment?: string | {
|
3999
3857
|
commonjs?: string | undefined;
|
4000
|
-
commonjs2?: string | undefined;
|
4001
3858
|
amd?: string | undefined;
|
3859
|
+
commonjs2?: string | undefined;
|
4002
3860
|
root?: string | undefined;
|
4003
3861
|
} | undefined;
|
4004
3862
|
export?: string | string[] | undefined;
|
4005
3863
|
umdNamedDefine?: boolean | undefined;
|
4006
3864
|
} | undefined;
|
4007
|
-
path?: string | undefined;
|
4008
3865
|
wasmLoading?: string | false | undefined;
|
4009
3866
|
cssHeadDataCompression?: boolean | undefined;
|
4010
3867
|
auxiliaryComment?: string | {
|
4011
3868
|
commonjs?: string | undefined;
|
4012
|
-
commonjs2?: string | undefined;
|
4013
3869
|
amd?: string | undefined;
|
3870
|
+
commonjs2?: string | undefined;
|
4014
3871
|
root?: string | undefined;
|
4015
3872
|
} | undefined;
|
4016
3873
|
umdNamedDefine?: boolean | undefined;
|
@@ -4060,7 +3917,173 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4060
3917
|
charset?: boolean | undefined;
|
4061
3918
|
compareBeforeEmit?: boolean | undefined;
|
4062
3919
|
} | undefined;
|
4063
|
-
|
3920
|
+
stats?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | {
|
3921
|
+
ids?: boolean | undefined;
|
3922
|
+
runtime?: boolean | undefined;
|
3923
|
+
hash?: boolean | undefined;
|
3924
|
+
modules?: boolean | undefined;
|
3925
|
+
all?: boolean | undefined;
|
3926
|
+
outputPath?: boolean | undefined;
|
3927
|
+
env?: boolean | undefined;
|
3928
|
+
publicPath?: boolean | undefined;
|
3929
|
+
chunks?: boolean | undefined;
|
3930
|
+
source?: boolean | undefined;
|
3931
|
+
usedExports?: boolean | undefined;
|
3932
|
+
assets?: boolean | undefined;
|
3933
|
+
version?: boolean | undefined;
|
3934
|
+
preset?: boolean | "none" | "verbose" | "normal" | "errors-only" | "errors-warnings" | "minimal" | "detailed" | "summary" | undefined;
|
3935
|
+
entrypoints?: boolean | "auto" | undefined;
|
3936
|
+
chunkGroups?: boolean | undefined;
|
3937
|
+
warnings?: boolean | undefined;
|
3938
|
+
warningsCount?: boolean | undefined;
|
3939
|
+
errors?: boolean | undefined;
|
3940
|
+
errorsCount?: boolean | undefined;
|
3941
|
+
colors?: boolean | undefined;
|
3942
|
+
reasons?: boolean | undefined;
|
3943
|
+
chunkModules?: boolean | undefined;
|
3944
|
+
chunkRelations?: boolean | undefined;
|
3945
|
+
timings?: boolean | undefined;
|
3946
|
+
builtAt?: boolean | undefined;
|
3947
|
+
moduleAssets?: boolean | undefined;
|
3948
|
+
nestedModules?: boolean | undefined;
|
3949
|
+
logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
3950
|
+
loggingDebug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
3951
|
+
loggingTrace?: boolean | undefined;
|
3952
|
+
runtimeModules?: boolean | undefined;
|
3953
|
+
children?: boolean | undefined;
|
3954
|
+
providedExports?: boolean | undefined;
|
3955
|
+
optimizationBailout?: boolean | undefined;
|
3956
|
+
groupModulesByType?: boolean | undefined;
|
3957
|
+
groupModulesByCacheStatus?: boolean | undefined;
|
3958
|
+
groupModulesByLayer?: boolean | undefined;
|
3959
|
+
groupModulesByAttributes?: boolean | undefined;
|
3960
|
+
groupModulesByPath?: boolean | undefined;
|
3961
|
+
groupModulesByExtension?: boolean | undefined;
|
3962
|
+
modulesSpace?: number | undefined;
|
3963
|
+
chunkModulesSpace?: number | undefined;
|
3964
|
+
nestedModulesSpace?: number | undefined;
|
3965
|
+
relatedAssets?: boolean | undefined;
|
3966
|
+
groupAssetsByEmitStatus?: boolean | undefined;
|
3967
|
+
groupAssetsByInfo?: boolean | undefined;
|
3968
|
+
groupAssetsByPath?: boolean | undefined;
|
3969
|
+
groupAssetsByExtension?: boolean | undefined;
|
3970
|
+
groupAssetsByChunk?: boolean | undefined;
|
3971
|
+
assetsSpace?: number | undefined;
|
3972
|
+
orphanModules?: boolean | undefined;
|
3973
|
+
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;
|
3974
|
+
excludeAssets?: string | RegExp | ((args_0: string, args_1: any) => boolean) | (string | RegExp | ((args_0: string, args_1: any) => boolean))[] | undefined;
|
3975
|
+
modulesSort?: string | undefined;
|
3976
|
+
chunkModulesSort?: string | undefined;
|
3977
|
+
nestedModulesSort?: string | undefined;
|
3978
|
+
chunksSort?: string | undefined;
|
3979
|
+
assetsSort?: string | undefined;
|
3980
|
+
performance?: boolean | undefined;
|
3981
|
+
chunkGroupAuxiliary?: boolean | undefined;
|
3982
|
+
chunkGroupChildren?: boolean | undefined;
|
3983
|
+
chunkGroupMaxAssets?: number | undefined;
|
3984
|
+
dependentModules?: boolean | undefined;
|
3985
|
+
chunkOrigins?: boolean | undefined;
|
3986
|
+
depth?: boolean | undefined;
|
3987
|
+
reasonsSpace?: number | undefined;
|
3988
|
+
groupReasonsByOrigin?: boolean | undefined;
|
3989
|
+
errorDetails?: boolean | undefined;
|
3990
|
+
errorStack?: boolean | undefined;
|
3991
|
+
moduleTrace?: boolean | undefined;
|
3992
|
+
cachedModules?: boolean | undefined;
|
3993
|
+
cachedAssets?: boolean | undefined;
|
3994
|
+
cached?: boolean | undefined;
|
3995
|
+
errorsSpace?: number | undefined;
|
3996
|
+
warningsSpace?: number | undefined;
|
3997
|
+
} | undefined;
|
3998
|
+
performance?: false | {
|
3999
|
+
assetFilter?: ((args_0: string, ...args: unknown[]) => boolean) | undefined;
|
4000
|
+
hints?: false | "error" | "warning" | undefined;
|
4001
|
+
maxAssetSize?: number | undefined;
|
4002
|
+
maxEntrypointSize?: number | undefined;
|
4003
|
+
} | undefined;
|
4004
|
+
experiments?: {
|
4005
|
+
css?: boolean | undefined;
|
4006
|
+
topLevelAwait?: boolean | undefined;
|
4007
|
+
cache?: boolean | {
|
4008
|
+
type: "memory";
|
4009
|
+
} | {
|
4010
|
+
type: "persistent";
|
4011
|
+
version?: string | undefined;
|
4012
|
+
buildDependencies?: string[] | undefined;
|
4013
|
+
snapshot?: {
|
4014
|
+
immutablePaths?: (string | RegExp)[] | undefined;
|
4015
|
+
unmanagedPaths?: (string | RegExp)[] | undefined;
|
4016
|
+
managedPaths?: (string | RegExp)[] | undefined;
|
4017
|
+
} | undefined;
|
4018
|
+
storage?: {
|
4019
|
+
type: "filesystem";
|
4020
|
+
directory?: string | undefined;
|
4021
|
+
} | undefined;
|
4022
|
+
} | undefined;
|
4023
|
+
lazyCompilation?: boolean | {
|
4024
|
+
entries?: boolean | undefined;
|
4025
|
+
test?: RegExp | ((args_0: Module, ...args: unknown[]) => boolean) | undefined;
|
4026
|
+
prefix?: string | undefined;
|
4027
|
+
serverUrl?: string | undefined;
|
4028
|
+
imports?: boolean | undefined;
|
4029
|
+
client?: string | undefined;
|
4030
|
+
} | undefined;
|
4031
|
+
asyncWebAssembly?: boolean | undefined;
|
4032
|
+
outputModule?: boolean | undefined;
|
4033
|
+
layers?: boolean | undefined;
|
4034
|
+
incremental?: boolean | {
|
4035
|
+
make?: boolean | undefined;
|
4036
|
+
providedExports?: boolean | undefined;
|
4037
|
+
sideEffects?: boolean | undefined;
|
4038
|
+
moduleIds?: boolean | undefined;
|
4039
|
+
chunkIds?: boolean | undefined;
|
4040
|
+
inferAsyncModules?: boolean | undefined;
|
4041
|
+
dependenciesDiagnostics?: boolean | undefined;
|
4042
|
+
buildChunkGraph?: boolean | undefined;
|
4043
|
+
modulesHashes?: boolean | undefined;
|
4044
|
+
modulesCodegen?: boolean | undefined;
|
4045
|
+
modulesRuntimeRequirements?: boolean | undefined;
|
4046
|
+
chunksRuntimeRequirements?: boolean | undefined;
|
4047
|
+
chunksHashes?: boolean | undefined;
|
4048
|
+
chunksRender?: boolean | undefined;
|
4049
|
+
emitAssets?: boolean | undefined;
|
4050
|
+
} | undefined;
|
4051
|
+
parallelCodeSplitting?: boolean | undefined;
|
4052
|
+
futureDefaults?: boolean | undefined;
|
4053
|
+
rspackFuture?: {
|
4054
|
+
bundlerInfo?: {
|
4055
|
+
force?: boolean | ("version" | "uniqueId")[] | undefined;
|
4056
|
+
version?: string | undefined;
|
4057
|
+
bundler?: string | undefined;
|
4058
|
+
} | undefined;
|
4059
|
+
} | undefined;
|
4060
|
+
buildHttp?: {
|
4061
|
+
allowedUris: (string | RegExp)[];
|
4062
|
+
httpClient?: ((args_0: string, args_1: Record<string, string>, ...args: unknown[]) => Promise<{
|
4063
|
+
status: number;
|
4064
|
+
body: Buffer<ArrayBufferLike>;
|
4065
|
+
headers: Record<string, string>;
|
4066
|
+
}>) | undefined;
|
4067
|
+
lockfileLocation?: string | undefined;
|
4068
|
+
cacheLocation?: string | false | undefined;
|
4069
|
+
upgrade?: boolean | undefined;
|
4070
|
+
} | undefined;
|
4071
|
+
parallelLoader?: boolean | undefined;
|
4072
|
+
} | undefined;
|
4073
|
+
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;
|
4074
|
+
loader?: Record<string, any> | undefined;
|
4075
|
+
dependencies?: string[] | undefined;
|
4076
|
+
infrastructureLogging?: {
|
4077
|
+
debug?: string | boolean | RegExp | ((args_0: string, ...args: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args: unknown[]) => boolean))[] | undefined;
|
4078
|
+
colors?: boolean | undefined;
|
4079
|
+
level?: "none" | "error" | "warn" | "info" | "log" | "verbose" | undefined;
|
4080
|
+
console?: Console | undefined;
|
4081
|
+
appendOnly?: boolean | undefined;
|
4082
|
+
stream?: NodeJS.WritableStream | undefined;
|
4083
|
+
} | undefined;
|
4084
|
+
snapshot?: {} | undefined;
|
4085
|
+
extends?: string | string[] | undefined;
|
4086
|
+
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
4087
|
externalsPresets?: {
|
4065
4088
|
node?: boolean | undefined;
|
4066
4089
|
web?: boolean | undefined;
|
@@ -4073,32 +4096,32 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4073
4096
|
} | undefined;
|
4074
4097
|
ignoreWarnings?: (RegExp | ((args_0: Error, args_1: Compilation, ...args: unknown[]) => boolean))[] | undefined;
|
4075
4098
|
watchOptions?: {
|
4099
|
+
ignored?: string | RegExp | string[] | undefined;
|
4076
4100
|
aggregateTimeout?: number | undefined;
|
4077
4101
|
followSymlinks?: boolean | undefined;
|
4078
|
-
ignored?: string | RegExp | string[] | undefined;
|
4079
4102
|
poll?: number | boolean | undefined;
|
4080
4103
|
stdin?: boolean | undefined;
|
4081
4104
|
} | undefined;
|
4082
|
-
watch?: boolean | undefined;
|
4083
4105
|
optimization?: {
|
4084
4106
|
splitChunks?: false | {
|
4085
4107
|
name?: string | false | ((args_0: Module, args_1: Chunk[], args_2: string, ...args: unknown[]) => string | undefined) | undefined;
|
4086
4108
|
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4087
|
-
chunks?: RegExp | "
|
4109
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4088
4110
|
defaultSizeTypes?: string[] | undefined;
|
4089
4111
|
cacheGroups?: Record<string, false | {
|
4090
4112
|
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
4113
|
type?: string | RegExp | undefined;
|
4095
|
-
chunks?: RegExp | "initial" | "async" | "all" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4096
4114
|
test?: string | RegExp | ((args_0: Module, args_1: {
|
4097
4115
|
moduleGraph: ModuleGraph;
|
4098
4116
|
chunkGraph: ChunkGraph;
|
4099
4117
|
}, ...args: unknown[]) => boolean) | undefined;
|
4118
|
+
priority?: number | undefined;
|
4119
|
+
layer?: string | RegExp | ((args_0: string | undefined) => boolean) | undefined;
|
4120
|
+
filename?: string | ((args_0: PathData, args_1: AssetInfo | undefined, ...args: unknown[]) => string) | undefined;
|
4121
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4100
4122
|
defaultSizeTypes?: string[] | undefined;
|
4101
4123
|
minSize?: number | Record<string, number> | undefined;
|
4124
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
4102
4125
|
maxSize?: number | Record<string, number> | undefined;
|
4103
4126
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
4104
4127
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -4112,7 +4135,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4112
4135
|
idHint?: string | undefined;
|
4113
4136
|
}> | undefined;
|
4114
4137
|
fallbackCacheGroup?: {
|
4115
|
-
chunks?: RegExp | "
|
4138
|
+
chunks?: RegExp | "all" | "initial" | "async" | ((args_0: Chunk, ...args: unknown[]) => boolean) | undefined;
|
4116
4139
|
minSize?: number | undefined;
|
4117
4140
|
maxSize?: number | undefined;
|
4118
4141
|
maxAsyncSize?: number | undefined;
|
@@ -4120,6 +4143,7 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4120
4143
|
automaticNameDelimiter?: string | undefined;
|
4121
4144
|
} | undefined;
|
4122
4145
|
minSize?: number | Record<string, number> | undefined;
|
4146
|
+
minSizeReduction?: number | Record<string, number> | undefined;
|
4123
4147
|
maxSize?: number | Record<string, number> | undefined;
|
4124
4148
|
maxAsyncSize?: number | Record<string, number> | undefined;
|
4125
4149
|
maxInitialSize?: number | Record<string, number> | undefined;
|
@@ -4154,7 +4178,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
4154
4178
|
avoidEntryIife?: boolean | undefined;
|
4155
4179
|
} | undefined;
|
4156
4180
|
resolveLoader?: t.ResolveOptions | undefined;
|
4157
|
-
plugins?: (false | "" | 0 | t.RspackPluginInstance | t.WebpackPluginInstance | t.RspackPluginFunction | t.WebpackPluginFunction | null | undefined)[] | undefined;
|
4158
4181
|
devServer?: t.DevServer | undefined;
|
4159
4182
|
bail?: boolean | undefined;
|
4160
4183
|
}>;
|