@rspack/core 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compilation.d.ts +3 -0
- package/dist/compilation.d.ts.map +1 -1
- package/dist/compilation.js +17 -0
- package/dist/compilation.js.map +1 -1
- package/dist/config/adapter.d.ts +2 -4
- package/dist/config/adapter.d.ts.map +1 -1
- package/dist/config/adapter.js +113 -29
- package/dist/config/adapter.js.map +1 -1
- package/dist/config/builtins.d.ts.map +1 -1
- package/dist/config/builtins.js +29 -4
- package/dist/config/builtins.js.map +1 -1
- package/dist/config/defaults.d.ts.map +1 -1
- package/dist/config/defaults.js +5 -1
- package/dist/config/defaults.js.map +1 -1
- package/dist/config/normalization.d.ts.map +1 -1
- package/dist/config/normalization.js +3 -1
- package/dist/config/normalization.js.map +1 -1
- package/dist/config/schema.check.d.ts.map +1 -1
- package/dist/config/schema.check.js +459 -369
- package/dist/config/schema.check.js.map +1 -1
- package/dist/config/schema.d.ts +381 -366
- package/dist/config/schema.js +18 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +37 -3
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/zod/_rewrite.d.ts +2 -4
- package/dist/config/zod/_rewrite.d.ts.map +1 -1
- package/dist/config/zod/builtins.d.ts +93 -1
- package/dist/config/zod/builtins.d.ts.map +1 -1
- package/dist/config/zod/builtins.js +22 -2
- package/dist/config/zod/builtins.js.map +1 -1
- package/dist/config/zod/experiments.d.ts +18 -3
- package/dist/config/zod/experiments.d.ts.map +1 -1
- package/dist/config/zod/experiments.js +7 -1
- package/dist/config/zod/experiments.js.map +1 -1
- package/dist/config/zod/index.d.ts +311 -39
- package/dist/config/zod/index.d.ts.map +1 -1
- package/dist/config/zod/index.js +4 -2
- package/dist/config/zod/index.js.map +1 -1
- package/dist/config/zod/optimization/index.d.ts +19 -19
- package/dist/config/zod/optimization/split-chunks.d.ts +16 -16
- package/dist/config/zod/optimization/split-chunks.js +1 -1
- package/dist/config/zod/optimization/split-chunks.js.map +1 -1
- package/dist/config/zod/plugins.d.ts +13 -0
- package/dist/config/zod/plugins.d.ts.map +1 -0
- package/dist/config/zod/plugins.js +19 -0
- package/dist/config/zod/plugins.js.map +1 -0
- package/dist/config/zod/resolve.d.ts +50 -0
- package/dist/config/zod/resolve.d.ts.map +1 -0
- package/dist/config/zod/resolve.js +30 -0
- package/dist/config/zod/resolve.js.map +1 -0
- package/dist/util/MergeCaller.d.ts +12 -0
- package/dist/util/MergeCaller.d.ts.map +1 -0
- package/dist/util/MergeCaller.js +25 -0
- package/dist/util/MergeCaller.js.map +1 -0
- package/package.json +8 -8
|
@@ -17,21 +17,36 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
17
17
|
}>]>>]>>;
|
|
18
18
|
experiments: z.ZodOptional<z.ZodObject<{
|
|
19
19
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
incrementalRebuild: z.ZodOptional<z.ZodBoolean
|
|
20
|
+
incrementalRebuild: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
21
|
+
make: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
emitAsset: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strict", z.ZodTypeAny, {
|
|
24
|
+
make?: boolean | undefined;
|
|
25
|
+
emitAsset?: boolean | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
make?: boolean | undefined;
|
|
28
|
+
emitAsset?: boolean | undefined;
|
|
29
|
+
}>]>>;
|
|
21
30
|
lazyCompilation: z.ZodOptional<z.ZodBoolean>;
|
|
22
31
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
|
23
32
|
newSplitChunks: z.ZodOptional<z.ZodBoolean>;
|
|
24
33
|
css: z.ZodOptional<z.ZodBoolean>;
|
|
25
34
|
}, "strip", z.ZodTypeAny, {
|
|
26
35
|
asyncWebAssembly?: boolean | undefined;
|
|
27
|
-
incrementalRebuild?: boolean |
|
|
36
|
+
incrementalRebuild?: boolean | {
|
|
37
|
+
make?: boolean | undefined;
|
|
38
|
+
emitAsset?: boolean | undefined;
|
|
39
|
+
} | undefined;
|
|
28
40
|
lazyCompilation?: boolean | undefined;
|
|
29
41
|
outputModule?: boolean | undefined;
|
|
30
42
|
newSplitChunks?: boolean | undefined;
|
|
31
43
|
css?: boolean | undefined;
|
|
32
44
|
}, {
|
|
33
45
|
asyncWebAssembly?: boolean | undefined;
|
|
34
|
-
incrementalRebuild?: boolean |
|
|
46
|
+
incrementalRebuild?: boolean | {
|
|
47
|
+
make?: boolean | undefined;
|
|
48
|
+
emitAsset?: boolean | undefined;
|
|
49
|
+
} | undefined;
|
|
35
50
|
lazyCompilation?: boolean | undefined;
|
|
36
51
|
outputModule?: boolean | undefined;
|
|
37
52
|
newSplitChunks?: boolean | undefined;
|
|
@@ -239,7 +254,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
239
254
|
apply: (...args: unknown[]) => unknown;
|
|
240
255
|
}>]>, "many">>;
|
|
241
256
|
splitChunks: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
|
242
|
-
chunks: z.ZodOptional<z.ZodEnum<["initial", "async", "all"]>>;
|
|
257
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
243
258
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
|
244
259
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
245
260
|
minSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -247,7 +262,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
247
262
|
maxAsyncSize: z.ZodOptional<z.ZodNumber>;
|
|
248
263
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
|
249
264
|
cacheGroups: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<false>, z.ZodObject<{
|
|
250
|
-
chunks: z.ZodOptional<z.ZodEnum<["initial", "async", "all"]>>;
|
|
265
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
251
266
|
minChunks: z.ZodOptional<z.ZodNumber>;
|
|
252
267
|
name: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodLiteral<false>]>>;
|
|
253
268
|
minSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -259,7 +274,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
259
274
|
enforce: z.ZodOptional<z.ZodBoolean>;
|
|
260
275
|
reuseExistingChunk: z.ZodOptional<z.ZodBoolean>;
|
|
261
276
|
}, "strict", z.ZodTypeAny, {
|
|
262
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
277
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
263
278
|
minChunks?: number | undefined;
|
|
264
279
|
name?: string | false | undefined;
|
|
265
280
|
minSize?: number | undefined;
|
|
@@ -271,7 +286,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
271
286
|
enforce?: boolean | undefined;
|
|
272
287
|
reuseExistingChunk?: boolean | undefined;
|
|
273
288
|
}, {
|
|
274
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
289
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
275
290
|
minChunks?: number | undefined;
|
|
276
291
|
name?: string | false | undefined;
|
|
277
292
|
minSize?: number | undefined;
|
|
@@ -286,26 +301,26 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
286
301
|
maxAsyncRequests: z.ZodOptional<z.ZodNumber>;
|
|
287
302
|
maxInitialRequests: z.ZodOptional<z.ZodNumber>;
|
|
288
303
|
fallbackCacheGroup: z.ZodOptional<z.ZodObject<{
|
|
289
|
-
chunks: z.ZodOptional<z.ZodEnum<["initial", "async", "all"]>>;
|
|
304
|
+
chunks: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["initial", "async", "all"]>, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>>;
|
|
290
305
|
minSize: z.ZodOptional<z.ZodNumber>;
|
|
291
306
|
maxSize: z.ZodOptional<z.ZodNumber>;
|
|
292
307
|
maxAsyncSize: z.ZodOptional<z.ZodNumber>;
|
|
293
308
|
maxInitialSize: z.ZodOptional<z.ZodNumber>;
|
|
294
309
|
}, "strict", z.ZodTypeAny, {
|
|
295
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
310
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
296
311
|
minSize?: number | undefined;
|
|
297
312
|
maxSize?: number | undefined;
|
|
298
313
|
maxAsyncSize?: number | undefined;
|
|
299
314
|
maxInitialSize?: number | undefined;
|
|
300
315
|
}, {
|
|
301
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
316
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
302
317
|
minSize?: number | undefined;
|
|
303
318
|
maxSize?: number | undefined;
|
|
304
319
|
maxAsyncSize?: number | undefined;
|
|
305
320
|
maxInitialSize?: number | undefined;
|
|
306
321
|
}>>;
|
|
307
322
|
}, "strip", z.ZodTypeAny, {
|
|
308
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
323
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
309
324
|
minChunks?: number | undefined;
|
|
310
325
|
name?: string | false | undefined;
|
|
311
326
|
minSize?: number | undefined;
|
|
@@ -313,7 +328,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
313
328
|
maxAsyncSize?: number | undefined;
|
|
314
329
|
maxInitialSize?: number | undefined;
|
|
315
330
|
cacheGroups?: Record<string, false | {
|
|
316
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
331
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
317
332
|
minChunks?: number | undefined;
|
|
318
333
|
name?: string | false | undefined;
|
|
319
334
|
minSize?: number | undefined;
|
|
@@ -328,14 +343,14 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
328
343
|
maxAsyncRequests?: number | undefined;
|
|
329
344
|
maxInitialRequests?: number | undefined;
|
|
330
345
|
fallbackCacheGroup?: {
|
|
331
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
346
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
332
347
|
minSize?: number | undefined;
|
|
333
348
|
maxSize?: number | undefined;
|
|
334
349
|
maxAsyncSize?: number | undefined;
|
|
335
350
|
maxInitialSize?: number | undefined;
|
|
336
351
|
} | undefined;
|
|
337
352
|
}, {
|
|
338
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
353
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
339
354
|
minChunks?: number | undefined;
|
|
340
355
|
name?: string | false | undefined;
|
|
341
356
|
minSize?: number | undefined;
|
|
@@ -343,7 +358,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
343
358
|
maxAsyncSize?: number | undefined;
|
|
344
359
|
maxInitialSize?: number | undefined;
|
|
345
360
|
cacheGroups?: Record<string, false | {
|
|
346
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
361
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
347
362
|
minChunks?: number | undefined;
|
|
348
363
|
name?: string | false | undefined;
|
|
349
364
|
minSize?: number | undefined;
|
|
@@ -358,7 +373,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
358
373
|
maxAsyncRequests?: number | undefined;
|
|
359
374
|
maxInitialRequests?: number | undefined;
|
|
360
375
|
fallbackCacheGroup?: {
|
|
361
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
376
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
362
377
|
minSize?: number | undefined;
|
|
363
378
|
maxSize?: number | undefined;
|
|
364
379
|
maxAsyncSize?: number | undefined;
|
|
@@ -383,7 +398,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
383
398
|
apply: (...args: unknown[]) => unknown;
|
|
384
399
|
})[] | undefined;
|
|
385
400
|
splitChunks?: false | {
|
|
386
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
401
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
387
402
|
minChunks?: number | undefined;
|
|
388
403
|
name?: string | false | undefined;
|
|
389
404
|
minSize?: number | undefined;
|
|
@@ -391,7 +406,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
391
406
|
maxAsyncSize?: number | undefined;
|
|
392
407
|
maxInitialSize?: number | undefined;
|
|
393
408
|
cacheGroups?: Record<string, false | {
|
|
394
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
409
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
395
410
|
minChunks?: number | undefined;
|
|
396
411
|
name?: string | false | undefined;
|
|
397
412
|
minSize?: number | undefined;
|
|
@@ -406,7 +421,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
406
421
|
maxAsyncRequests?: number | undefined;
|
|
407
422
|
maxInitialRequests?: number | undefined;
|
|
408
423
|
fallbackCacheGroup?: {
|
|
409
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
424
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
410
425
|
minSize?: number | undefined;
|
|
411
426
|
maxSize?: number | undefined;
|
|
412
427
|
maxAsyncSize?: number | undefined;
|
|
@@ -427,7 +442,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
427
442
|
apply: (...args: unknown[]) => unknown;
|
|
428
443
|
})[] | undefined;
|
|
429
444
|
splitChunks?: false | {
|
|
430
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
445
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
431
446
|
minChunks?: number | undefined;
|
|
432
447
|
name?: string | false | undefined;
|
|
433
448
|
minSize?: number | undefined;
|
|
@@ -435,7 +450,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
435
450
|
maxAsyncSize?: number | undefined;
|
|
436
451
|
maxInitialSize?: number | undefined;
|
|
437
452
|
cacheGroups?: Record<string, false | {
|
|
438
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
453
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
439
454
|
minChunks?: number | undefined;
|
|
440
455
|
name?: string | false | undefined;
|
|
441
456
|
minSize?: number | undefined;
|
|
@@ -450,7 +465,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
450
465
|
maxAsyncRequests?: number | undefined;
|
|
451
466
|
maxInitialRequests?: number | undefined;
|
|
452
467
|
fallbackCacheGroup?: {
|
|
453
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
468
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
454
469
|
minSize?: number | undefined;
|
|
455
470
|
maxSize?: number | undefined;
|
|
456
471
|
maxAsyncSize?: number | undefined;
|
|
@@ -465,6 +480,77 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
465
480
|
realContentHash?: boolean | undefined;
|
|
466
481
|
sideEffects?: boolean | "flag" | undefined;
|
|
467
482
|
}>>;
|
|
483
|
+
resolve: z.ZodOptional<z.ZodType<{
|
|
484
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
485
|
+
browserField?: boolean | undefined;
|
|
486
|
+
conditionNames?: string[] | undefined;
|
|
487
|
+
extensions?: string[] | undefined;
|
|
488
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
489
|
+
mainFields?: string[] | undefined;
|
|
490
|
+
mainFiles?: string[] | undefined;
|
|
491
|
+
modules?: string[] | undefined;
|
|
492
|
+
preferRelative?: boolean | undefined;
|
|
493
|
+
tsConfigPath?: string | undefined;
|
|
494
|
+
fullySpecified?: boolean | undefined;
|
|
495
|
+
exportsFields?: string[] | undefined;
|
|
496
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
497
|
+
} & {
|
|
498
|
+
byDependency?: Record<string, {
|
|
499
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
500
|
+
browserField?: boolean | undefined;
|
|
501
|
+
conditionNames?: string[] | undefined;
|
|
502
|
+
extensions?: string[] | undefined;
|
|
503
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
504
|
+
mainFields?: string[] | undefined;
|
|
505
|
+
mainFiles?: string[] | undefined;
|
|
506
|
+
modules?: string[] | undefined;
|
|
507
|
+
preferRelative?: boolean | undefined;
|
|
508
|
+
tsConfigPath?: string | undefined;
|
|
509
|
+
fullySpecified?: boolean | undefined;
|
|
510
|
+
exportsFields?: string[] | undefined;
|
|
511
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
512
|
+
} & any> | undefined;
|
|
513
|
+
}, z.ZodTypeDef, {
|
|
514
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
515
|
+
browserField?: boolean | undefined;
|
|
516
|
+
conditionNames?: string[] | undefined;
|
|
517
|
+
extensions?: string[] | undefined;
|
|
518
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
519
|
+
mainFields?: string[] | undefined;
|
|
520
|
+
mainFiles?: string[] | undefined;
|
|
521
|
+
modules?: string[] | undefined;
|
|
522
|
+
preferRelative?: boolean | undefined;
|
|
523
|
+
tsConfigPath?: string | undefined;
|
|
524
|
+
fullySpecified?: boolean | undefined;
|
|
525
|
+
exportsFields?: string[] | undefined;
|
|
526
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
527
|
+
} & {
|
|
528
|
+
byDependency?: Record<string, {
|
|
529
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
530
|
+
browserField?: boolean | undefined;
|
|
531
|
+
conditionNames?: string[] | undefined;
|
|
532
|
+
extensions?: string[] | undefined;
|
|
533
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
534
|
+
mainFields?: string[] | undefined;
|
|
535
|
+
mainFiles?: string[] | undefined;
|
|
536
|
+
modules?: string[] | undefined;
|
|
537
|
+
preferRelative?: boolean | undefined;
|
|
538
|
+
tsConfigPath?: string | undefined;
|
|
539
|
+
fullySpecified?: boolean | undefined;
|
|
540
|
+
exportsFields?: string[] | undefined;
|
|
541
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
542
|
+
} & any> | undefined;
|
|
543
|
+
}>>;
|
|
544
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../compiler").Compiler, z.ZodTypeDef, import("../../compiler").Compiler>], z.ZodUnknown>, z.ZodVoid>, z.ZodObject<{
|
|
545
|
+
name: z.ZodOptional<z.ZodString>;
|
|
546
|
+
apply: z.ZodFunction<z.ZodTuple<[z.ZodType<import("../../compiler").Compiler, z.ZodTypeDef, import("../../compiler").Compiler>], z.ZodUnknown>, z.ZodVoid>;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
apply: (args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void;
|
|
549
|
+
name?: string | undefined;
|
|
550
|
+
}, {
|
|
551
|
+
apply: (args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void;
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
}>]>, "many">>;
|
|
468
554
|
name: z.ZodOptional<z.ZodString>;
|
|
469
555
|
devServer: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
|
|
470
556
|
output: z.ZodOptional<z.ZodObject<{
|
|
@@ -604,9 +690,99 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
604
690
|
hashDigestLength?: any;
|
|
605
691
|
library?: any;
|
|
606
692
|
}>>;
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
693
|
+
builtins: z.ZodOptional<z.ZodObject<{
|
|
694
|
+
postcss: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
695
|
+
pxtorem: z.ZodOptional<z.ZodObject<{
|
|
696
|
+
rootValue: z.ZodOptional<z.ZodNumber>;
|
|
697
|
+
unitPrecision: z.ZodOptional<z.ZodNumber>;
|
|
698
|
+
selectorBlackList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
699
|
+
propList: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
700
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
701
|
+
mediaQuery: z.ZodOptional<z.ZodBoolean>;
|
|
702
|
+
minPixelValue: z.ZodOptional<z.ZodNumber>;
|
|
703
|
+
}, "strict", z.ZodTypeAny, {
|
|
704
|
+
rootValue?: number | undefined;
|
|
705
|
+
unitPrecision?: number | undefined;
|
|
706
|
+
selectorBlackList?: string[] | undefined;
|
|
707
|
+
propList?: string[] | undefined;
|
|
708
|
+
replace?: boolean | undefined;
|
|
709
|
+
mediaQuery?: boolean | undefined;
|
|
710
|
+
minPixelValue?: number | undefined;
|
|
711
|
+
}, {
|
|
712
|
+
rootValue?: number | undefined;
|
|
713
|
+
unitPrecision?: number | undefined;
|
|
714
|
+
selectorBlackList?: string[] | undefined;
|
|
715
|
+
propList?: string[] | undefined;
|
|
716
|
+
replace?: boolean | undefined;
|
|
717
|
+
mediaQuery?: boolean | undefined;
|
|
718
|
+
minPixelValue?: number | undefined;
|
|
719
|
+
}>>;
|
|
720
|
+
}, "strict", z.ZodTypeAny, {
|
|
721
|
+
pxtorem?: {
|
|
722
|
+
rootValue?: number | undefined;
|
|
723
|
+
unitPrecision?: number | undefined;
|
|
724
|
+
selectorBlackList?: string[] | undefined;
|
|
725
|
+
propList?: string[] | undefined;
|
|
726
|
+
replace?: boolean | undefined;
|
|
727
|
+
mediaQuery?: boolean | undefined;
|
|
728
|
+
minPixelValue?: number | undefined;
|
|
729
|
+
} | undefined;
|
|
730
|
+
}, {
|
|
731
|
+
pxtorem?: {
|
|
732
|
+
rootValue?: number | undefined;
|
|
733
|
+
unitPrecision?: number | undefined;
|
|
734
|
+
selectorBlackList?: string[] | undefined;
|
|
735
|
+
propList?: string[] | undefined;
|
|
736
|
+
replace?: boolean | undefined;
|
|
737
|
+
mediaQuery?: boolean | undefined;
|
|
738
|
+
minPixelValue?: number | undefined;
|
|
739
|
+
} | undefined;
|
|
740
|
+
}>, {
|
|
741
|
+
pxtorem?: {
|
|
742
|
+
rootValue?: number | undefined;
|
|
743
|
+
unitPrecision?: number | undefined;
|
|
744
|
+
selectorBlackList?: string[] | undefined;
|
|
745
|
+
propList?: string[] | undefined;
|
|
746
|
+
replace?: boolean | undefined;
|
|
747
|
+
mediaQuery?: boolean | undefined;
|
|
748
|
+
minPixelValue?: number | undefined;
|
|
749
|
+
} | undefined;
|
|
750
|
+
}, {
|
|
751
|
+
pxtorem?: {
|
|
752
|
+
rootValue?: number | undefined;
|
|
753
|
+
unitPrecision?: number | undefined;
|
|
754
|
+
selectorBlackList?: string[] | undefined;
|
|
755
|
+
propList?: string[] | undefined;
|
|
756
|
+
replace?: boolean | undefined;
|
|
757
|
+
mediaQuery?: boolean | undefined;
|
|
758
|
+
minPixelValue?: number | undefined;
|
|
759
|
+
} | undefined;
|
|
760
|
+
}>>;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
postcss?: {
|
|
763
|
+
pxtorem?: {
|
|
764
|
+
rootValue?: number | undefined;
|
|
765
|
+
unitPrecision?: number | undefined;
|
|
766
|
+
selectorBlackList?: string[] | undefined;
|
|
767
|
+
propList?: string[] | undefined;
|
|
768
|
+
replace?: boolean | undefined;
|
|
769
|
+
mediaQuery?: boolean | undefined;
|
|
770
|
+
minPixelValue?: number | undefined;
|
|
771
|
+
} | undefined;
|
|
772
|
+
} | undefined;
|
|
773
|
+
}, {
|
|
774
|
+
postcss?: {
|
|
775
|
+
pxtorem?: {
|
|
776
|
+
rootValue?: number | undefined;
|
|
777
|
+
unitPrecision?: number | undefined;
|
|
778
|
+
selectorBlackList?: string[] | undefined;
|
|
779
|
+
propList?: string[] | undefined;
|
|
780
|
+
replace?: boolean | undefined;
|
|
781
|
+
mediaQuery?: boolean | undefined;
|
|
782
|
+
minPixelValue?: number | undefined;
|
|
783
|
+
} | undefined;
|
|
784
|
+
} | undefined;
|
|
785
|
+
}>>;
|
|
610
786
|
module: z.ZodOptional<z.ZodAny>;
|
|
611
787
|
}, "strict", z.ZodTypeAny, {
|
|
612
788
|
target?: false | "web" | "node" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("web" | "node" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
@@ -618,7 +794,10 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
618
794
|
}> | undefined;
|
|
619
795
|
experiments?: {
|
|
620
796
|
asyncWebAssembly?: boolean | undefined;
|
|
621
|
-
incrementalRebuild?: boolean |
|
|
797
|
+
incrementalRebuild?: boolean | {
|
|
798
|
+
make?: boolean | undefined;
|
|
799
|
+
emitAsset?: boolean | undefined;
|
|
800
|
+
} | undefined;
|
|
622
801
|
lazyCompilation?: boolean | undefined;
|
|
623
802
|
outputModule?: boolean | undefined;
|
|
624
803
|
newSplitChunks?: boolean | undefined;
|
|
@@ -700,7 +879,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
700
879
|
apply: (...args: unknown[]) => unknown;
|
|
701
880
|
})[] | undefined;
|
|
702
881
|
splitChunks?: false | {
|
|
703
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
882
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
704
883
|
minChunks?: number | undefined;
|
|
705
884
|
name?: string | false | undefined;
|
|
706
885
|
minSize?: number | undefined;
|
|
@@ -708,7 +887,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
708
887
|
maxAsyncSize?: number | undefined;
|
|
709
888
|
maxInitialSize?: number | undefined;
|
|
710
889
|
cacheGroups?: Record<string, false | {
|
|
711
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
890
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
712
891
|
minChunks?: number | undefined;
|
|
713
892
|
name?: string | false | undefined;
|
|
714
893
|
minSize?: number | undefined;
|
|
@@ -723,7 +902,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
723
902
|
maxAsyncRequests?: number | undefined;
|
|
724
903
|
maxInitialRequests?: number | undefined;
|
|
725
904
|
fallbackCacheGroup?: {
|
|
726
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
905
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
727
906
|
minSize?: number | undefined;
|
|
728
907
|
maxSize?: number | undefined;
|
|
729
908
|
maxAsyncSize?: number | undefined;
|
|
@@ -738,6 +917,41 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
738
917
|
realContentHash?: boolean | undefined;
|
|
739
918
|
sideEffects?: boolean | "flag" | undefined;
|
|
740
919
|
} | undefined;
|
|
920
|
+
resolve?: ({
|
|
921
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
922
|
+
browserField?: boolean | undefined;
|
|
923
|
+
conditionNames?: string[] | undefined;
|
|
924
|
+
extensions?: string[] | undefined;
|
|
925
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
926
|
+
mainFields?: string[] | undefined;
|
|
927
|
+
mainFiles?: string[] | undefined;
|
|
928
|
+
modules?: string[] | undefined;
|
|
929
|
+
preferRelative?: boolean | undefined;
|
|
930
|
+
tsConfigPath?: string | undefined;
|
|
931
|
+
fullySpecified?: boolean | undefined;
|
|
932
|
+
exportsFields?: string[] | undefined;
|
|
933
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
934
|
+
} & {
|
|
935
|
+
byDependency?: Record<string, {
|
|
936
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
937
|
+
browserField?: boolean | undefined;
|
|
938
|
+
conditionNames?: string[] | undefined;
|
|
939
|
+
extensions?: string[] | undefined;
|
|
940
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
941
|
+
mainFields?: string[] | undefined;
|
|
942
|
+
mainFiles?: string[] | undefined;
|
|
943
|
+
modules?: string[] | undefined;
|
|
944
|
+
preferRelative?: boolean | undefined;
|
|
945
|
+
tsConfigPath?: string | undefined;
|
|
946
|
+
fullySpecified?: boolean | undefined;
|
|
947
|
+
exportsFields?: string[] | undefined;
|
|
948
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
949
|
+
} & any> | undefined;
|
|
950
|
+
}) | undefined;
|
|
951
|
+
plugins?: (((args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void) | {
|
|
952
|
+
apply: (args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void;
|
|
953
|
+
name?: string | undefined;
|
|
954
|
+
})[] | undefined;
|
|
741
955
|
name?: string | undefined;
|
|
742
956
|
devServer?: {} | undefined;
|
|
743
957
|
output?: {
|
|
@@ -783,9 +997,19 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
783
997
|
hashDigestLength?: any;
|
|
784
998
|
library?: any;
|
|
785
999
|
} | undefined;
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
1000
|
+
builtins?: {
|
|
1001
|
+
postcss?: {
|
|
1002
|
+
pxtorem?: {
|
|
1003
|
+
rootValue?: number | undefined;
|
|
1004
|
+
unitPrecision?: number | undefined;
|
|
1005
|
+
selectorBlackList?: string[] | undefined;
|
|
1006
|
+
propList?: string[] | undefined;
|
|
1007
|
+
replace?: boolean | undefined;
|
|
1008
|
+
mediaQuery?: boolean | undefined;
|
|
1009
|
+
minPixelValue?: number | undefined;
|
|
1010
|
+
} | undefined;
|
|
1011
|
+
} | undefined;
|
|
1012
|
+
} | undefined;
|
|
789
1013
|
module?: any;
|
|
790
1014
|
}, {
|
|
791
1015
|
target?: false | "web" | "node" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload` | ("web" | "node" | "webworker" | "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "browserslist" | `node${number}` | `node${number}.${number}` | "electron-main" | `electron${number}-main` | `electron${number}.${number}-main` | "electron-renderer" | `electron${number}-renderer` | `electron${number}.${number}-renderer` | "electron-preload" | `electron${number}-preload` | `electron${number}.${number}-preload`)[] | undefined;
|
|
@@ -797,7 +1021,10 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
797
1021
|
}> | undefined;
|
|
798
1022
|
experiments?: {
|
|
799
1023
|
asyncWebAssembly?: boolean | undefined;
|
|
800
|
-
incrementalRebuild?: boolean |
|
|
1024
|
+
incrementalRebuild?: boolean | {
|
|
1025
|
+
make?: boolean | undefined;
|
|
1026
|
+
emitAsset?: boolean | undefined;
|
|
1027
|
+
} | undefined;
|
|
801
1028
|
lazyCompilation?: boolean | undefined;
|
|
802
1029
|
outputModule?: boolean | undefined;
|
|
803
1030
|
newSplitChunks?: boolean | undefined;
|
|
@@ -879,7 +1106,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
879
1106
|
apply: (...args: unknown[]) => unknown;
|
|
880
1107
|
})[] | undefined;
|
|
881
1108
|
splitChunks?: false | {
|
|
882
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
1109
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
883
1110
|
minChunks?: number | undefined;
|
|
884
1111
|
name?: string | false | undefined;
|
|
885
1112
|
minSize?: number | undefined;
|
|
@@ -887,7 +1114,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
887
1114
|
maxAsyncSize?: number | undefined;
|
|
888
1115
|
maxInitialSize?: number | undefined;
|
|
889
1116
|
cacheGroups?: Record<string, false | {
|
|
890
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
1117
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
891
1118
|
minChunks?: number | undefined;
|
|
892
1119
|
name?: string | false | undefined;
|
|
893
1120
|
minSize?: number | undefined;
|
|
@@ -902,7 +1129,7 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
902
1129
|
maxAsyncRequests?: number | undefined;
|
|
903
1130
|
maxInitialRequests?: number | undefined;
|
|
904
1131
|
fallbackCacheGroup?: {
|
|
905
|
-
chunks?: "async" | "all" | "initial" | undefined;
|
|
1132
|
+
chunks?: RegExp | "async" | "all" | "initial" | undefined;
|
|
906
1133
|
minSize?: number | undefined;
|
|
907
1134
|
maxSize?: number | undefined;
|
|
908
1135
|
maxAsyncSize?: number | undefined;
|
|
@@ -917,6 +1144,41 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
917
1144
|
realContentHash?: boolean | undefined;
|
|
918
1145
|
sideEffects?: boolean | "flag" | undefined;
|
|
919
1146
|
} | undefined;
|
|
1147
|
+
resolve?: ({
|
|
1148
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
1149
|
+
browserField?: boolean | undefined;
|
|
1150
|
+
conditionNames?: string[] | undefined;
|
|
1151
|
+
extensions?: string[] | undefined;
|
|
1152
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
1153
|
+
mainFields?: string[] | undefined;
|
|
1154
|
+
mainFiles?: string[] | undefined;
|
|
1155
|
+
modules?: string[] | undefined;
|
|
1156
|
+
preferRelative?: boolean | undefined;
|
|
1157
|
+
tsConfigPath?: string | undefined;
|
|
1158
|
+
fullySpecified?: boolean | undefined;
|
|
1159
|
+
exportsFields?: string[] | undefined;
|
|
1160
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
1161
|
+
} & {
|
|
1162
|
+
byDependency?: Record<string, {
|
|
1163
|
+
alias?: Record<string, string | false | (string | false)[]> | undefined;
|
|
1164
|
+
browserField?: boolean | undefined;
|
|
1165
|
+
conditionNames?: string[] | undefined;
|
|
1166
|
+
extensions?: string[] | undefined;
|
|
1167
|
+
fallback?: Record<string, string | false | (string | false)[]> | undefined;
|
|
1168
|
+
mainFields?: string[] | undefined;
|
|
1169
|
+
mainFiles?: string[] | undefined;
|
|
1170
|
+
modules?: string[] | undefined;
|
|
1171
|
+
preferRelative?: boolean | undefined;
|
|
1172
|
+
tsConfigPath?: string | undefined;
|
|
1173
|
+
fullySpecified?: boolean | undefined;
|
|
1174
|
+
exportsFields?: string[] | undefined;
|
|
1175
|
+
extensionAlias?: Record<string, string | string[]> | undefined;
|
|
1176
|
+
} & any> | undefined;
|
|
1177
|
+
}) | undefined;
|
|
1178
|
+
plugins?: (((args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void) | {
|
|
1179
|
+
apply: (args_0: import("../../compiler").Compiler, ...args_1: unknown[]) => void;
|
|
1180
|
+
name?: string | undefined;
|
|
1181
|
+
})[] | undefined;
|
|
920
1182
|
name?: string | undefined;
|
|
921
1183
|
devServer?: {} | undefined;
|
|
922
1184
|
output?: {
|
|
@@ -962,9 +1224,19 @@ export declare function configSchema(): z.ZodObject<{
|
|
|
962
1224
|
hashDigestLength?: any;
|
|
963
1225
|
library?: any;
|
|
964
1226
|
} | undefined;
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
1227
|
+
builtins?: {
|
|
1228
|
+
postcss?: {
|
|
1229
|
+
pxtorem?: {
|
|
1230
|
+
rootValue?: number | undefined;
|
|
1231
|
+
unitPrecision?: number | undefined;
|
|
1232
|
+
selectorBlackList?: string[] | undefined;
|
|
1233
|
+
propList?: string[] | undefined;
|
|
1234
|
+
replace?: boolean | undefined;
|
|
1235
|
+
mediaQuery?: boolean | undefined;
|
|
1236
|
+
minPixelValue?: number | undefined;
|
|
1237
|
+
} | undefined;
|
|
1238
|
+
} | undefined;
|
|
1239
|
+
} | undefined;
|
|
968
1240
|
module?: any;
|
|
969
1241
|
}>;
|
|
970
1242
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAmBxB,wBAAgB,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiC3B"}
|
package/dist/config/zod/index.js
CHANGED
|
@@ -17,6 +17,8 @@ const snapshot_1 = require("./snapshot");
|
|
|
17
17
|
const output_1 = require("./output");
|
|
18
18
|
const devtool_1 = require("./devtool");
|
|
19
19
|
const optimization_1 = require("./optimization");
|
|
20
|
+
const resolve_1 = require("./resolve");
|
|
21
|
+
const plugins_1 = require("./plugins");
|
|
20
22
|
function configSchema() {
|
|
21
23
|
return zod_1.z
|
|
22
24
|
.object({
|
|
@@ -39,13 +41,13 @@ function configSchema() {
|
|
|
39
41
|
stats: (0, stats_1.stats)().optional(),
|
|
40
42
|
snapshot: (0, snapshot_1.snapshot)().optional(),
|
|
41
43
|
optimization: (0, optimization_1.optimization)().optional(),
|
|
44
|
+
resolve: (0, resolve_1.resolve)().optional(),
|
|
45
|
+
plugins: (0, plugins_1.plugins)().optional(),
|
|
42
46
|
// TODO(hyf0): what's the usage of this?
|
|
43
47
|
name: zod_1.z.string().optional(),
|
|
44
48
|
// TODO
|
|
45
49
|
devServer: zod_1.z.object({}).optional(),
|
|
46
50
|
output: (0, output_1.output)().optional(),
|
|
47
|
-
resolve: zod_1.z.any().optional(),
|
|
48
|
-
plugins: zod_1.z.any().optional(),
|
|
49
51
|
builtins: (0, builtins_1.builtins)().optional(),
|
|
50
52
|
module: zod_1.z.any().optional()
|
|
51
53
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAgC;AAChC,+CAA4C;AAC5C,2CAAwC;AACxC,qDAAiD;AACjD,2DAAuD;AACvD,qEAAiE;AACjE,iCAA8B;AAC9B,yCAAsC;AACtC,mDAA+C;AAC/C,qCAAkC;AAClC,mCAAgC;AAChC,yCAAsC;AACtC,qCAAkC;AAClC,uCAAoC;AACpC,iDAA8C;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/config/zod/index.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,mCAAgC;AAChC,+CAA4C;AAC5C,2CAAwC;AACxC,qDAAiD;AACjD,2DAAuD;AACvD,qEAAiE;AACjE,iCAA8B;AAC9B,yCAAsC;AACtC,mDAA+C;AAC/C,qCAAkC;AAClC,mCAAgC;AAChC,yCAAsC;AACtC,qCAAkC;AAClC,uCAAoC;AACpC,iDAA8C;AAC9C,uCAAoC;AACpC,uCAAoC;AAEpC,SAAgB,YAAY;IAC3B,OAAO,OAAC;SACN,MAAM,CAAC;QACP,MAAM,EAAE,IAAA,eAAM,GAAE,CAAC,QAAQ,EAAE;QAC3B,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE;QAC9D,KAAK,EAAE,IAAA,aAAK,GAAE,CAAC,QAAQ,EAAE;QACzB,WAAW,EAAE,IAAA,yBAAW,GAAE,CAAC,QAAQ,EAAE;QACrC,SAAS,EAAE,IAAA,qBAAS,GAAE,CAAC,QAAQ,EAAE;QACjC,aAAa,EAAE,IAAA,8BAAa,GAAE,CAAC,QAAQ,EAAE;QACzC,gBAAgB,EAAE,IAAA,oCAAgB,GAAE,CAAC,QAAQ,EAAE;QAC/C,qBAAqB,EAAE,IAAA,8CAAqB,GAAE,CAAC,QAAQ,EAAE;QACzD,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC9B,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QAC3C,OAAO,EAAE,IAAA,iBAAO,GAAE,CAAC,QAAQ,EAAE;QAC7B,IAAI,EAAE,IAAA,WAAI,GAAE,CAAC,QAAQ,EAAE;QACvB,cAAc,EAAE,OAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,OAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;QACxE,YAAY,EAAE,IAAA,4BAAY,GAAE,CAAC,QAAQ,EAAE;QACvC,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;QAC7B,KAAK,EAAE,IAAA,aAAK,GAAE,CAAC,QAAQ,EAAE;QACzB,QAAQ,EAAE,IAAA,mBAAQ,GAAE,CAAC,QAAQ,EAAE;QAC/B,YAAY,EAAE,IAAA,2BAAY,GAAE,CAAC,QAAQ,EAAE;QACvC,OAAO,EAAE,IAAA,iBAAO,GAAE,CAAC,QAAQ,EAAE;QAC7B,OAAO,EAAE,IAAA,iBAAO,GAAE,CAAC,QAAQ,EAAE;QAC7B,wCAAwC;QACxC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC3B,OAAO;QACP,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;QAClC,MAAM,EAAE,IAAA,eAAM,GAAE,CAAC,QAAQ,EAAE;QAC3B,QAAQ,EAAE,IAAA,mBAAQ,GAAE,CAAC,QAAQ,EAAE;QAC/B,MAAM,EAAE,OAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;KAC1B,CAAC;SACD,MAAM,EAAE,CAAC;AACZ,CAAC;AAjCD,oCAiCC"}
|