@rspack-canary/browser 1.5.9-canary-a915dabc-20251013174148 → 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.mjs +14 -10
- package/dist/napi-binding.d.ts +2 -0
- package/dist/rspack.wasm32-wasi.wasm +0 -0
- package/package.json +1 -1
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.mjs
CHANGED
|
@@ -39870,7 +39870,8 @@ const getRawModuleRule = (rule, path, options, upperType)=>{
|
|
|
39870
39870
|
resolve: rule.resolve ? getRawResolve(rule.resolve) : void 0,
|
|
39871
39871
|
oneOf: rule.oneOf ? rule.oneOf.filter(Boolean).map((rule, index)=>getRawModuleRule(rule, `${path}.oneOf[${index}]`, options, rule.type ?? upperType)) : void 0,
|
|
39872
39872
|
rules: rule.rules ? rule.rules.filter(Boolean).map((rule, index)=>getRawModuleRule(rule, `${path}.rules[${index}]`, options, rule.type ?? upperType)) : void 0,
|
|
39873
|
-
enforce: rule.enforce
|
|
39873
|
+
enforce: rule.enforce,
|
|
39874
|
+
extractSourceMap: rule.extractSourceMap
|
|
39874
39875
|
};
|
|
39875
39876
|
if ("function" == typeof rule.test || "function" == typeof rule.resource || "function" == typeof rule.resourceQuery || "function" == typeof rule.resourceFragment) {
|
|
39876
39877
|
delete rawModuleRule.test;
|
|
@@ -46606,8 +46607,6 @@ const applyExperimentsDefaults = (experiments, { development })=>{
|
|
|
46606
46607
|
D(experiments, "lazyCompilation", false);
|
|
46607
46608
|
D(experiments, "asyncWebAssembly", experiments.futureDefaults);
|
|
46608
46609
|
D(experiments, "css", experiments.futureDefaults ? true : void 0);
|
|
46609
|
-
if ("layers" in experiments) console.warn("`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.");
|
|
46610
|
-
if (false === 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.");
|
|
46611
46610
|
D(experiments, "topLevelAwait", true);
|
|
46612
46611
|
D(experiments, "buildHttp", void 0);
|
|
46613
46612
|
if (experiments.buildHttp && "object" == typeof experiments.buildHttp) D(experiments.buildHttp, "upgrade", false);
|
|
@@ -46643,7 +46642,7 @@ const applybundlerInfoDefaults = (rspackFuture, library)=>{
|
|
|
46643
46642
|
if ("object" == typeof rspackFuture) {
|
|
46644
46643
|
D(rspackFuture, "bundlerInfo", {});
|
|
46645
46644
|
if ("object" == typeof rspackFuture.bundlerInfo) {
|
|
46646
|
-
D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-
|
|
46645
|
+
D(rspackFuture.bundlerInfo, "version", "1.5.9-canary-e259bc79-20251014173821");
|
|
46647
46646
|
D(rspackFuture.bundlerInfo, "bundler", "rspack");
|
|
46648
46647
|
D(rspackFuture.bundlerInfo, "force", !library);
|
|
46649
46648
|
}
|
|
@@ -47496,7 +47495,10 @@ const getNormalizedRspackOptions = (config)=>({
|
|
|
47496
47495
|
plugins: nestedArray(config.plugins, (p)=>[
|
|
47497
47496
|
...p
|
|
47498
47497
|
]),
|
|
47499
|
-
experiments: nestedConfig(config.experiments, (experiments)=>
|
|
47498
|
+
experiments: nestedConfig(config.experiments, (experiments)=>{
|
|
47499
|
+
if (experiments.layers) 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.")();
|
|
47500
|
+
if (false === experiments.topLevelAwait) 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.")();
|
|
47501
|
+
return {
|
|
47500
47502
|
...experiments,
|
|
47501
47503
|
cache: optionalNestedConfig(experiments.cache, (cache)=>{
|
|
47502
47504
|
var _cache_storage;
|
|
@@ -47532,7 +47534,8 @@ const getNormalizedRspackOptions = (config)=>({
|
|
|
47532
47534
|
buildHttp: experiments.buildHttp,
|
|
47533
47535
|
parallelLoader: experiments.parallelLoader,
|
|
47534
47536
|
useInputFileSystem: experiments.useInputFileSystem
|
|
47535
|
-
}
|
|
47537
|
+
};
|
|
47538
|
+
}),
|
|
47536
47539
|
watch: config.watch,
|
|
47537
47540
|
watchOptions: cloneObject(config.watchOptions),
|
|
47538
47541
|
devServer: config.devServer,
|
|
@@ -50582,7 +50585,7 @@ class MultiStats {
|
|
|
50582
50585
|
return obj;
|
|
50583
50586
|
});
|
|
50584
50587
|
if (childOptions.version) {
|
|
50585
|
-
obj.rspackVersion = "1.5.9-canary-
|
|
50588
|
+
obj.rspackVersion = "1.5.9-canary-e259bc79-20251014173821";
|
|
50586
50589
|
obj.version = "5.75.0";
|
|
50587
50590
|
}
|
|
50588
50591
|
if (childOptions.hash) obj.hash = obj.children.map((j)=>j.hash).join("");
|
|
@@ -51890,7 +51893,7 @@ const SIMPLE_EXTRACTORS = {
|
|
|
51890
51893
|
},
|
|
51891
51894
|
version: (object)=>{
|
|
51892
51895
|
object.version = "5.75.0";
|
|
51893
|
-
object.rspackVersion = "1.5.9-canary-
|
|
51896
|
+
object.rspackVersion = "1.5.9-canary-e259bc79-20251014173821";
|
|
51894
51897
|
},
|
|
51895
51898
|
env: (object, _compilation, _context, { _env })=>{
|
|
51896
51899
|
object.env = _env;
|
|
@@ -55117,7 +55120,8 @@ const getRspackOptionsSchema = memoize(()=>{
|
|
|
55117
55120
|
generator: schemas_record(schemas_string(), any()),
|
|
55118
55121
|
resolve: resolveOptions,
|
|
55119
55122
|
sideEffects: schemas_boolean(),
|
|
55120
|
-
enforce: literal("pre").or(literal("post"))
|
|
55123
|
+
enforce: literal("pre").or(literal("post")),
|
|
55124
|
+
extractSourceMap: schemas_boolean()
|
|
55121
55125
|
}).partial();
|
|
55122
55126
|
const extendedBaseRuleSetRule = baseRuleSetRule.extend({
|
|
55123
55127
|
oneOf: lazy(()=>ruleSetRule.or(falsy).array()).optional(),
|
|
@@ -56359,7 +56363,7 @@ function transformSync(source, options) {
|
|
|
56359
56363
|
const _options = JSON.stringify(options || {});
|
|
56360
56364
|
return external_rspack_wasi_browser_js_["default"].transformSync(source, _options);
|
|
56361
56365
|
}
|
|
56362
|
-
const exports_rspackVersion = "1.5.9-canary-
|
|
56366
|
+
const exports_rspackVersion = "1.5.9-canary-e259bc79-20251014173821";
|
|
56363
56367
|
const exports_version = "5.75.0";
|
|
56364
56368
|
const exports_WebpackError = Error;
|
|
56365
56369
|
const sources = __webpack_require__("../../node_modules/.pnpm/webpack-sources@3.3.3_patch_hash=b2a26650f08a2359d0a3cd81fa6fa272aa7441a28dd7e601792da5ed5d2b4aee/node_modules/webpack-sources/lib/index.js");
|
package/dist/napi-binding.d.ts
CHANGED
|
@@ -2488,6 +2488,8 @@ export interface RawModuleRule {
|
|
|
2488
2488
|
rules?: Array<RawModuleRule>
|
|
2489
2489
|
/** Specifies the category of the loader. No value means normal loader. */
|
|
2490
2490
|
enforce?: 'pre' | 'post'
|
|
2491
|
+
/** Whether to extract source maps from the module. */
|
|
2492
|
+
extractSourceMap?: boolean
|
|
2491
2493
|
}
|
|
2492
2494
|
|
|
2493
2495
|
/**
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/browser",
|
|
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": "Rspack for running in the browser. This is still in early stage and may not follow the semver.",
|