vite 8.0.0-beta.7 → 8.0.0-beta.9
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/client/client.mjs +44 -46
- package/dist/node/chunks/build2.js +108 -108
- package/dist/node/chunks/dist.js +520 -520
- package/dist/node/chunks/logger.js +13 -13
- package/dist/node/chunks/moduleRunnerTransport.d.ts +23 -23
- package/dist/node/chunks/node.js +3788 -3766
- package/dist/node/cli.js +7 -7
- package/dist/node/index.d.ts +1494 -1546
- package/dist/node/module-runner.d.ts +75 -75
- package/dist/node/module-runner.js +20 -23
- package/package.json +12 -12
package/dist/node/cli.js
CHANGED
|
@@ -191,11 +191,11 @@ var Option = class {
|
|
|
191
191
|
const processArgs = process.argv;
|
|
192
192
|
const platformInfo = `${process.platform}-${process.arch} node-${process.version}`;
|
|
193
193
|
var Command = class {
|
|
194
|
-
constructor(rawName, description, config = {}, cli
|
|
194
|
+
constructor(rawName, description, config = {}, cli) {
|
|
195
195
|
this.rawName = rawName;
|
|
196
196
|
this.description = description;
|
|
197
197
|
this.config = config;
|
|
198
|
-
this.cli = cli
|
|
198
|
+
this.cli = cli;
|
|
199
199
|
this.options = [];
|
|
200
200
|
this.aliasNames = [];
|
|
201
201
|
this.name = removeBrackets(rawName);
|
|
@@ -324,8 +324,8 @@ ${section.body}` : section.body;
|
|
|
324
324
|
}
|
|
325
325
|
};
|
|
326
326
|
var GlobalCommand = class extends Command {
|
|
327
|
-
constructor(cli
|
|
328
|
-
super("@@global@@", "", {}, cli
|
|
327
|
+
constructor(cli) {
|
|
328
|
+
super("@@global@@", "", {}, cli);
|
|
329
329
|
}
|
|
330
330
|
};
|
|
331
331
|
var __assign = Object.assign;
|
|
@@ -594,8 +594,8 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
594
594
|
if (profileSession) customShortcuts.push({
|
|
595
595
|
key: "p",
|
|
596
596
|
description: "start/stop the profiler",
|
|
597
|
-
async action(server
|
|
598
|
-
if (profileSession) await stopProfiler(server
|
|
597
|
+
async action(server) {
|
|
598
|
+
if (profileSession) await stopProfiler(server.config.logger.info);
|
|
599
599
|
else {
|
|
600
600
|
const inspector = await import("node:inspector").then((r) => r.default);
|
|
601
601
|
await new Promise((res) => {
|
|
@@ -603,7 +603,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
|
|
|
603
603
|
profileSession.connect();
|
|
604
604
|
profileSession.post("Profiler.enable", () => {
|
|
605
605
|
profileSession.post("Profiler.start", () => {
|
|
606
|
-
server
|
|
606
|
+
server.config.logger.info("Profiler started");
|
|
607
607
|
res();
|
|
608
608
|
});
|
|
609
609
|
});
|