@rspack-canary/core 1.5.9-canary-bddc650e-20251012024608 → 1.5.9-canary-e259bc79-20251014173821
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/types.d.ts +2 -0
- package/dist/index.js +12 -10
- package/module.d.ts +0 -2
- package/package.json +3 -3
package/dist/config/types.d.ts
CHANGED
|
@@ -664,6 +664,8 @@ export type RuleSetRule = {
|
|
|
664
664
|
oneOf?: (RuleSetRule | Falsy)[];
|
|
665
665
|
/** A kind of Nested Rule, an array of Rules that is also used when the parent Rule matches. */
|
|
666
666
|
rules?: (RuleSetRule | Falsy)[];
|
|
667
|
+
/** Whether to extract source maps from the module. */
|
|
668
|
+
extractSourceMap?: boolean;
|
|
667
669
|
};
|
|
668
670
|
/** A list of rules. */
|
|
669
671
|
export type RuleSetRules = ("..." | RuleSetRule | Falsy)[];
|
package/dist/index.js
CHANGED
|
@@ -3848,7 +3848,8 @@ Plugins which provide custom chunk loading types must call EnableChunkLoadingPlu
|
|
|
3848
3848
|
resolve: rule.resolve ? getRawResolve(rule.resolve) : void 0,
|
|
3849
3849
|
oneOf: rule.oneOf ? rule.oneOf.filter(Boolean).map((rule, index)=>getRawModuleRule(rule, `${path}.oneOf[${index}]`, options, rule.type ?? upperType)) : void 0,
|
|
3850
3850
|
rules: rule.rules ? rule.rules.filter(Boolean).map((rule, index)=>getRawModuleRule(rule, `${path}.rules[${index}]`, options, rule.type ?? upperType)) : void 0,
|
|
3851
|
-
enforce: rule.enforce
|
|
3851
|
+
enforce: rule.enforce,
|
|
3852
|
+
extractSourceMap: rule.extractSourceMap
|
|
3852
3853
|
};
|
|
3853
3854
|
return ("function" == typeof rule.test || "function" == typeof rule.resource || "function" == typeof rule.resourceQuery || "function" == typeof rule.resourceFragment) && (delete rawModuleRule.test, delete rawModuleRule.resource, delete rawModuleRule.resourceQuery, delete rawModuleRule.resourceFragment, rawModuleRule.rspackResource = getRawRuleSetCondition((resourceQueryFragment)=>{
|
|
3854
3855
|
let { path, query, fragment } = parseResource(resourceQueryFragment);
|
|
@@ -8658,9 +8659,9 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
8658
8659
|
let tty = infrastructureLogging.stream?.isTTY && "dumb" !== process.env.TERM;
|
|
8659
8660
|
D(infrastructureLogging, "level", "info"), D(infrastructureLogging, "debug", !1), D(infrastructureLogging, "colors", tty), D(infrastructureLogging, "appendOnly", !tty);
|
|
8660
8661
|
}, applyExperimentsDefaults = (experiments, { development })=>{
|
|
8661
|
-
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),
|
|
8662
|
+
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, "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", !0);
|
|
8662
8663
|
}, applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
8663
|
-
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-
|
|
8664
|
+
"object" == typeof rspackFuture && (D(rspackFuture, "bundlerInfo", {}), "object" == typeof rspackFuture.bundlerInfo && (D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-e259bc79-20251014173821"), D(rspackFuture.bundlerInfo, "bundler", "rspack"), D(rspackFuture.bundlerInfo, "force", !library)));
|
|
8664
8665
|
}, applySnapshotDefaults = (_snapshot, _env)=>{}, applyModuleDefaults = (module, { asyncWebAssembly, css, targetProperties, mode, uniqueName, usedExports, inlineConst })=>{
|
|
8665
8666
|
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 })=>{
|
|
8666
8667
|
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, "commonjs", !0), D(parserOptions, "importDynamic", !0), D(parserOptions, "worker", [
|
|
@@ -9267,7 +9268,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
9267
9268
|
plugins: nestedArray(config.plugins, (p)=>[
|
|
9268
9269
|
...p
|
|
9269
9270
|
]),
|
|
9270
|
-
experiments: nestedConfig(config.experiments, (experiments)=>({
|
|
9271
|
+
experiments: nestedConfig(config.experiments, (experiments)=>(experiments.layers && external_node_util_default().deprecate(()=>{}, "`experiments.layers` config has been deprecated and will be removed in Rspack v2.0. Feature layers will be always enabled. Please remove this option from your Rspack configuration.")(), !1 === experiments.topLevelAwait && external_node_util_default().deprecate(()=>{}, "`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.")(), {
|
|
9271
9272
|
...experiments,
|
|
9272
9273
|
cache: optionalNestedConfig(experiments.cache, (cache)=>{
|
|
9273
9274
|
if ("boolean" == typeof cache || "memory" === cache.type) return cache;
|
|
@@ -10301,7 +10302,7 @@ You can also more options via the 'target' option: 'browserslist' / 'browserslis
|
|
|
10301
10302
|
});
|
|
10302
10303
|
}
|
|
10303
10304
|
}
|
|
10304
|
-
let CORE_VERSION = "1.5.9-canary-
|
|
10305
|
+
let CORE_VERSION = "1.5.9-canary-e259bc79-20251014173821", bindingVersionCheck_errorMessage = (coreVersion, expectedCoreVersion)=>process.env.RSPACK_BINDING ? `Unmatched version @rspack/core@${coreVersion} and binding version.
|
|
10305
10306
|
|
|
10306
10307
|
Help:
|
|
10307
10308
|
Looks like you are using a custom binding (via environment variable 'RSPACK_BINDING=${process.env.RSPACK_BINDING}').
|
|
@@ -10786,7 +10787,7 @@ Help:
|
|
|
10786
10787
|
callback(err, entries, compilation);
|
|
10787
10788
|
} catch (e) {
|
|
10788
10789
|
let err = Error(`compiler.runAsChild callback error: ${e}`);
|
|
10789
|
-
this.parentCompilation.errors.push(err)
|
|
10790
|
+
this.parentCompilation.errors.push(err);
|
|
10790
10791
|
}
|
|
10791
10792
|
};
|
|
10792
10793
|
this.compile((err, compilation)=>{
|
|
@@ -11579,7 +11580,7 @@ Help:
|
|
|
11579
11580
|
obj.children = this.stats.map((stat, idx)=>{
|
|
11580
11581
|
let obj = stat.toJson(childOptions.children[idx]), compilationName = stat.compilation.name;
|
|
11581
11582
|
return obj.name = compilationName && makePathsRelative(childOptions.context, compilationName, stat.compilation.compiler.root), obj;
|
|
11582
|
-
}), childOptions.version && (obj.rspackVersion = "1.5.9-canary-
|
|
11583
|
+
}), childOptions.version && (obj.rspackVersion = "1.5.9-canary-e259bc79-20251014173821", obj.version = "5.75.0"), childOptions.hash && (obj.hash = obj.children.map((j)=>j.hash).join(""));
|
|
11583
11584
|
let mapError = (j, obj)=>({
|
|
11584
11585
|
...obj,
|
|
11585
11586
|
compilerPath: obj.compilerPath ? `${j.name}.${obj.compilerPath}` : j.name
|
|
@@ -12475,7 +12476,7 @@ Help:
|
|
|
12475
12476
|
object.hash = context.getStatsCompilation(compilation).hash;
|
|
12476
12477
|
},
|
|
12477
12478
|
version: (object)=>{
|
|
12478
|
-
object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-
|
|
12479
|
+
object.version = "5.75.0", object.rspackVersion = "1.5.9-canary-e259bc79-20251014173821";
|
|
12479
12480
|
},
|
|
12480
12481
|
env: (object, _compilation, _context, { _env })=>{
|
|
12481
12482
|
object.env = _env;
|
|
@@ -14959,7 +14960,8 @@ Help:
|
|
|
14959
14960
|
generator: schemas_record(schemas_string(), any()),
|
|
14960
14961
|
resolve: resolveOptions,
|
|
14961
14962
|
sideEffects: schemas_boolean(),
|
|
14962
|
-
enforce: literal("pre").or(literal("post"))
|
|
14963
|
+
enforce: literal("pre").or(literal("post")),
|
|
14964
|
+
extractSourceMap: schemas_boolean()
|
|
14963
14965
|
}).partial().extend({
|
|
14964
14966
|
oneOf: lazy(()=>ruleSetRule.or(falsy).array()).optional(),
|
|
14965
14967
|
rules: lazy(()=>ruleSetRule.or(falsy).array()).optional()
|
|
@@ -15800,7 +15802,7 @@ Help:
|
|
|
15800
15802
|
let _options = JSON.stringify(options || {});
|
|
15801
15803
|
return binding_default().transform(source, _options);
|
|
15802
15804
|
}
|
|
15803
|
-
let exports_rspackVersion = "1.5.9-canary-
|
|
15805
|
+
let exports_rspackVersion = "1.5.9-canary-e259bc79-20251014173821", exports_version = "5.75.0", exports_WebpackError = Error, sources = __webpack_require__("webpack-sources"), exports_config = {
|
|
15804
15806
|
getNormalizedRspackOptions: getNormalizedRspackOptions,
|
|
15805
15807
|
applyRspackOptionsDefaults: applyRspackOptionsDefaults,
|
|
15806
15808
|
getNormalizedWebpackOptions: getNormalizedRspackOptions,
|
package/module.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/core",
|
|
3
|
-
"version": "1.5.9-canary-
|
|
3
|
+
"version": "1.5.9-canary-e259bc79-20251014173821",
|
|
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.20.0",
|
|
62
62
|
"@rspack/lite-tapable": "1.0.1",
|
|
63
|
-
"@rspack/binding": "npm:@rspack-canary/binding@1.5.9-canary-
|
|
63
|
+
"@rspack/binding": "npm:@rspack-canary/binding@1.5.9-canary-e259bc79-20251014173821"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"@swc/helpers": ">=0.5.1"
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
74
|
"build": "rslib build",
|
|
75
|
-
"build:browser": "rslib build -c rslib.browser.config.
|
|
75
|
+
"build:browser": "rslib build -c rslib.browser.config.mts",
|
|
76
76
|
"dev": "rslib build --watch",
|
|
77
77
|
"doc-coverage": "tsx ./scripts/check-documentation-coverage.ts",
|
|
78
78
|
"api-extractor": "api-extractor run --verbose",
|