@rspack/core 0.6.5-canary-231c64e-20240515075232 → 0.6.5-canary-2456d69-20240515093621
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/config/adapter.js
CHANGED
|
@@ -566,14 +566,16 @@ function getRawAssetGeneratorDataUrl(dataUrl) {
|
|
|
566
566
|
function getRawCssGeneratorOptions(options) {
|
|
567
567
|
return {
|
|
568
568
|
exportsConvention: options.exportsConvention,
|
|
569
|
-
exportsOnly: options.exportsOnly
|
|
569
|
+
exportsOnly: options.exportsOnly,
|
|
570
|
+
esModule: options.esModule
|
|
570
571
|
};
|
|
571
572
|
}
|
|
572
573
|
function getRawCssAutoOrModuleGeneratorOptions(options) {
|
|
573
574
|
return {
|
|
574
575
|
localIdentName: options.localIdentName,
|
|
575
576
|
exportsConvention: options.exportsConvention,
|
|
576
|
-
exportsOnly: options.exportsOnly
|
|
577
|
+
exportsOnly: options.exportsOnly,
|
|
578
|
+
esModule: options.esModule
|
|
577
579
|
};
|
|
578
580
|
}
|
|
579
581
|
function getRawOptimization(optimization) {
|
|
@@ -615,10 +617,9 @@ function getRawSnapshotOptions(snapshot) {
|
|
|
615
617
|
};
|
|
616
618
|
}
|
|
617
619
|
function getRawExperiments(experiments) {
|
|
618
|
-
const {
|
|
619
|
-
(0, assert_1.default)(!(0, util_1.isNil)(
|
|
620
|
+
const { topLevelAwait, rspackFuture } = experiments;
|
|
621
|
+
(0, assert_1.default)(!(0, util_1.isNil)(topLevelAwait) && !(0, util_1.isNil)(rspackFuture));
|
|
620
622
|
return {
|
|
621
|
-
newSplitChunks,
|
|
622
623
|
topLevelAwait,
|
|
623
624
|
rspackFuture: getRawRspackFutureOptions(rspackFuture)
|
|
624
625
|
};
|
package/dist/config/defaults.js
CHANGED
|
@@ -121,7 +121,6 @@ const applyInfrastructureLoggingDefaults = (infrastructureLogging) => {
|
|
|
121
121
|
const applyExperimentsDefaults = (experiments, { cache }) => {
|
|
122
122
|
D(experiments, "lazyCompilation", false);
|
|
123
123
|
D(experiments, "asyncWebAssembly", false);
|
|
124
|
-
D(experiments, "newSplitChunks", true);
|
|
125
124
|
D(experiments, "css", true); // we not align with webpack about the default value for better DX
|
|
126
125
|
D(experiments, "topLevelAwait", true);
|
|
127
126
|
D(experiments, "rspackFuture", {});
|
|
@@ -198,16 +197,19 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }
|
|
|
198
197
|
(0, assertNotNil_1.assertNotNill)(module.generator.css);
|
|
199
198
|
D(module.generator["css"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
200
199
|
D(module.generator["css"], "exportsConvention", "as-is");
|
|
200
|
+
D(module.generator["css"], "esModule", true);
|
|
201
201
|
F(module.generator, "css/auto", () => ({}));
|
|
202
202
|
(0, assertNotNil_1.assertNotNill)(module.generator["css/auto"]);
|
|
203
203
|
D(module.generator["css/auto"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
204
204
|
D(module.generator["css/auto"], "exportsConvention", "as-is");
|
|
205
205
|
D(module.generator["css/auto"], "localIdentName", "[uniqueName]-[id]-[local]");
|
|
206
|
+
D(module.generator["css/auto"], "esModule", true);
|
|
206
207
|
F(module.generator, "css/module", () => ({}));
|
|
207
208
|
(0, assertNotNil_1.assertNotNill)(module.generator["css/module"]);
|
|
208
209
|
D(module.generator["css/module"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
209
210
|
D(module.generator["css/module"], "exportsConvention", "as-is");
|
|
210
211
|
D(module.generator["css/module"], "localIdentName", "[uniqueName]-[id]-[local]");
|
|
212
|
+
D(module.generator["css/module"], "esModule", true);
|
|
211
213
|
}
|
|
212
214
|
A(module, "defaultRules", () => {
|
|
213
215
|
const esm = {
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -2291,43 +2291,54 @@ declare const cssGeneratorExportsOnly: z.ZodBoolean;
|
|
|
2291
2291
|
export type CssGeneratorExportsOnly = z.infer<typeof cssGeneratorExportsOnly>;
|
|
2292
2292
|
declare const cssGeneratorLocalIdentName: z.ZodString;
|
|
2293
2293
|
export type CssGeneratorLocalIdentName = z.infer<typeof cssGeneratorLocalIdentName>;
|
|
2294
|
+
declare const cssGeneratorEsModule: z.ZodBoolean;
|
|
2295
|
+
export type CssGeneratorEsModule = z.infer<typeof cssGeneratorEsModule>;
|
|
2294
2296
|
declare const cssGeneratorOptions: z.ZodObject<{
|
|
2295
2297
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2296
2298
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2299
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2297
2300
|
}, "strict", z.ZodTypeAny, {
|
|
2298
2301
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2299
2302
|
exportsOnly?: boolean | undefined;
|
|
2303
|
+
esModule?: boolean | undefined;
|
|
2300
2304
|
}, {
|
|
2301
2305
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2302
2306
|
exportsOnly?: boolean | undefined;
|
|
2307
|
+
esModule?: boolean | undefined;
|
|
2303
2308
|
}>;
|
|
2304
2309
|
export type CssGeneratorOptions = z.infer<typeof cssGeneratorOptions>;
|
|
2305
2310
|
declare const cssAutoGeneratorOptions: z.ZodObject<{
|
|
2306
2311
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2307
2312
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2308
2313
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2314
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2309
2315
|
}, "strict", z.ZodTypeAny, {
|
|
2310
2316
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2311
2317
|
exportsOnly?: boolean | undefined;
|
|
2312
2318
|
localIdentName?: string | undefined;
|
|
2319
|
+
esModule?: boolean | undefined;
|
|
2313
2320
|
}, {
|
|
2314
2321
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2315
2322
|
exportsOnly?: boolean | undefined;
|
|
2316
2323
|
localIdentName?: string | undefined;
|
|
2324
|
+
esModule?: boolean | undefined;
|
|
2317
2325
|
}>;
|
|
2318
2326
|
export type CssAutoGeneratorOptions = z.infer<typeof cssAutoGeneratorOptions>;
|
|
2319
2327
|
declare const cssModuleGeneratorOptions: z.ZodObject<{
|
|
2320
2328
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2321
2329
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2322
2330
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2331
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2323
2332
|
}, "strict", z.ZodTypeAny, {
|
|
2324
2333
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2325
2334
|
exportsOnly?: boolean | undefined;
|
|
2326
2335
|
localIdentName?: string | undefined;
|
|
2336
|
+
esModule?: boolean | undefined;
|
|
2327
2337
|
}, {
|
|
2328
2338
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2329
2339
|
exportsOnly?: boolean | undefined;
|
|
2330
2340
|
localIdentName?: string | undefined;
|
|
2341
|
+
esModule?: boolean | undefined;
|
|
2331
2342
|
}>;
|
|
2332
2343
|
export type CssModuleGeneratorOptions = z.infer<typeof cssModuleGeneratorOptions>;
|
|
2333
2344
|
declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
@@ -2430,38 +2441,47 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2430
2441
|
css: z.ZodOptional<z.ZodObject<{
|
|
2431
2442
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2432
2443
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2444
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2433
2445
|
}, "strict", z.ZodTypeAny, {
|
|
2434
2446
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2435
2447
|
exportsOnly?: boolean | undefined;
|
|
2448
|
+
esModule?: boolean | undefined;
|
|
2436
2449
|
}, {
|
|
2437
2450
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2438
2451
|
exportsOnly?: boolean | undefined;
|
|
2452
|
+
esModule?: boolean | undefined;
|
|
2439
2453
|
}>>;
|
|
2440
2454
|
"css/auto": z.ZodOptional<z.ZodObject<{
|
|
2441
2455
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2442
2456
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2443
2457
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2458
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2444
2459
|
}, "strict", z.ZodTypeAny, {
|
|
2445
2460
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2446
2461
|
exportsOnly?: boolean | undefined;
|
|
2447
2462
|
localIdentName?: string | undefined;
|
|
2463
|
+
esModule?: boolean | undefined;
|
|
2448
2464
|
}, {
|
|
2449
2465
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2450
2466
|
exportsOnly?: boolean | undefined;
|
|
2451
2467
|
localIdentName?: string | undefined;
|
|
2468
|
+
esModule?: boolean | undefined;
|
|
2452
2469
|
}>>;
|
|
2453
2470
|
"css/module": z.ZodOptional<z.ZodObject<{
|
|
2454
2471
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2455
2472
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2456
2473
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2474
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2457
2475
|
}, "strict", z.ZodTypeAny, {
|
|
2458
2476
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2459
2477
|
exportsOnly?: boolean | undefined;
|
|
2460
2478
|
localIdentName?: string | undefined;
|
|
2479
|
+
esModule?: boolean | undefined;
|
|
2461
2480
|
}, {
|
|
2462
2481
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2463
2482
|
exportsOnly?: boolean | undefined;
|
|
2464
2483
|
localIdentName?: string | undefined;
|
|
2484
|
+
esModule?: boolean | undefined;
|
|
2465
2485
|
}>>;
|
|
2466
2486
|
}, "strict", z.ZodTypeAny, {
|
|
2467
2487
|
asset?: {
|
|
@@ -2493,16 +2513,19 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2493
2513
|
css?: {
|
|
2494
2514
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2495
2515
|
exportsOnly?: boolean | undefined;
|
|
2516
|
+
esModule?: boolean | undefined;
|
|
2496
2517
|
} | undefined;
|
|
2497
2518
|
"css/auto"?: {
|
|
2498
2519
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2499
2520
|
exportsOnly?: boolean | undefined;
|
|
2500
2521
|
localIdentName?: string | undefined;
|
|
2522
|
+
esModule?: boolean | undefined;
|
|
2501
2523
|
} | undefined;
|
|
2502
2524
|
"css/module"?: {
|
|
2503
2525
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2504
2526
|
exportsOnly?: boolean | undefined;
|
|
2505
2527
|
localIdentName?: string | undefined;
|
|
2528
|
+
esModule?: boolean | undefined;
|
|
2506
2529
|
} | undefined;
|
|
2507
2530
|
}, {
|
|
2508
2531
|
asset?: {
|
|
@@ -2534,16 +2557,19 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2534
2557
|
css?: {
|
|
2535
2558
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2536
2559
|
exportsOnly?: boolean | undefined;
|
|
2560
|
+
esModule?: boolean | undefined;
|
|
2537
2561
|
} | undefined;
|
|
2538
2562
|
"css/auto"?: {
|
|
2539
2563
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2540
2564
|
exportsOnly?: boolean | undefined;
|
|
2541
2565
|
localIdentName?: string | undefined;
|
|
2566
|
+
esModule?: boolean | undefined;
|
|
2542
2567
|
} | undefined;
|
|
2543
2568
|
"css/module"?: {
|
|
2544
2569
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2545
2570
|
exportsOnly?: boolean | undefined;
|
|
2546
2571
|
localIdentName?: string | undefined;
|
|
2572
|
+
esModule?: boolean | undefined;
|
|
2547
2573
|
} | undefined;
|
|
2548
2574
|
}>;
|
|
2549
2575
|
export type GeneratorOptionsByModuleTypeKnown = z.infer<typeof generatorOptionsByModuleTypeKnown>;
|
|
@@ -2649,38 +2675,47 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2649
2675
|
css: z.ZodOptional<z.ZodObject<{
|
|
2650
2676
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2651
2677
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2678
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2652
2679
|
}, "strict", z.ZodTypeAny, {
|
|
2653
2680
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2654
2681
|
exportsOnly?: boolean | undefined;
|
|
2682
|
+
esModule?: boolean | undefined;
|
|
2655
2683
|
}, {
|
|
2656
2684
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2657
2685
|
exportsOnly?: boolean | undefined;
|
|
2686
|
+
esModule?: boolean | undefined;
|
|
2658
2687
|
}>>;
|
|
2659
2688
|
"css/auto": z.ZodOptional<z.ZodObject<{
|
|
2660
2689
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2661
2690
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2662
2691
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2692
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2663
2693
|
}, "strict", z.ZodTypeAny, {
|
|
2664
2694
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2665
2695
|
exportsOnly?: boolean | undefined;
|
|
2666
2696
|
localIdentName?: string | undefined;
|
|
2697
|
+
esModule?: boolean | undefined;
|
|
2667
2698
|
}, {
|
|
2668
2699
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2669
2700
|
exportsOnly?: boolean | undefined;
|
|
2670
2701
|
localIdentName?: string | undefined;
|
|
2702
|
+
esModule?: boolean | undefined;
|
|
2671
2703
|
}>>;
|
|
2672
2704
|
"css/module": z.ZodOptional<z.ZodObject<{
|
|
2673
2705
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2674
2706
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2675
2707
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
2708
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2676
2709
|
}, "strict", z.ZodTypeAny, {
|
|
2677
2710
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2678
2711
|
exportsOnly?: boolean | undefined;
|
|
2679
2712
|
localIdentName?: string | undefined;
|
|
2713
|
+
esModule?: boolean | undefined;
|
|
2680
2714
|
}, {
|
|
2681
2715
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2682
2716
|
exportsOnly?: boolean | undefined;
|
|
2683
2717
|
localIdentName?: string | undefined;
|
|
2718
|
+
esModule?: boolean | undefined;
|
|
2684
2719
|
}>>;
|
|
2685
2720
|
}, "strict", z.ZodTypeAny, {
|
|
2686
2721
|
asset?: {
|
|
@@ -2712,16 +2747,19 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2712
2747
|
css?: {
|
|
2713
2748
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2714
2749
|
exportsOnly?: boolean | undefined;
|
|
2750
|
+
esModule?: boolean | undefined;
|
|
2715
2751
|
} | undefined;
|
|
2716
2752
|
"css/auto"?: {
|
|
2717
2753
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2718
2754
|
exportsOnly?: boolean | undefined;
|
|
2719
2755
|
localIdentName?: string | undefined;
|
|
2756
|
+
esModule?: boolean | undefined;
|
|
2720
2757
|
} | undefined;
|
|
2721
2758
|
"css/module"?: {
|
|
2722
2759
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2723
2760
|
exportsOnly?: boolean | undefined;
|
|
2724
2761
|
localIdentName?: string | undefined;
|
|
2762
|
+
esModule?: boolean | undefined;
|
|
2725
2763
|
} | undefined;
|
|
2726
2764
|
}, {
|
|
2727
2765
|
asset?: {
|
|
@@ -2753,16 +2791,19 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2753
2791
|
css?: {
|
|
2754
2792
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2755
2793
|
exportsOnly?: boolean | undefined;
|
|
2794
|
+
esModule?: boolean | undefined;
|
|
2756
2795
|
} | undefined;
|
|
2757
2796
|
"css/auto"?: {
|
|
2758
2797
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2759
2798
|
exportsOnly?: boolean | undefined;
|
|
2760
2799
|
localIdentName?: string | undefined;
|
|
2800
|
+
esModule?: boolean | undefined;
|
|
2761
2801
|
} | undefined;
|
|
2762
2802
|
"css/module"?: {
|
|
2763
2803
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2764
2804
|
exportsOnly?: boolean | undefined;
|
|
2765
2805
|
localIdentName?: string | undefined;
|
|
2806
|
+
esModule?: boolean | undefined;
|
|
2766
2807
|
} | undefined;
|
|
2767
2808
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>;
|
|
2768
2809
|
export type GeneratorOptionsByModuleType = z.infer<typeof generatorOptionsByModuleType>;
|
|
@@ -3093,38 +3134,47 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3093
3134
|
css: z.ZodOptional<z.ZodObject<{
|
|
3094
3135
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
3095
3136
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3137
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
3096
3138
|
}, "strict", z.ZodTypeAny, {
|
|
3097
3139
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3098
3140
|
exportsOnly?: boolean | undefined;
|
|
3141
|
+
esModule?: boolean | undefined;
|
|
3099
3142
|
}, {
|
|
3100
3143
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3101
3144
|
exportsOnly?: boolean | undefined;
|
|
3145
|
+
esModule?: boolean | undefined;
|
|
3102
3146
|
}>>;
|
|
3103
3147
|
"css/auto": z.ZodOptional<z.ZodObject<{
|
|
3104
3148
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
3105
3149
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3106
3150
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
3151
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
3107
3152
|
}, "strict", z.ZodTypeAny, {
|
|
3108
3153
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3109
3154
|
exportsOnly?: boolean | undefined;
|
|
3110
3155
|
localIdentName?: string | undefined;
|
|
3156
|
+
esModule?: boolean | undefined;
|
|
3111
3157
|
}, {
|
|
3112
3158
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3113
3159
|
exportsOnly?: boolean | undefined;
|
|
3114
3160
|
localIdentName?: string | undefined;
|
|
3161
|
+
esModule?: boolean | undefined;
|
|
3115
3162
|
}>>;
|
|
3116
3163
|
"css/module": z.ZodOptional<z.ZodObject<{
|
|
3117
3164
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
3118
3165
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3119
3166
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
3167
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
3120
3168
|
}, "strict", z.ZodTypeAny, {
|
|
3121
3169
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3122
3170
|
exportsOnly?: boolean | undefined;
|
|
3123
3171
|
localIdentName?: string | undefined;
|
|
3172
|
+
esModule?: boolean | undefined;
|
|
3124
3173
|
}, {
|
|
3125
3174
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3126
3175
|
exportsOnly?: boolean | undefined;
|
|
3127
3176
|
localIdentName?: string | undefined;
|
|
3177
|
+
esModule?: boolean | undefined;
|
|
3128
3178
|
}>>;
|
|
3129
3179
|
}, "strict", z.ZodTypeAny, {
|
|
3130
3180
|
asset?: {
|
|
@@ -3156,16 +3206,19 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3156
3206
|
css?: {
|
|
3157
3207
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3158
3208
|
exportsOnly?: boolean | undefined;
|
|
3209
|
+
esModule?: boolean | undefined;
|
|
3159
3210
|
} | undefined;
|
|
3160
3211
|
"css/auto"?: {
|
|
3161
3212
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3162
3213
|
exportsOnly?: boolean | undefined;
|
|
3163
3214
|
localIdentName?: string | undefined;
|
|
3215
|
+
esModule?: boolean | undefined;
|
|
3164
3216
|
} | undefined;
|
|
3165
3217
|
"css/module"?: {
|
|
3166
3218
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3167
3219
|
exportsOnly?: boolean | undefined;
|
|
3168
3220
|
localIdentName?: string | undefined;
|
|
3221
|
+
esModule?: boolean | undefined;
|
|
3169
3222
|
} | undefined;
|
|
3170
3223
|
}, {
|
|
3171
3224
|
asset?: {
|
|
@@ -3197,16 +3250,19 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3197
3250
|
css?: {
|
|
3198
3251
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3199
3252
|
exportsOnly?: boolean | undefined;
|
|
3253
|
+
esModule?: boolean | undefined;
|
|
3200
3254
|
} | undefined;
|
|
3201
3255
|
"css/auto"?: {
|
|
3202
3256
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3203
3257
|
exportsOnly?: boolean | undefined;
|
|
3204
3258
|
localIdentName?: string | undefined;
|
|
3259
|
+
esModule?: boolean | undefined;
|
|
3205
3260
|
} | undefined;
|
|
3206
3261
|
"css/module"?: {
|
|
3207
3262
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3208
3263
|
exportsOnly?: boolean | undefined;
|
|
3209
3264
|
localIdentName?: string | undefined;
|
|
3265
|
+
esModule?: boolean | undefined;
|
|
3210
3266
|
} | undefined;
|
|
3211
3267
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
3212
3268
|
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">]>>;
|
|
@@ -3291,16 +3347,19 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3291
3347
|
css?: {
|
|
3292
3348
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3293
3349
|
exportsOnly?: boolean | undefined;
|
|
3350
|
+
esModule?: boolean | undefined;
|
|
3294
3351
|
} | undefined;
|
|
3295
3352
|
"css/auto"?: {
|
|
3296
3353
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3297
3354
|
exportsOnly?: boolean | undefined;
|
|
3298
3355
|
localIdentName?: string | undefined;
|
|
3356
|
+
esModule?: boolean | undefined;
|
|
3299
3357
|
} | undefined;
|
|
3300
3358
|
"css/module"?: {
|
|
3301
3359
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3302
3360
|
exportsOnly?: boolean | undefined;
|
|
3303
3361
|
localIdentName?: string | undefined;
|
|
3362
|
+
esModule?: boolean | undefined;
|
|
3304
3363
|
} | undefined;
|
|
3305
3364
|
} | undefined;
|
|
3306
3365
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
@@ -3385,16 +3444,19 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3385
3444
|
css?: {
|
|
3386
3445
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3387
3446
|
exportsOnly?: boolean | undefined;
|
|
3447
|
+
esModule?: boolean | undefined;
|
|
3388
3448
|
} | undefined;
|
|
3389
3449
|
"css/auto"?: {
|
|
3390
3450
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3391
3451
|
exportsOnly?: boolean | undefined;
|
|
3392
3452
|
localIdentName?: string | undefined;
|
|
3453
|
+
esModule?: boolean | undefined;
|
|
3393
3454
|
} | undefined;
|
|
3394
3455
|
"css/module"?: {
|
|
3395
3456
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3396
3457
|
exportsOnly?: boolean | undefined;
|
|
3397
3458
|
localIdentName?: string | undefined;
|
|
3459
|
+
esModule?: boolean | undefined;
|
|
3398
3460
|
} | undefined;
|
|
3399
3461
|
} | undefined;
|
|
3400
3462
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
@@ -4445,7 +4507,6 @@ declare const experiments: z.ZodObject<{
|
|
|
4445
4507
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
|
4446
4508
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
|
4447
4509
|
topLevelAwait: z.ZodOptional<z.ZodBoolean>;
|
|
4448
|
-
newSplitChunks: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
4449
4510
|
css: z.ZodOptional<z.ZodBoolean>;
|
|
4450
4511
|
futureDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
4451
4512
|
rspackFuture: z.ZodOptional<z.ZodObject<{
|
|
@@ -4478,7 +4539,6 @@ declare const experiments: z.ZodObject<{
|
|
|
4478
4539
|
asyncWebAssembly?: boolean | undefined;
|
|
4479
4540
|
outputModule?: boolean | undefined;
|
|
4480
4541
|
topLevelAwait?: boolean | undefined;
|
|
4481
|
-
newSplitChunks?: boolean | undefined;
|
|
4482
4542
|
css?: boolean | undefined;
|
|
4483
4543
|
futureDefaults?: boolean | undefined;
|
|
4484
4544
|
rspackFuture?: {
|
|
@@ -4493,7 +4553,6 @@ declare const experiments: z.ZodObject<{
|
|
|
4493
4553
|
asyncWebAssembly?: boolean | undefined;
|
|
4494
4554
|
outputModule?: boolean | undefined;
|
|
4495
4555
|
topLevelAwait?: boolean | undefined;
|
|
4496
|
-
newSplitChunks?: boolean | undefined;
|
|
4497
4556
|
css?: boolean | undefined;
|
|
4498
4557
|
futureDefaults?: boolean | undefined;
|
|
4499
4558
|
rspackFuture?: {
|
|
@@ -5128,7 +5187,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5128
5187
|
asyncWebAssembly: z.ZodOptional<z.ZodBoolean>;
|
|
5129
5188
|
outputModule: z.ZodOptional<z.ZodBoolean>;
|
|
5130
5189
|
topLevelAwait: z.ZodOptional<z.ZodBoolean>;
|
|
5131
|
-
newSplitChunks: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, boolean | undefined>;
|
|
5132
5190
|
css: z.ZodOptional<z.ZodBoolean>;
|
|
5133
5191
|
futureDefaults: z.ZodOptional<z.ZodBoolean>;
|
|
5134
5192
|
rspackFuture: z.ZodOptional<z.ZodObject<{
|
|
@@ -5161,7 +5219,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5161
5219
|
asyncWebAssembly?: boolean | undefined;
|
|
5162
5220
|
outputModule?: boolean | undefined;
|
|
5163
5221
|
topLevelAwait?: boolean | undefined;
|
|
5164
|
-
newSplitChunks?: boolean | undefined;
|
|
5165
5222
|
css?: boolean | undefined;
|
|
5166
5223
|
futureDefaults?: boolean | undefined;
|
|
5167
5224
|
rspackFuture?: {
|
|
@@ -5176,7 +5233,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
5176
5233
|
asyncWebAssembly?: boolean | undefined;
|
|
5177
5234
|
outputModule?: boolean | undefined;
|
|
5178
5235
|
topLevelAwait?: boolean | undefined;
|
|
5179
|
-
newSplitChunks?: boolean | undefined;
|
|
5180
5236
|
css?: boolean | undefined;
|
|
5181
5237
|
futureDefaults?: boolean | undefined;
|
|
5182
5238
|
rspackFuture?: {
|
|
@@ -6122,38 +6178,47 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6122
6178
|
css: z.ZodOptional<z.ZodObject<{
|
|
6123
6179
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
6124
6180
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
6181
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
6125
6182
|
}, "strict", z.ZodTypeAny, {
|
|
6126
6183
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6127
6184
|
exportsOnly?: boolean | undefined;
|
|
6185
|
+
esModule?: boolean | undefined;
|
|
6128
6186
|
}, {
|
|
6129
6187
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6130
6188
|
exportsOnly?: boolean | undefined;
|
|
6189
|
+
esModule?: boolean | undefined;
|
|
6131
6190
|
}>>;
|
|
6132
6191
|
"css/auto": z.ZodOptional<z.ZodObject<{
|
|
6133
6192
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
6134
6193
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
6135
6194
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
6195
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
6136
6196
|
}, "strict", z.ZodTypeAny, {
|
|
6137
6197
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6138
6198
|
exportsOnly?: boolean | undefined;
|
|
6139
6199
|
localIdentName?: string | undefined;
|
|
6200
|
+
esModule?: boolean | undefined;
|
|
6140
6201
|
}, {
|
|
6141
6202
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6142
6203
|
exportsOnly?: boolean | undefined;
|
|
6143
6204
|
localIdentName?: string | undefined;
|
|
6205
|
+
esModule?: boolean | undefined;
|
|
6144
6206
|
}>>;
|
|
6145
6207
|
"css/module": z.ZodOptional<z.ZodObject<{
|
|
6146
6208
|
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
6147
6209
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
6148
6210
|
localIdentName: z.ZodOptional<z.ZodString>;
|
|
6211
|
+
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
6149
6212
|
}, "strict", z.ZodTypeAny, {
|
|
6150
6213
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6151
6214
|
exportsOnly?: boolean | undefined;
|
|
6152
6215
|
localIdentName?: string | undefined;
|
|
6216
|
+
esModule?: boolean | undefined;
|
|
6153
6217
|
}, {
|
|
6154
6218
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6155
6219
|
exportsOnly?: boolean | undefined;
|
|
6156
6220
|
localIdentName?: string | undefined;
|
|
6221
|
+
esModule?: boolean | undefined;
|
|
6157
6222
|
}>>;
|
|
6158
6223
|
}, "strict", z.ZodTypeAny, {
|
|
6159
6224
|
asset?: {
|
|
@@ -6185,16 +6250,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6185
6250
|
css?: {
|
|
6186
6251
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6187
6252
|
exportsOnly?: boolean | undefined;
|
|
6253
|
+
esModule?: boolean | undefined;
|
|
6188
6254
|
} | undefined;
|
|
6189
6255
|
"css/auto"?: {
|
|
6190
6256
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6191
6257
|
exportsOnly?: boolean | undefined;
|
|
6192
6258
|
localIdentName?: string | undefined;
|
|
6259
|
+
esModule?: boolean | undefined;
|
|
6193
6260
|
} | undefined;
|
|
6194
6261
|
"css/module"?: {
|
|
6195
6262
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6196
6263
|
exportsOnly?: boolean | undefined;
|
|
6197
6264
|
localIdentName?: string | undefined;
|
|
6265
|
+
esModule?: boolean | undefined;
|
|
6198
6266
|
} | undefined;
|
|
6199
6267
|
}, {
|
|
6200
6268
|
asset?: {
|
|
@@ -6226,16 +6294,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6226
6294
|
css?: {
|
|
6227
6295
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6228
6296
|
exportsOnly?: boolean | undefined;
|
|
6297
|
+
esModule?: boolean | undefined;
|
|
6229
6298
|
} | undefined;
|
|
6230
6299
|
"css/auto"?: {
|
|
6231
6300
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6232
6301
|
exportsOnly?: boolean | undefined;
|
|
6233
6302
|
localIdentName?: string | undefined;
|
|
6303
|
+
esModule?: boolean | undefined;
|
|
6234
6304
|
} | undefined;
|
|
6235
6305
|
"css/module"?: {
|
|
6236
6306
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6237
6307
|
exportsOnly?: boolean | undefined;
|
|
6238
6308
|
localIdentName?: string | undefined;
|
|
6309
|
+
esModule?: boolean | undefined;
|
|
6239
6310
|
} | undefined;
|
|
6240
6311
|
}>, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>>]>>;
|
|
6241
6312
|
noParse: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodType<RegExp, z.ZodTypeDef, RegExp>]>, z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodBoolean>]>, "many">]>>;
|
|
@@ -6320,16 +6391,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6320
6391
|
css?: {
|
|
6321
6392
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6322
6393
|
exportsOnly?: boolean | undefined;
|
|
6394
|
+
esModule?: boolean | undefined;
|
|
6323
6395
|
} | undefined;
|
|
6324
6396
|
"css/auto"?: {
|
|
6325
6397
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6326
6398
|
exportsOnly?: boolean | undefined;
|
|
6327
6399
|
localIdentName?: string | undefined;
|
|
6400
|
+
esModule?: boolean | undefined;
|
|
6328
6401
|
} | undefined;
|
|
6329
6402
|
"css/module"?: {
|
|
6330
6403
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6331
6404
|
exportsOnly?: boolean | undefined;
|
|
6332
6405
|
localIdentName?: string | undefined;
|
|
6406
|
+
esModule?: boolean | undefined;
|
|
6333
6407
|
} | undefined;
|
|
6334
6408
|
} | undefined;
|
|
6335
6409
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
@@ -6414,16 +6488,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6414
6488
|
css?: {
|
|
6415
6489
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6416
6490
|
exportsOnly?: boolean | undefined;
|
|
6491
|
+
esModule?: boolean | undefined;
|
|
6417
6492
|
} | undefined;
|
|
6418
6493
|
"css/auto"?: {
|
|
6419
6494
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6420
6495
|
exportsOnly?: boolean | undefined;
|
|
6421
6496
|
localIdentName?: string | undefined;
|
|
6497
|
+
esModule?: boolean | undefined;
|
|
6422
6498
|
} | undefined;
|
|
6423
6499
|
"css/module"?: {
|
|
6424
6500
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6425
6501
|
exportsOnly?: boolean | undefined;
|
|
6426
6502
|
localIdentName?: string | undefined;
|
|
6503
|
+
esModule?: boolean | undefined;
|
|
6427
6504
|
} | undefined;
|
|
6428
6505
|
} | undefined;
|
|
6429
6506
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
@@ -6588,7 +6665,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6588
6665
|
asyncWebAssembly?: boolean | undefined;
|
|
6589
6666
|
outputModule?: boolean | undefined;
|
|
6590
6667
|
topLevelAwait?: boolean | undefined;
|
|
6591
|
-
newSplitChunks?: boolean | undefined;
|
|
6592
6668
|
css?: boolean | undefined;
|
|
6593
6669
|
futureDefaults?: boolean | undefined;
|
|
6594
6670
|
rspackFuture?: {
|
|
@@ -6846,16 +6922,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6846
6922
|
css?: {
|
|
6847
6923
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6848
6924
|
exportsOnly?: boolean | undefined;
|
|
6925
|
+
esModule?: boolean | undefined;
|
|
6849
6926
|
} | undefined;
|
|
6850
6927
|
"css/auto"?: {
|
|
6851
6928
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6852
6929
|
exportsOnly?: boolean | undefined;
|
|
6853
6930
|
localIdentName?: string | undefined;
|
|
6931
|
+
esModule?: boolean | undefined;
|
|
6854
6932
|
} | undefined;
|
|
6855
6933
|
"css/module"?: {
|
|
6856
6934
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6857
6935
|
exportsOnly?: boolean | undefined;
|
|
6858
6936
|
localIdentName?: string | undefined;
|
|
6937
|
+
esModule?: boolean | undefined;
|
|
6859
6938
|
} | undefined;
|
|
6860
6939
|
} | undefined;
|
|
6861
6940
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
|
@@ -7010,7 +7089,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7010
7089
|
asyncWebAssembly?: boolean | undefined;
|
|
7011
7090
|
outputModule?: boolean | undefined;
|
|
7012
7091
|
topLevelAwait?: boolean | undefined;
|
|
7013
|
-
newSplitChunks?: boolean | undefined;
|
|
7014
7092
|
css?: boolean | undefined;
|
|
7015
7093
|
futureDefaults?: boolean | undefined;
|
|
7016
7094
|
rspackFuture?: {
|
|
@@ -7268,16 +7346,19 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7268
7346
|
css?: {
|
|
7269
7347
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
7270
7348
|
exportsOnly?: boolean | undefined;
|
|
7349
|
+
esModule?: boolean | undefined;
|
|
7271
7350
|
} | undefined;
|
|
7272
7351
|
"css/auto"?: {
|
|
7273
7352
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
7274
7353
|
exportsOnly?: boolean | undefined;
|
|
7275
7354
|
localIdentName?: string | undefined;
|
|
7355
|
+
esModule?: boolean | undefined;
|
|
7276
7356
|
} | undefined;
|
|
7277
7357
|
"css/module"?: {
|
|
7278
7358
|
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
7279
7359
|
exportsOnly?: boolean | undefined;
|
|
7280
7360
|
localIdentName?: string | undefined;
|
|
7361
|
+
esModule?: boolean | undefined;
|
|
7281
7362
|
} | undefined;
|
|
7282
7363
|
} | undefined;
|
|
7283
7364
|
noParse?: string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean) | (string | RegExp | ((args_0: string, ...args_1: unknown[]) => boolean))[] | undefined;
|
package/dist/config/zod.js
CHANGED
|
@@ -4,7 +4,6 @@ exports.rspackOptions = exports.externalsType = void 0;
|
|
|
4
4
|
const zod_1 = require("../../compiled/zod");
|
|
5
5
|
const Chunk_1 = require("../Chunk");
|
|
6
6
|
const Module_1 = require("../Module");
|
|
7
|
-
const util_1 = require("../util");
|
|
8
7
|
//#region Name
|
|
9
8
|
const name = zod_1.z.string();
|
|
10
9
|
//#endregion
|
|
@@ -372,19 +371,23 @@ const cssGeneratorExportsConvention = zod_1.z.enum([
|
|
|
372
371
|
]);
|
|
373
372
|
const cssGeneratorExportsOnly = zod_1.z.boolean();
|
|
374
373
|
const cssGeneratorLocalIdentName = zod_1.z.string();
|
|
374
|
+
const cssGeneratorEsModule = zod_1.z.boolean();
|
|
375
375
|
const cssGeneratorOptions = zod_1.z.strictObject({
|
|
376
376
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
377
|
-
exportsOnly: cssGeneratorExportsOnly.optional()
|
|
377
|
+
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
378
|
+
esModule: cssGeneratorEsModule.optional()
|
|
378
379
|
});
|
|
379
380
|
const cssAutoGeneratorOptions = zod_1.z.strictObject({
|
|
380
381
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
381
382
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
382
|
-
localIdentName: cssGeneratorLocalIdentName.optional()
|
|
383
|
+
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
384
|
+
esModule: cssGeneratorEsModule.optional()
|
|
383
385
|
});
|
|
384
386
|
const cssModuleGeneratorOptions = zod_1.z.strictObject({
|
|
385
387
|
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
386
388
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
387
|
-
localIdentName: cssGeneratorLocalIdentName.optional()
|
|
389
|
+
localIdentName: cssGeneratorLocalIdentName.optional(),
|
|
390
|
+
esModule: cssGeneratorEsModule.optional()
|
|
388
391
|
});
|
|
389
392
|
const generatorOptionsByModuleTypeKnown = zod_1.z.strictObject({
|
|
390
393
|
asset: assetGeneratorOptions.optional(),
|
|
@@ -751,16 +754,6 @@ const experiments = zod_1.z.strictObject({
|
|
|
751
754
|
asyncWebAssembly: zod_1.z.boolean().optional(),
|
|
752
755
|
outputModule: zod_1.z.boolean().optional(),
|
|
753
756
|
topLevelAwait: zod_1.z.boolean().optional(),
|
|
754
|
-
newSplitChunks: zod_1.z
|
|
755
|
-
.boolean()
|
|
756
|
-
.optional()
|
|
757
|
-
.refine(val => {
|
|
758
|
-
if (val === false) {
|
|
759
|
-
(0, util_1.deprecatedWarn)(`'experiments.newSplitChunks = ${JSON.stringify(val)}' has been deprecated, please switch to 'experiments.newSplitChunks = true' to use webpack's behavior.
|
|
760
|
-
See the discussion here (https://github.com/web-infra-dev/rspack/discussions/4168)`);
|
|
761
|
-
}
|
|
762
|
-
return true;
|
|
763
|
-
}),
|
|
764
757
|
css: zod_1.z.boolean().optional(),
|
|
765
758
|
futureDefaults: zod_1.z.boolean().optional(),
|
|
766
759
|
rspackFuture: rspackFutureOptions.optional()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.5-canary-
|
|
3
|
+
"version": "0.6.5-canary-2456d69-20240515093621",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"watchpack": "^2.4.0",
|
|
72
72
|
"zod": "^3.21.4",
|
|
73
73
|
"zod-validation-error": "1.3.1",
|
|
74
|
-
"@rspack/
|
|
75
|
-
"@rspack/
|
|
74
|
+
"@rspack/core": "0.6.5-canary-2456d69-20240515093621",
|
|
75
|
+
"@rspack/plugin-minify": "^0.6.5-canary-2456d69-20240515093621"
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
78
|
"@module-federation/runtime-tools": "0.1.6",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"enhanced-resolve": "5.12.0",
|
|
81
81
|
"tapable": "2.2.1",
|
|
82
82
|
"webpack-sources": "3.2.3",
|
|
83
|
-
"@rspack/binding": "0.6.5-canary-
|
|
83
|
+
"@rspack/binding": "0.6.5-canary-2456d69-20240515093621"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@swc/helpers": ">=0.5.1"
|