@rspack/core 1.0.9 → 1.0.10
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/Compiler.js +10 -5
- package/dist/DependenciesBlock.js +1 -1
- package/dist/Dependency.d.ts +7 -6
- package/dist/Dependency.js +35 -24
- package/dist/Module.d.ts +19 -17
- package/dist/Module.js +132 -49
- package/dist/config/types.d.ts +236 -0
- package/dist/config/zod.d.ts +157 -790
- package/dist/config/zod.js +2 -0
- package/dist/loader-runner/index.js +1 -1
- package/package.json +2 -2
package/dist/config/zod.js
CHANGED
|
@@ -788,6 +788,8 @@ const statsOptions = zod_1.z.strictObject({
|
|
|
788
788
|
warningsSpace: zod_1.z.number().optional()
|
|
789
789
|
});
|
|
790
790
|
const statsValue = zod_1.z.boolean().or(statsPresets).or(statsOptions);
|
|
791
|
+
//#endregion
|
|
792
|
+
//#region Plugins
|
|
791
793
|
const plugin = zod_1.z.union([
|
|
792
794
|
zod_1.z.custom(),
|
|
793
795
|
falsy
|
|
@@ -454,7 +454,7 @@ async function runLoaders(compiler, context) {
|
|
|
454
454
|
loaderContext.version = 2;
|
|
455
455
|
loaderContext.sourceMap = compiler.options.devtool
|
|
456
456
|
? (0, adapterRuleUse_1.isUseSourceMap)(compiler.options.devtool)
|
|
457
|
-
: false;
|
|
457
|
+
: context._module.useSourceMap ?? false;
|
|
458
458
|
loaderContext.mode = compiler.options.mode;
|
|
459
459
|
Object.assign(loaderContext, compiler.options.loader);
|
|
460
460
|
const getResolveContext = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"webpackVersion": "5.75.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "The fast Rust-based web bundler with webpack-compatible API",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@module-federation/runtime-tools": "0.5.1",
|
|
61
61
|
"@rspack/lite-tapable": "1.0.1",
|
|
62
62
|
"caniuse-lite": "^1.0.30001616",
|
|
63
|
-
"@rspack/binding": "1.0.
|
|
63
|
+
"@rspack/binding": "1.0.10"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|