@rspack-canary/cli 1.4.7-canary-af293cf4-20250711072844 → 1.4.7-canary-d1d58750-20250714093351
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 +9 -4
- package/dist/index.mjs +9 -4
- package/dist/types.d.ts +1 -1
- package/dist/utils/options.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -174,10 +174,14 @@ var __webpack_exports__ = {};
|
|
|
174
174
|
describe: "env passed to config function"
|
|
175
175
|
},
|
|
176
176
|
devtool: {
|
|
177
|
-
type: "
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
177
|
+
type: "string",
|
|
178
|
+
describe: "Specify a developer tool for debugging. Defaults to `cheap-module-source-map` in development and `source-map` in production.",
|
|
179
|
+
alias: "d",
|
|
180
|
+
coerce: (arg)=>{
|
|
181
|
+
if ("true" === arg) return "source-map";
|
|
182
|
+
if ("false" === arg || "" === arg.trim()) return false;
|
|
183
|
+
return arg;
|
|
184
|
+
}
|
|
181
185
|
}
|
|
182
186
|
}).alias({
|
|
183
187
|
v: "version",
|
|
@@ -716,6 +720,7 @@ var __webpack_exports__ = {};
|
|
|
716
720
|
if (!item.mode) item.mode = isBuild ? "production" : "development";
|
|
717
721
|
if (options.mode) item.mode = options.mode;
|
|
718
722
|
if (void 0 === item.devtool) item.devtool = isBuild ? "source-map" : "cheap-module-source-map";
|
|
723
|
+
if (void 0 !== options.devtool) item.devtool = options.devtool;
|
|
719
724
|
if (isServe) {
|
|
720
725
|
const installed = (item.plugins ||= []).find((item)=>item instanceof core_.ProgressPlugin);
|
|
721
726
|
if (!installed) (item.plugins ??= []).push(new core_.ProgressPlugin());
|
package/dist/index.mjs
CHANGED
|
@@ -139,10 +139,14 @@ const commonOptionsForBuildAndServe = (yargs)=>yargs.options({
|
|
|
139
139
|
describe: "env passed to config function"
|
|
140
140
|
},
|
|
141
141
|
devtool: {
|
|
142
|
-
type: "
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
142
|
+
type: "string",
|
|
143
|
+
describe: "Specify a developer tool for debugging. Defaults to `cheap-module-source-map` in development and `source-map` in production.",
|
|
144
|
+
alias: "d",
|
|
145
|
+
coerce: (arg)=>{
|
|
146
|
+
if ("true" === arg) return "source-map";
|
|
147
|
+
if ("false" === arg || "" === arg.trim()) return false;
|
|
148
|
+
return arg;
|
|
149
|
+
}
|
|
146
150
|
}
|
|
147
151
|
}).alias({
|
|
148
152
|
v: "version",
|
|
@@ -680,6 +684,7 @@ class RspackCLI {
|
|
|
680
684
|
if (!item.mode) item.mode = isBuild ? "production" : "development";
|
|
681
685
|
if (options.mode) item.mode = options.mode;
|
|
682
686
|
if (void 0 === item.devtool) item.devtool = isBuild ? "source-map" : "cheap-module-source-map";
|
|
687
|
+
if (void 0 !== options.devtool) item.devtool = options.devtool;
|
|
683
688
|
if (isServe) {
|
|
684
689
|
const installed = (item.plugins ||= []).find((item)=>item instanceof core_.ProgressPlugin);
|
|
685
690
|
if (!installed) (item.plugins ??= []).push(new core_.ProgressPlugin());
|
package/dist/types.d.ts
CHANGED
package/dist/utils/options.d.ts
CHANGED
|
@@ -55,10 +55,10 @@ export declare const commonOptionsForBuildAndServe: (yargs: yargs.Argv) => yargs
|
|
|
55
55
|
describe: string;
|
|
56
56
|
};
|
|
57
57
|
devtool: {
|
|
58
|
-
type: "
|
|
59
|
-
default: boolean;
|
|
58
|
+
type: "string";
|
|
60
59
|
describe: string;
|
|
61
60
|
alias: string;
|
|
61
|
+
coerce: (arg: any) => string | boolean;
|
|
62
62
|
};
|
|
63
63
|
}>>;
|
|
64
64
|
export declare function normalizeEnv(argv: yargs.Arguments): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/cli",
|
|
3
|
-
"version": "1.4.7-canary-
|
|
3
|
+
"version": "1.4.7-canary-d1d58750-20250714093351",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"yargs": "17.7.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@rslib/core": "0.10.
|
|
41
|
+
"@rslib/core": "0.10.5",
|
|
42
42
|
"@types/interpret": "^1.1.3",
|
|
43
43
|
"@types/rechoir": "^0.6.4",
|
|
44
44
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
@@ -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.7-canary-
|
|
51
|
+
"@rspack/core": "npm:@rspack-canary/core@1.4.7-canary-d1d58750-20250714093351"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|