@rspack/core 0.7.0-beta.0 → 0.7.0-beta.0-canary-96d98de-20240517004321
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 +0 -1
- package/dist/config/defaults.js +0 -1
- package/dist/config/zod.d.ts +0 -29
- package/dist/config/zod.js +0 -1
- package/package.json +4 -4
package/dist/config/adapter.js
CHANGED
package/dist/config/defaults.js
CHANGED
|
@@ -196,7 +196,6 @@ const applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties }
|
|
|
196
196
|
F(module.generator, "css", () => ({}));
|
|
197
197
|
(0, assertNotNil_1.assertNotNill)(module.generator.css);
|
|
198
198
|
D(module.generator["css"], "exportsOnly", !targetProperties || !targetProperties.document);
|
|
199
|
-
D(module.generator["css"], "exportsConvention", "as-is");
|
|
200
199
|
D(module.generator["css"], "esModule", true);
|
|
201
200
|
F(module.generator, "css/auto", () => ({}));
|
|
202
201
|
(0, assertNotNil_1.assertNotNill)(module.generator["css/auto"]);
|
package/dist/config/zod.d.ts
CHANGED
|
@@ -2294,15 +2294,12 @@ export type CssGeneratorLocalIdentName = z.infer<typeof cssGeneratorLocalIdentNa
|
|
|
2294
2294
|
declare const cssGeneratorEsModule: z.ZodBoolean;
|
|
2295
2295
|
export type CssGeneratorEsModule = z.infer<typeof cssGeneratorEsModule>;
|
|
2296
2296
|
declare const cssGeneratorOptions: z.ZodObject<{
|
|
2297
|
-
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2298
2297
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2299
2298
|
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2300
2299
|
}, "strict", z.ZodTypeAny, {
|
|
2301
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2302
2300
|
exportsOnly?: boolean | undefined;
|
|
2303
2301
|
esModule?: boolean | undefined;
|
|
2304
2302
|
}, {
|
|
2305
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2306
2303
|
exportsOnly?: boolean | undefined;
|
|
2307
2304
|
esModule?: boolean | undefined;
|
|
2308
2305
|
}>;
|
|
@@ -2439,15 +2436,12 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2439
2436
|
publicPath?: string | undefined;
|
|
2440
2437
|
}>>;
|
|
2441
2438
|
css: z.ZodOptional<z.ZodObject<{
|
|
2442
|
-
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2443
2439
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2444
2440
|
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2445
2441
|
}, "strict", z.ZodTypeAny, {
|
|
2446
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2447
2442
|
exportsOnly?: boolean | undefined;
|
|
2448
2443
|
esModule?: boolean | undefined;
|
|
2449
2444
|
}, {
|
|
2450
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2451
2445
|
exportsOnly?: boolean | undefined;
|
|
2452
2446
|
esModule?: boolean | undefined;
|
|
2453
2447
|
}>>;
|
|
@@ -2511,7 +2505,6 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2511
2505
|
publicPath?: string | undefined;
|
|
2512
2506
|
} | undefined;
|
|
2513
2507
|
css?: {
|
|
2514
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2515
2508
|
exportsOnly?: boolean | undefined;
|
|
2516
2509
|
esModule?: boolean | undefined;
|
|
2517
2510
|
} | undefined;
|
|
@@ -2555,7 +2548,6 @@ declare const generatorOptionsByModuleTypeKnown: z.ZodObject<{
|
|
|
2555
2548
|
publicPath?: string | undefined;
|
|
2556
2549
|
} | undefined;
|
|
2557
2550
|
css?: {
|
|
2558
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2559
2551
|
exportsOnly?: boolean | undefined;
|
|
2560
2552
|
esModule?: boolean | undefined;
|
|
2561
2553
|
} | undefined;
|
|
@@ -2673,15 +2665,12 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2673
2665
|
publicPath?: string | undefined;
|
|
2674
2666
|
}>>;
|
|
2675
2667
|
css: z.ZodOptional<z.ZodObject<{
|
|
2676
|
-
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
2677
2668
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
2678
2669
|
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
2679
2670
|
}, "strict", z.ZodTypeAny, {
|
|
2680
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2681
2671
|
exportsOnly?: boolean | undefined;
|
|
2682
2672
|
esModule?: boolean | undefined;
|
|
2683
2673
|
}, {
|
|
2684
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2685
2674
|
exportsOnly?: boolean | undefined;
|
|
2686
2675
|
esModule?: boolean | undefined;
|
|
2687
2676
|
}>>;
|
|
@@ -2745,7 +2734,6 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2745
2734
|
publicPath?: string | undefined;
|
|
2746
2735
|
} | undefined;
|
|
2747
2736
|
css?: {
|
|
2748
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2749
2737
|
exportsOnly?: boolean | undefined;
|
|
2750
2738
|
esModule?: boolean | undefined;
|
|
2751
2739
|
} | undefined;
|
|
@@ -2789,7 +2777,6 @@ declare const generatorOptionsByModuleType: z.ZodUnion<[z.ZodObject<{
|
|
|
2789
2777
|
publicPath?: string | undefined;
|
|
2790
2778
|
} | undefined;
|
|
2791
2779
|
css?: {
|
|
2792
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
2793
2780
|
exportsOnly?: boolean | undefined;
|
|
2794
2781
|
esModule?: boolean | undefined;
|
|
2795
2782
|
} | undefined;
|
|
@@ -3132,15 +3119,12 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3132
3119
|
publicPath?: string | undefined;
|
|
3133
3120
|
}>>;
|
|
3134
3121
|
css: z.ZodOptional<z.ZodObject<{
|
|
3135
|
-
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
3136
3122
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3137
3123
|
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
3138
3124
|
}, "strict", z.ZodTypeAny, {
|
|
3139
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3140
3125
|
exportsOnly?: boolean | undefined;
|
|
3141
3126
|
esModule?: boolean | undefined;
|
|
3142
3127
|
}, {
|
|
3143
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3144
3128
|
exportsOnly?: boolean | undefined;
|
|
3145
3129
|
esModule?: boolean | undefined;
|
|
3146
3130
|
}>>;
|
|
@@ -3204,7 +3188,6 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3204
3188
|
publicPath?: string | undefined;
|
|
3205
3189
|
} | undefined;
|
|
3206
3190
|
css?: {
|
|
3207
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3208
3191
|
exportsOnly?: boolean | undefined;
|
|
3209
3192
|
esModule?: boolean | undefined;
|
|
3210
3193
|
} | undefined;
|
|
@@ -3248,7 +3231,6 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3248
3231
|
publicPath?: string | undefined;
|
|
3249
3232
|
} | undefined;
|
|
3250
3233
|
css?: {
|
|
3251
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3252
3234
|
exportsOnly?: boolean | undefined;
|
|
3253
3235
|
esModule?: boolean | undefined;
|
|
3254
3236
|
} | undefined;
|
|
@@ -3345,7 +3327,6 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3345
3327
|
publicPath?: string | undefined;
|
|
3346
3328
|
} | undefined;
|
|
3347
3329
|
css?: {
|
|
3348
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3349
3330
|
exportsOnly?: boolean | undefined;
|
|
3350
3331
|
esModule?: boolean | undefined;
|
|
3351
3332
|
} | undefined;
|
|
@@ -3442,7 +3423,6 @@ declare const moduleOptions: z.ZodObject<{
|
|
|
3442
3423
|
publicPath?: string | undefined;
|
|
3443
3424
|
} | undefined;
|
|
3444
3425
|
css?: {
|
|
3445
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
3446
3426
|
exportsOnly?: boolean | undefined;
|
|
3447
3427
|
esModule?: boolean | undefined;
|
|
3448
3428
|
} | undefined;
|
|
@@ -6176,15 +6156,12 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6176
6156
|
publicPath?: string | undefined;
|
|
6177
6157
|
}>>;
|
|
6178
6158
|
css: z.ZodOptional<z.ZodObject<{
|
|
6179
|
-
exportsConvention: z.ZodOptional<z.ZodEnum<["as-is", "camel-case", "camel-case-only", "dashes", "dashes-only"]>>;
|
|
6180
6159
|
exportsOnly: z.ZodOptional<z.ZodBoolean>;
|
|
6181
6160
|
esModule: z.ZodOptional<z.ZodBoolean>;
|
|
6182
6161
|
}, "strict", z.ZodTypeAny, {
|
|
6183
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6184
6162
|
exportsOnly?: boolean | undefined;
|
|
6185
6163
|
esModule?: boolean | undefined;
|
|
6186
6164
|
}, {
|
|
6187
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6188
6165
|
exportsOnly?: boolean | undefined;
|
|
6189
6166
|
esModule?: boolean | undefined;
|
|
6190
6167
|
}>>;
|
|
@@ -6248,7 +6225,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6248
6225
|
publicPath?: string | undefined;
|
|
6249
6226
|
} | undefined;
|
|
6250
6227
|
css?: {
|
|
6251
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6252
6228
|
exportsOnly?: boolean | undefined;
|
|
6253
6229
|
esModule?: boolean | undefined;
|
|
6254
6230
|
} | undefined;
|
|
@@ -6292,7 +6268,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6292
6268
|
publicPath?: string | undefined;
|
|
6293
6269
|
} | undefined;
|
|
6294
6270
|
css?: {
|
|
6295
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6296
6271
|
exportsOnly?: boolean | undefined;
|
|
6297
6272
|
esModule?: boolean | undefined;
|
|
6298
6273
|
} | undefined;
|
|
@@ -6389,7 +6364,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6389
6364
|
publicPath?: string | undefined;
|
|
6390
6365
|
} | undefined;
|
|
6391
6366
|
css?: {
|
|
6392
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6393
6367
|
exportsOnly?: boolean | undefined;
|
|
6394
6368
|
esModule?: boolean | undefined;
|
|
6395
6369
|
} | undefined;
|
|
@@ -6486,7 +6460,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6486
6460
|
publicPath?: string | undefined;
|
|
6487
6461
|
} | undefined;
|
|
6488
6462
|
css?: {
|
|
6489
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6490
6463
|
exportsOnly?: boolean | undefined;
|
|
6491
6464
|
esModule?: boolean | undefined;
|
|
6492
6465
|
} | undefined;
|
|
@@ -6920,7 +6893,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
6920
6893
|
publicPath?: string | undefined;
|
|
6921
6894
|
} | undefined;
|
|
6922
6895
|
css?: {
|
|
6923
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
6924
6896
|
exportsOnly?: boolean | undefined;
|
|
6925
6897
|
esModule?: boolean | undefined;
|
|
6926
6898
|
} | undefined;
|
|
@@ -7344,7 +7316,6 @@ export declare const rspackOptions: z.ZodObject<{
|
|
|
7344
7316
|
publicPath?: string | undefined;
|
|
7345
7317
|
} | undefined;
|
|
7346
7318
|
css?: {
|
|
7347
|
-
exportsConvention?: "as-is" | "camel-case" | "camel-case-only" | "dashes" | "dashes-only" | undefined;
|
|
7348
7319
|
exportsOnly?: boolean | undefined;
|
|
7349
7320
|
esModule?: boolean | undefined;
|
|
7350
7321
|
} | undefined;
|
package/dist/config/zod.js
CHANGED
|
@@ -373,7 +373,6 @@ const cssGeneratorExportsOnly = zod_1.z.boolean();
|
|
|
373
373
|
const cssGeneratorLocalIdentName = zod_1.z.string();
|
|
374
374
|
const cssGeneratorEsModule = zod_1.z.boolean();
|
|
375
375
|
const cssGeneratorOptions = zod_1.z.strictObject({
|
|
376
|
-
exportsConvention: cssGeneratorExportsConvention.optional(),
|
|
377
376
|
exportsOnly: cssGeneratorExportsOnly.optional(),
|
|
378
377
|
esModule: cssGeneratorEsModule.optional()
|
|
379
378
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.7.0-beta.0",
|
|
3
|
+
"version": "0.7.0-beta.0-canary-96d98de-20240517004321",
|
|
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/core": "0.7.0-beta.0",
|
|
75
|
-
"@rspack/plugin-minify": "^0.7.0-beta.0"
|
|
74
|
+
"@rspack/core": "0.7.0-beta.0-canary-96d98de-20240517004321",
|
|
75
|
+
"@rspack/plugin-minify": "^0.7.0-beta.0-canary-96d98de-20240517004321"
|
|
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.7.0-beta.0"
|
|
83
|
+
"@rspack/binding": "0.7.0-beta.0-canary-96d98de-20240517004321"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"@swc/helpers": ">=0.5.1"
|