@rspack/cli 1.1.0 → 1.1.1
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 -6
- package/dist/index.mjs +6 -6
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -840,6 +840,12 @@ class RspackCLI {
|
|
|
840
840
|
}
|
|
841
841
|
async loadConfig(options) {
|
|
842
842
|
let loadedConfig = await loadRspackConfig(options);
|
|
843
|
+
if ("function" == typeof loadedConfig) {
|
|
844
|
+
var _options_argv;
|
|
845
|
+
loadedConfig = loadedConfig(null === (_options_argv = options.argv) || void 0 === _options_argv ? void 0 : _options_argv.env, options.argv);
|
|
846
|
+
// if return promise we should await its result
|
|
847
|
+
if ("function" == typeof loadedConfig.then) loadedConfig = await loadedConfig;
|
|
848
|
+
}
|
|
843
849
|
if (options.configName) {
|
|
844
850
|
const notFoundConfigNames = [];
|
|
845
851
|
loadedConfig = options.configName.map((configName)=>{
|
|
@@ -855,12 +861,6 @@ class RspackCLI {
|
|
|
855
861
|
process.exit(2);
|
|
856
862
|
}
|
|
857
863
|
}
|
|
858
|
-
if ("function" == typeof loadedConfig) {
|
|
859
|
-
var _options_argv;
|
|
860
|
-
loadedConfig = loadedConfig(null === (_options_argv = options.argv) || void 0 === _options_argv ? void 0 : _options_argv.env, options.argv);
|
|
861
|
-
// if return promise we should await its result
|
|
862
|
-
if ("function" == typeof loadedConfig.then) loadedConfig = await loadedConfig;
|
|
863
|
-
}
|
|
864
864
|
return loadedConfig;
|
|
865
865
|
}
|
|
866
866
|
isMultipleCompiler(compiler) {
|
package/dist/index.mjs
CHANGED
|
@@ -777,6 +777,12 @@ class RspackCLI {
|
|
|
777
777
|
}
|
|
778
778
|
async loadConfig(options) {
|
|
779
779
|
let loadedConfig = await loadRspackConfig(options);
|
|
780
|
+
if ("function" == typeof loadedConfig) {
|
|
781
|
+
var _options_argv;
|
|
782
|
+
loadedConfig = loadedConfig(null === (_options_argv = options.argv) || void 0 === _options_argv ? void 0 : _options_argv.env, options.argv);
|
|
783
|
+
// if return promise we should await its result
|
|
784
|
+
if ("function" == typeof loadedConfig.then) loadedConfig = await loadedConfig;
|
|
785
|
+
}
|
|
780
786
|
if (options.configName) {
|
|
781
787
|
const notFoundConfigNames = [];
|
|
782
788
|
loadedConfig = options.configName.map((configName)=>{
|
|
@@ -792,12 +798,6 @@ class RspackCLI {
|
|
|
792
798
|
process.exit(2);
|
|
793
799
|
}
|
|
794
800
|
}
|
|
795
|
-
if ("function" == typeof loadedConfig) {
|
|
796
|
-
var _options_argv;
|
|
797
|
-
loadedConfig = loadedConfig(null === (_options_argv = options.argv) || void 0 === _options_argv ? void 0 : _options_argv.env, options.argv);
|
|
798
|
-
// if return promise we should await its result
|
|
799
|
-
if ("function" == typeof loadedConfig.then) loadedConfig = await loadedConfig;
|
|
800
|
-
}
|
|
801
801
|
return loadedConfig;
|
|
802
802
|
}
|
|
803
803
|
isMultipleCompiler(compiler) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.dev",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"internal-ip": "6.2.0",
|
|
52
52
|
"ts-node": "^10.9.2",
|
|
53
53
|
"typescript": "^5.6.3",
|
|
54
|
-
"@rspack/core": "1.1.
|
|
54
|
+
"@rspack/core": "1.1.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|