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/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$1) {
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$1;
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$1) {
328
- super("@@global@@", "", {}, cli$1);
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$1) {
598
- if (profileSession) await stopProfiler(server$1.config.logger.info);
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$1.config.logger.info("Profiler started");
606
+ server.config.logger.info("Profiler started");
607
607
  res();
608
608
  });
609
609
  });