@rspack/core 0.6.3-canary-332b127-20240424004510 → 0.6.3-canary-0c04972-20240426004546
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 -26
- package/dist/Compilation.js +165 -52
- package/dist/Compiler.js +15 -13
- package/dist/builtin-plugin/css-extract/index.js +1 -3
- package/dist/config/adapter.js +23 -2
- package/dist/config/defaults.js +23 -4
- package/dist/config/normalization.d.ts +1 -0
- package/dist/config/normalization.js +1 -0
- package/dist/config/zod.d.ts +668 -0
- package/dist/config/zod.js +11 -2
- package/package.json +4 -4
package/dist/config/zod.js
CHANGED
|
@@ -118,6 +118,7 @@ const entry = entryStatic.or(zod_1.z.function().returns(entryStatic));
|
|
|
118
118
|
//#endregion
|
|
119
119
|
//#region Output
|
|
120
120
|
const path = zod_1.z.string();
|
|
121
|
+
const pathinfo = zod_1.z.boolean().or(zod_1.z.literal("verbose"));
|
|
121
122
|
const assetModuleFilename = zod_1.z.string();
|
|
122
123
|
const webassemblyModuleFilename = zod_1.z.string();
|
|
123
124
|
const chunkFilename = filename;
|
|
@@ -159,6 +160,7 @@ const devtoolModuleFilenameTemplate = zod_1.z.union([
|
|
|
159
160
|
const devtoolFallbackModuleFilenameTemplate = devtoolModuleFilenameTemplate;
|
|
160
161
|
const output = zod_1.z.strictObject({
|
|
161
162
|
path: path.optional(),
|
|
163
|
+
pathinfo: pathinfo.optional(),
|
|
162
164
|
clean: clean.optional(),
|
|
163
165
|
publicPath: publicPath.optional(),
|
|
164
166
|
filename: filename.optional(),
|
|
@@ -328,18 +330,25 @@ const dynamicImportMode = zod_1.z.enum(["eager", "lazy"]);
|
|
|
328
330
|
const dynamicImportPreload = zod_1.z.union([zod_1.z.boolean(), zod_1.z.number()]);
|
|
329
331
|
const dynamicImportPrefetch = zod_1.z.union([zod_1.z.boolean(), zod_1.z.number()]);
|
|
330
332
|
const javascriptParserUrl = zod_1.z.union([zod_1.z.literal("relative"), zod_1.z.boolean()]);
|
|
333
|
+
const exprContextCritical = zod_1.z.boolean();
|
|
334
|
+
const wrappedContextCritical = zod_1.z.boolean();
|
|
331
335
|
const javascriptParserOptions = zod_1.z.strictObject({
|
|
332
336
|
dynamicImportMode: dynamicImportMode.optional(),
|
|
333
337
|
dynamicImportPreload: dynamicImportPreload.optional(),
|
|
334
338
|
dynamicImportPrefetch: dynamicImportPrefetch.optional(),
|
|
335
|
-
url: javascriptParserUrl.optional()
|
|
339
|
+
url: javascriptParserUrl.optional(),
|
|
340
|
+
exprContextCritical: exprContextCritical.optional(),
|
|
341
|
+
wrappedContextCritical: wrappedContextCritical.optional()
|
|
336
342
|
});
|
|
337
343
|
const parserOptionsByModuleTypeKnown = zod_1.z.strictObject({
|
|
338
344
|
asset: assetParserOptions.optional(),
|
|
339
345
|
css: cssParserOptions.optional(),
|
|
340
346
|
"css/auto": cssAutoParserOptions.optional(),
|
|
341
347
|
"css/module": cssModuleParserOptions.optional(),
|
|
342
|
-
javascript: javascriptParserOptions.optional()
|
|
348
|
+
javascript: javascriptParserOptions.optional(),
|
|
349
|
+
"javascript/auto": javascriptParserOptions.optional(),
|
|
350
|
+
"javascript/dynamic": javascriptParserOptions.optional(),
|
|
351
|
+
"javascript/esm": javascriptParserOptions.optional()
|
|
343
352
|
});
|
|
344
353
|
const parserOptionsByModuleTypeUnknown = zod_1.z.record(zod_1.z.record(zod_1.z.any()));
|
|
345
354
|
const parserOptionsByModuleType = parserOptionsByModuleTypeKnown.or(parserOptionsByModuleTypeUnknown);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "0.6.3-canary-
|
|
3
|
+
"version": "0.6.3-canary-0c04972-20240426004546",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "A Fast Rust-based Web Bundler",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"styled-components": "^6.0.8",
|
|
61
61
|
"terser": "5.27.2",
|
|
62
62
|
"wast-loader": "^1.11.4",
|
|
63
|
-
"@rspack/core": "0.6.3-canary-
|
|
64
|
-
"@rspack/plugin-minify": "^0.6.3-canary-
|
|
63
|
+
"@rspack/core": "0.6.3-canary-0c04972-20240426004546",
|
|
64
|
+
"@rspack/plugin-minify": "^0.6.3-canary-0c04972-20240426004546"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@module-federation/runtime-tools": "0.1.6",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"webpack-sources": "3.2.3",
|
|
76
76
|
"zod": "^3.21.4",
|
|
77
77
|
"zod-validation-error": "1.3.1",
|
|
78
|
-
"@rspack/binding": "0.6.3-canary-
|
|
78
|
+
"@rspack/binding": "0.6.3-canary-0c04972-20240426004546"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"@swc/helpers": ">=0.5.1"
|