@rspack-canary/cli 1.6.2-canary-4e6be088-20251110224718 → 1.6.3-canary-74ea720c-20251112173931
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/0~361.js +1 -1
- package/dist/index.js +5 -29
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/0~361.js
CHANGED
|
@@ -14,7 +14,7 @@ exports.modules = {
|
|
|
14
14
|
var _rspackCore__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./src/utils/rspackCore.ts");
|
|
15
15
|
const DEFAULT_RUST_TRACE_LAYER = "perfetto";
|
|
16
16
|
async function applyProfile(filterValue, traceLayer = DEFAULT_RUST_TRACE_LAYER, traceOutput) {
|
|
17
|
-
const { asyncExitHook } = await
|
|
17
|
+
const { asyncExitHook } = await import("exit-hook");
|
|
18
18
|
if ("logger" !== traceLayer && "perfetto" !== traceLayer) throw new Error(`unsupported trace layer: ${traceLayer}`);
|
|
19
19
|
const timestamp = Date.now();
|
|
20
20
|
const defaultOutputDir = node_path__WEBPACK_IMPORTED_MODULE_1___default().resolve(`.rspack-profile-${timestamp}-${process.pid}`);
|
package/dist/index.js
CHANGED
|
@@ -153,30 +153,6 @@ var __webpack_modules__ = {
|
|
|
153
153
|
path: function(module) {
|
|
154
154
|
"use strict";
|
|
155
155
|
module.exports = require("path");
|
|
156
|
-
},
|
|
157
|
-
"@discoveryjs/json-ext": function(module) {
|
|
158
|
-
"use strict";
|
|
159
|
-
module.exports = import("@discoveryjs/json-ext").then(function(module) {
|
|
160
|
-
return module;
|
|
161
|
-
});
|
|
162
|
-
},
|
|
163
|
-
"@rspack/dev-server": function(module) {
|
|
164
|
-
"use strict";
|
|
165
|
-
module.exports = import("@rspack/dev-server").then(function(module) {
|
|
166
|
-
return module;
|
|
167
|
-
});
|
|
168
|
-
},
|
|
169
|
-
"exit-hook": function(module) {
|
|
170
|
-
"use strict";
|
|
171
|
-
module.exports = import("exit-hook").then(function(module) {
|
|
172
|
-
return module;
|
|
173
|
-
});
|
|
174
|
-
},
|
|
175
|
-
"webpack-bundle-analyzer": function(module) {
|
|
176
|
-
"use strict";
|
|
177
|
-
module.exports = import("webpack-bundle-analyzer").then(function(module) {
|
|
178
|
-
return module;
|
|
179
|
-
});
|
|
180
156
|
}
|
|
181
157
|
};
|
|
182
158
|
var __webpack_module_cache__ = {};
|
|
@@ -837,7 +813,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
837
813
|
const logger = cli.getLogger();
|
|
838
814
|
let createJsonStringifyStream;
|
|
839
815
|
if (options.json) {
|
|
840
|
-
const jsonExt = await
|
|
816
|
+
const jsonExt = await import("@discoveryjs/json-ext");
|
|
841
817
|
createJsonStringifyStream = jsonExt.default.stringifyStream;
|
|
842
818
|
}
|
|
843
819
|
const errorHandler = (error, stats)=>{
|
|
@@ -894,7 +870,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
894
870
|
command.action(async (dir, options)=>{
|
|
895
871
|
setDefaultNodeEnv(options, "production");
|
|
896
872
|
normalizeCommonOptions(options, "preview");
|
|
897
|
-
const { RspackDevServer } = await
|
|
873
|
+
const { RspackDevServer } = await import("@rspack/dev-server");
|
|
898
874
|
let { config } = await cli.loadConfig(options);
|
|
899
875
|
config = await getPreviewConfig(config, options, dir);
|
|
900
876
|
if (!Array.isArray(config)) config = [
|
|
@@ -950,7 +926,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
950
926
|
setDefaultNodeEnv(options, "development");
|
|
951
927
|
normalizeCommonOptions(options, "serve");
|
|
952
928
|
options.hot = normalizeHotOption(options.hot);
|
|
953
|
-
const { RspackDevServer } = await
|
|
929
|
+
const { RspackDevServer } = await import("@rspack/dev-server");
|
|
954
930
|
const compiler = await cli.createCompiler(options, "serve");
|
|
955
931
|
if (!compiler) return;
|
|
956
932
|
const compilers = cli.isMultipleCompiler(compiler) ? compiler.compilers : [
|
|
@@ -1212,7 +1188,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
1212
1188
|
this.colors = this.createColors();
|
|
1213
1189
|
this.program = program;
|
|
1214
1190
|
program.help();
|
|
1215
|
-
program.version("1.6.
|
|
1191
|
+
program.version("1.6.3-canary-74ea720c-20251112173931");
|
|
1216
1192
|
}
|
|
1217
1193
|
async createCompiler(options, rspackCommand, callback) {
|
|
1218
1194
|
let { config, pathMap } = await this.loadConfig(options);
|
|
@@ -1274,7 +1250,7 @@ ${section.body}` : section.body).join("\n\n"));
|
|
|
1274
1250
|
item.output = item.output || {};
|
|
1275
1251
|
if (options.outputPath) item.output.path = external_node_path_default().resolve(process.cwd(), options.outputPath);
|
|
1276
1252
|
if (options.analyze) {
|
|
1277
|
-
const { BundleAnalyzerPlugin } = await
|
|
1253
|
+
const { BundleAnalyzerPlugin } = await import("webpack-bundle-analyzer");
|
|
1278
1254
|
(item.plugins ??= []).push({
|
|
1279
1255
|
name: "rspack-bundle-analyzer",
|
|
1280
1256
|
apply (compiler) {
|
package/dist/index.mjs
CHANGED
|
@@ -1175,7 +1175,7 @@ class RspackCLI {
|
|
|
1175
1175
|
this.colors = this.createColors();
|
|
1176
1176
|
this.program = program;
|
|
1177
1177
|
program.help();
|
|
1178
|
-
program.version("1.6.
|
|
1178
|
+
program.version("1.6.3-canary-74ea720c-20251112173931");
|
|
1179
1179
|
}
|
|
1180
1180
|
async createCompiler(options, rspackCommand, callback) {
|
|
1181
1181
|
let { config, pathMap } = await this.loadConfig(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack-canary/cli",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3-canary-74ea720c-20251112173931",
|
|
4
4
|
"description": "CLI for rspack",
|
|
5
5
|
"homepage": "https://rspack.rs",
|
|
6
6
|
"bugs": "https://github.com/web-infra-dev/rspack/issues",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"webpack-bundle-analyzer": "4.10.2"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@rslib/core": "0.17.
|
|
37
|
+
"@rslib/core": "0.17.1",
|
|
38
38
|
"@types/webpack-bundle-analyzer": "^4.7.0",
|
|
39
39
|
"cac": "^6.7.14",
|
|
40
40
|
"concat-stream": "^2.0.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"pirates": "^4.0.7",
|
|
45
45
|
"ts-node": "^10.9.2",
|
|
46
46
|
"typescript": "^5.9.3",
|
|
47
|
-
"@rspack/core": "npm:@rspack-canary/core@1.6.
|
|
48
|
-
"@rspack/test-tools": "npm:@rspack-canary/test-tools@1.6.
|
|
47
|
+
"@rspack/core": "npm:@rspack-canary/core@1.6.3-canary-74ea720c-20251112173931",
|
|
48
|
+
"@rspack/test-tools": "npm:@rspack-canary/test-tools@1.6.3-canary-74ea720c-20251112173931"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@rspack/core": "^1.0.0-alpha || ^1.x"
|