vite 7.2.7 → 8.0.0-beta.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.
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
- import { $ as runOptimizeDeps, B as depsLogString, F as addOptimizedDepInfo, G as initDepsOptimizerMetadata, H as extractExportsData, I as cleanupDepsCacheStaleDirs, J as optimizeDeps, K as isDepOptimizationDisabled, L as createIsOptimizedDepFile, P as addManuallyIncludedOptimizeDeps, Q as optimizedDepNeedsInterop, R as createIsOptimizedDepUrl, U as getDepsCacheDir, V as discoverProjectDependencies, W as getOptimizedDepPath, X as optimizedDepInfoFromFile, Y as optimizeExplicitEnvironmentDeps, Z as optimizedDepInfoFromId, et as toDiscoveredDependencies, q as loadCachedDepOptimizationMetadata, z as depsFromOptimizedDepInfo } from "./config.js";
2
+ import { $ as discoverProjectDependencies, J as cleanupDepsCacheStaleDirs, K as addManuallyIncludedOptimizeDeps, Q as depsLogString, X as createIsOptimizedDepUrl, Y as createIsOptimizedDepFile, Z as depsFromOptimizedDepInfo, at as loadCachedDepOptimizationMetadata, ct as optimizedDepInfoFromFile, dt as runOptimizeDeps, et as extractExportsData, ft as toDiscoveredDependencies, it as isDepOptimizationDisabled, lt as optimizedDepInfoFromId, nt as getOptimizedDepPath, ot as optimizeDeps, q as addOptimizedDepInfo, rt as initDepsOptimizerMetadata, st as optimizeExplicitEnvironmentDeps, tt as getDepsCacheDir, ut as optimizedDepNeedsInterop } from "./node.js";
3
3
 
4
4
  export { optimizeDeps };
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
- import { d as resolvePreviewOptions, u as preview } from "./config.js";
2
+ import { b as preview, x as resolvePreviewOptions } from "./node.js";
3
3
 
4
4
  export { preview };
@@ -1,4 +1,4 @@
1
1
  import "./logger.js";
2
- import { at as _createServer, ct as resolveServerOptions, lt as restartServerWithUrls, ot as createServer, st as createServerCloseFn, ut as serverConfigDefaults } from "./config.js";
2
+ import { _t as resolveServerOptions, gt as createServerCloseFn, ht as createServer, mt as _createServer, vt as restartServerWithUrls, yt as serverConfigDefaults } from "./node.js";
3
3
 
4
4
  export { createServer };
package/dist/node/cli.js CHANGED
@@ -564,8 +564,8 @@ const convertBase = (v) => {
564
564
  if (v === 0) return "";
565
565
  return v;
566
566
  };
567
- cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with esbuild, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
568
- cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
567
+ cli.option("-c, --config <file>", `[string] use specified config file`).option("--base <path>", `[string] public base path (default: /)`, { type: [convertBase] }).option("-l, --logLevel <level>", `[string] info | warn | error | silent`).option("--clearScreen", `[boolean] allow/disable clear screen when logging`).option("--configLoader <loader>", `[string] use 'bundle' to bundle the config with Rolldown, or 'runner' (experimental) to process it on the fly, or 'native' (experimental) to load using the native runtime (default: bundle)`).option("-d, --debug [feat]", `[string | boolean] show debug logs`).option("-f, --filter <filter>", `[string] filter debug logs`).option("-m, --mode <mode>", `[string] set env mode`);
568
+ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--open [path]", `[boolean | string] open browser on startup`).option("--cors", `[boolean] enable CORS`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).option("--experimentalBundle", `[boolean] use experimental full bundle mode (this is highly experimental)`).action(async (root, options) => {
569
569
  filterDuplicateOptions(options);
570
570
  const { createServer } = await import("./chunks/server.js");
571
571
  try {
@@ -578,7 +578,8 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
578
578
  logLevel: options.logLevel,
579
579
  clearScreen: options.clearScreen,
580
580
  server: cleanGlobalCLIOptions(options),
581
- forceOptimizeDeps: options.force
581
+ forceOptimizeDeps: options.force,
582
+ experimental: { bundledDev: options.experimentalBundle }
582
583
  });
583
584
  if (!server.httpServer) throw new Error("HTTP server not available");
584
585
  await server.listen();
@@ -646,7 +647,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
646
647
  });
647
648
  cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bundle process runs automatically and does not need to be called)").option("--force", `[boolean] force the optimizer to ignore the cache and re-bundle`).action(async (root, options) => {
648
649
  filterDuplicateOptions(options);
649
- const { resolveConfig } = await import("./chunks/config2.js");
650
+ const { resolveConfig } = await import("./chunks/config.js");
650
651
  const { optimizeDeps } = await import("./chunks/optimizer.js");
651
652
  try {
652
653
  await optimizeDeps(await resolveConfig({