@rspack-canary/core 1.5.5-canary-03ab52ad-20250916180415 → 1.5.6-canary-95c56d3d-20250917183900
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/index.js +13 -13
- package/dist/schema/config.d.ts +7 -7
- package/dist/schema/utils.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6512,7 +6512,7 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
6512
6512
|
});
|
|
6513
6513
|
return inst._zod.bag.Class = cls, inst;
|
|
6514
6514
|
}
|
|
6515
|
-
let numberOrInfinity = schemas_number().or(literal(1 / 0)), anyFunction = custom((data)=>"function" == typeof data, {
|
|
6515
|
+
let numberOrInfinity = schemas_number().or(literal(1 / 0)), intOrInfinity = schemas_int().or(literal(1 / 0)), anyFunction = custom((data)=>"function" == typeof data, {
|
|
6516
6516
|
error: (input)=>({
|
|
6517
6517
|
message: `Expected function, received ${((data)=>{
|
|
6518
6518
|
let t = typeof data;
|
|
@@ -8653,7 +8653,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8653
8653
|
}, applyExperimentsDefaults = (experiments, { production, development })=>{
|
|
8654
8654
|
defaults_F(experiments, "cache", ()=>development), D(experiments, "futureDefaults", !1), D(experiments, "lazyCompilation", !1), D(experiments, "asyncWebAssembly", experiments.futureDefaults), D(experiments, "css", !!experiments.futureDefaults || void 0), D(experiments, "layers", !1), !1 === experiments.topLevelAwait && console.warn("`experiments.topLevelAwait` config has been deprecated and will be removed in Rspack v2.0. Top-level await will be always enabled. Please remove this option from your Rspack configuration."), D(experiments, "topLevelAwait", !0), D(experiments, "buildHttp", void 0), experiments.buildHttp && "object" == typeof experiments.buildHttp && D(experiments.buildHttp, "upgrade", !1), D(experiments, "incremental", {}), "object" == typeof experiments.incremental && (D(experiments.incremental, "silent", !0), D(experiments.incremental, "make", !0), D(experiments.incremental, "inferAsyncModules", !0), D(experiments.incremental, "providedExports", !0), D(experiments.incremental, "dependenciesDiagnostics", !0), D(experiments.incremental, "sideEffects", !0), D(experiments.incremental, "buildChunkGraph", !1), D(experiments.incremental, "moduleIds", !0), D(experiments.incremental, "chunkIds", !0), D(experiments.incremental, "modulesHashes", !0), D(experiments.incremental, "modulesCodegen", !0), D(experiments.incremental, "modulesRuntimeRequirements", !0), D(experiments.incremental, "chunksRuntimeRequirements", !0), D(experiments.incremental, "chunksHashes", !0), D(experiments.incremental, "chunksRender", !0), D(experiments.incremental, "emitAssets", !0)), D(experiments, "rspackFuture", {}), D(experiments, "parallelCodeSplitting", !1), D(experiments, "parallelLoader", !1), D(experiments, "useInputFileSystem", !1), D(experiments, "inlineConst", !1), D(experiments, "inlineEnum", !1), D(experiments, "typeReexportsPresence", !1), D(experiments, "lazyBarrel", !1);
|
|
8655
8655
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8656
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.
|
|
8656
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.6-canary-95c56d3d-20250917183900"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8657
8657
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8658
8658
|
if (assertNotNill(module.parser), assertNotNill(module.generator), defaults_F(module.parser, "asset", ()=>({})), assertNotNill(module.parser.asset), defaults_F(module.parser.asset, "dataUrlCondition", ()=>({})), "object" == typeof module.parser.asset.dataUrlCondition && D(module.parser.asset.dataUrlCondition, "maxSize", 8096), defaults_F(module.parser, "javascript", ()=>({})), assertNotNill(module.parser.javascript), ((parserOptions, { usedExports, inlineConst })=>{
|
|
8659
8659
|
D(parserOptions, "dynamicImportMode", "lazy"), D(parserOptions, "dynamicImportPrefetch", !1), D(parserOptions, "dynamicImportPreload", !1), D(parserOptions, "url", !0), D(parserOptions, "exprContextCritical", !0), D(parserOptions, "unknownContextCritical", !0), D(parserOptions, "wrappedContextCritical", !1), D(parserOptions, "wrappedContextRegExp", /.*/), D(parserOptions, "strictExportPresence", !1), D(parserOptions, "requireAsExpression", !0), D(parserOptions, "requireDynamic", !0), D(parserOptions, "requireResolve", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -10297,7 +10297,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10297
10297
|
});
|
|
10298
10298
|
}
|
|
10299
10299
|
}
|
|
10300
|
-
let CORE_VERSION = "1.5.
|
|
10300
|
+
let CORE_VERSION = "1.5.6-canary-95c56d3d-20250917183900", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10301
10301
|
|
|
10302
10302
|
Help:
|
|
10303
10303
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -11581,7 +11581,7 @@ Help:
|
|
|
11581
11581
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11582
11582
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11583
11583
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11584
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.
|
|
11584
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.6-canary-95c56d3d-20250917183900", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11585
11585
|
let mapError = (j, obj)=>({
|
|
11586
11586
|
...obj,
|
|
11587
11587
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12481,7 +12481,7 @@ Help:
|
|
|
12481
12481
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12482
12482
|
},
|
|
12483
12483
|
version: (object)=>{
|
|
12484
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.
|
|
12484
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.6-canary-95c56d3d-20250917183900";
|
|
12485
12485
|
},
|
|
12486
12486
|
env: (object, _compilation, _context, { _env })=>{
|
|
12487
12487
|
object.env = _env;
|
|
@@ -15240,16 +15240,16 @@ Help:
|
|
|
15240
15240
|
groupModulesByAttributes: schemas_boolean(),
|
|
15241
15241
|
groupModulesByPath: schemas_boolean(),
|
|
15242
15242
|
groupModulesByExtension: schemas_boolean(),
|
|
15243
|
-
modulesSpace:
|
|
15244
|
-
chunkModulesSpace:
|
|
15245
|
-
nestedModulesSpace:
|
|
15243
|
+
modulesSpace: intOrInfinity,
|
|
15244
|
+
chunkModulesSpace: intOrInfinity,
|
|
15245
|
+
nestedModulesSpace: intOrInfinity,
|
|
15246
15246
|
relatedAssets: schemas_boolean(),
|
|
15247
15247
|
groupAssetsByEmitStatus: schemas_boolean(),
|
|
15248
15248
|
groupAssetsByInfo: schemas_boolean(),
|
|
15249
15249
|
groupAssetsByPath: schemas_boolean(),
|
|
15250
15250
|
groupAssetsByExtension: schemas_boolean(),
|
|
15251
15251
|
groupAssetsByChunk: schemas_boolean(),
|
|
15252
|
-
assetsSpace:
|
|
15252
|
+
assetsSpace: intOrInfinity,
|
|
15253
15253
|
orphanModules: schemas_boolean(),
|
|
15254
15254
|
excludeModules: schemas_array(schemas_string().or(_instanceof(RegExp)).or(anyFunction)).or(schemas_string()).or(_instanceof(RegExp)).or(anyFunction).or(schemas_boolean()),
|
|
15255
15255
|
excludeAssets: schemas_array(schemas_string().or(_instanceof(RegExp)).or(anyFunction)).or(schemas_string()).or(_instanceof(RegExp)).or(anyFunction),
|
|
@@ -15267,7 +15267,7 @@ Help:
|
|
|
15267
15267
|
chunkOrigins: schemas_boolean(),
|
|
15268
15268
|
runtime: schemas_boolean(),
|
|
15269
15269
|
depth: schemas_boolean(),
|
|
15270
|
-
reasonsSpace:
|
|
15270
|
+
reasonsSpace: intOrInfinity,
|
|
15271
15271
|
groupReasonsByOrigin: schemas_boolean(),
|
|
15272
15272
|
errorDetails: schemas_boolean(),
|
|
15273
15273
|
errorStack: schemas_boolean(),
|
|
@@ -15275,8 +15275,8 @@ Help:
|
|
|
15275
15275
|
cachedModules: schemas_boolean(),
|
|
15276
15276
|
cachedAssets: schemas_boolean(),
|
|
15277
15277
|
cached: schemas_boolean(),
|
|
15278
|
-
errorsSpace:
|
|
15279
|
-
warningsSpace:
|
|
15278
|
+
errorsSpace: intOrInfinity,
|
|
15279
|
+
warningsSpace: intOrInfinity
|
|
15280
15280
|
}).partial(), statsValue = schemas_boolean().or(statsPresets).or(statsOptions), plugin = union([
|
|
15281
15281
|
custom(),
|
|
15282
15282
|
falsy
|
|
@@ -15796,7 +15796,7 @@ Help:
|
|
|
15796
15796
|
let _options = JSON.stringify(options || {});
|
|
15797
15797
|
return binding_default().transform(source, _options);
|
|
15798
15798
|
}
|
|
15799
|
-
let exports_rspackVersion = "1.5.
|
|
15799
|
+
let exports_rspackVersion = "1.5.6-canary-95c56d3d-20250917183900", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15800
15800
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15801
15801
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15802
15802
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/dist/schema/config.d.ts
CHANGED
|
@@ -555,16 +555,16 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
555
555
|
groupModulesByAttributes: z.ZodOptional<z.ZodBoolean>;
|
|
556
556
|
groupModulesByPath: z.ZodOptional<z.ZodBoolean>;
|
|
557
557
|
groupModulesByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
558
|
-
modulesSpace: z.ZodOptional<z.ZodInt
|
|
559
|
-
chunkModulesSpace: z.ZodOptional<z.ZodInt
|
|
560
|
-
nestedModulesSpace: z.ZodOptional<z.ZodInt
|
|
558
|
+
modulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
559
|
+
chunkModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
560
|
+
nestedModulesSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
561
561
|
relatedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
562
562
|
groupAssetsByEmitStatus: z.ZodOptional<z.ZodBoolean>;
|
|
563
563
|
groupAssetsByInfo: z.ZodOptional<z.ZodBoolean>;
|
|
564
564
|
groupAssetsByPath: z.ZodOptional<z.ZodBoolean>;
|
|
565
565
|
groupAssetsByExtension: z.ZodOptional<z.ZodBoolean>;
|
|
566
566
|
groupAssetsByChunk: z.ZodOptional<z.ZodBoolean>;
|
|
567
|
-
assetsSpace: z.ZodOptional<z.ZodInt
|
|
567
|
+
assetsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
568
568
|
orphanModules: z.ZodOptional<z.ZodBoolean>;
|
|
569
569
|
excludeModules: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>, z.ZodBoolean]>>;
|
|
570
570
|
excludeAssets: z.ZodOptional<z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>, z.ZodString]>, z.ZodCustom<RegExp, RegExp>]>, z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>]>>;
|
|
@@ -582,7 +582,7 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
582
582
|
chunkOrigins: z.ZodOptional<z.ZodBoolean>;
|
|
583
583
|
runtime: z.ZodOptional<z.ZodBoolean>;
|
|
584
584
|
depth: z.ZodOptional<z.ZodBoolean>;
|
|
585
|
-
reasonsSpace: z.ZodOptional<z.ZodInt
|
|
585
|
+
reasonsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
586
586
|
groupReasonsByOrigin: z.ZodOptional<z.ZodBoolean>;
|
|
587
587
|
errorDetails: z.ZodOptional<z.ZodBoolean>;
|
|
588
588
|
errorStack: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -590,8 +590,8 @@ export declare const getRspackOptionsSchema: () => z.ZodObject<{
|
|
|
590
590
|
cachedModules: z.ZodOptional<z.ZodBoolean>;
|
|
591
591
|
cachedAssets: z.ZodOptional<z.ZodBoolean>;
|
|
592
592
|
cached: z.ZodOptional<z.ZodBoolean>;
|
|
593
|
-
errorsSpace: z.ZodOptional<z.ZodInt
|
|
594
|
-
warningsSpace: z.ZodOptional<z.ZodInt
|
|
593
|
+
errorsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
594
|
+
warningsSpace: z.ZodOptional<z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>>;
|
|
595
595
|
}, z.core.$strict>]>>;
|
|
596
596
|
snapshot: z.ZodOptional<z.ZodObject<{}, z.core.$strict>>;
|
|
597
597
|
optimization: z.ZodOptional<z.ZodObject<{
|
package/dist/schema/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// @ts-ignore
|
|
2
2
|
import * as z from "zod/v4";
|
|
3
3
|
export declare const numberOrInfinity: z.ZodUnion<[z.ZodNumber, z.ZodLiteral<number>]>;
|
|
4
|
+
export declare const intOrInfinity: z.ZodUnion<[z.ZodInt, z.ZodLiteral<number>]>;
|
|
4
5
|
export declare const anyFunction: z.ZodCustom<(...args: unknown[]) => any, (...args: unknown[]) => any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.6-canary-95c56d3d-20250917183900",
|
|
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
|
"dependencies": {
|
|
61
61
|
"@module-federation/runtime-tools": "0.18.0",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.5.
|
|
63
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.5.6-canary-95c56d3d-20250917183900"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|