@rspack-canary/cli 1.4.6-canary-9aeecbbb-20250709033106 → 1.4.6-canary-a6d3c2e2-20250711064219
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 +6 -0
- package/dist/index.mjs +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -555,7 +555,13 @@ var __webpack_exports__ = {};
|
|
|
555
555
|
throw error;
|
|
556
556
|
}
|
|
557
557
|
};
|
|
558
|
+
const checkIsMultiRspackOptions = (config)=>Array.isArray(config);
|
|
558
559
|
async function loadExtendedConfig(config, configPath, cwd, options) {
|
|
560
|
+
if (checkIsMultiRspackOptions(config)) {
|
|
561
|
+
const extendedConfigs = await Promise.all(config.map((item)=>loadExtendedConfig(item, configPath, cwd, options)));
|
|
562
|
+
extendedConfigs.parallelism = config.parallelism;
|
|
563
|
+
return extendedConfigs;
|
|
564
|
+
}
|
|
559
565
|
if (!("extends" in config) || !config.extends) return config;
|
|
560
566
|
const extendsList = Array.isArray(config.extends) ? config.extends : [
|
|
561
567
|
config.extends
|
package/dist/index.mjs
CHANGED
|
@@ -519,7 +519,13 @@ const registerLoader = async (configPath)=>{
|
|
|
519
519
|
throw error;
|
|
520
520
|
}
|
|
521
521
|
};
|
|
522
|
+
const checkIsMultiRspackOptions = (config)=>Array.isArray(config);
|
|
522
523
|
async function loadExtendedConfig(config, configPath, cwd, options) {
|
|
524
|
+
if (checkIsMultiRspackOptions(config)) {
|
|
525
|
+
const extendedConfigs = await Promise.all(config.map((item)=>loadExtendedConfig(item, configPath, cwd, options)));
|
|
526
|
+
extendedConfigs.parallelism = config.parallelism;
|
|
527
|
+
return extendedConfigs;
|
|
528
|
+
}
|
|
523
529
|
if (!("extends" in config) || !config.extends) return config;
|
|
524
530
|
const extendsList = Array.isArray(config.extends) ? config.extends : [
|
|
525
531
|
config.extends
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/cli",
|
|
3
|
-
"version": "1.4.6-canary-
|
|
3
|
+
"version": "1.4.6-canary-a6d3c2e2-20250711064219",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"execa": "^5.1.1",
|
|
49
49
|
"ts-node": "^10.9.2",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
|
-
"@rspack/core": "npm:@rspack-canary/core@1.4.6-canary-
|
|
51
|
+
"@rspack/core": "npm:@rspack-canary/core@1.4.6-canary-a6d3c2e2-20250711064219"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|