vite 7.1.0-beta.1 → 7.1.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.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { preview, resolvePreviewOptions } from "./dep-B-hsmHjg.js";
2
+ import { preview, resolvePreviewOptions } from "./dep-eRCq8YxU.js";
3
3
  import "./dep-BDCsDwBr.js";
4
4
 
5
5
  export { preview };
@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-B-hsmHjg.js";
2
+ import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-eRCq8YxU.js";
3
3
  import "./dep-BDCsDwBr.js";
4
4
 
5
5
  export { createBuilder, resolveBuildPlugins };
@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-B-hsmHjg.js";
2
+ import { addManuallyIncludedOptimizeDeps, addOptimizedDepInfo, cleanupDepsCacheStaleDirs, createIsOptimizedDepFile, createIsOptimizedDepUrl, depsFromOptimizedDepInfo, depsLogString, discoverProjectDependencies, extractExportsData, getDepsCacheDir, getOptimizedDepPath, initDepsOptimizerMetadata, isDepOptimizationDisabled, loadCachedDepOptimizationMetadata, optimizeDeps, optimizeExplicitEnvironmentDeps, optimizedDepInfoFromFile, optimizedDepInfoFromId, optimizedDepNeedsInterop, runOptimizeDeps, toDiscoveredDependencies } from "./dep-eRCq8YxU.js";
3
3
  import "./dep-BDCsDwBr.js";
4
4
 
5
5
  export { optimizeDeps };
@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-B-hsmHjg.js";
2
+ import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-eRCq8YxU.js";
3
3
  import "./dep-BDCsDwBr.js";
4
4
 
5
5
  export { createServer };
@@ -2451,6 +2451,8 @@ function numberToPos(source, offset$1) {
2451
2451
  function generateCodeFrame(source, start = 0, end) {
2452
2452
  start = Math.max(posToNumber(source, start), 0);
2453
2453
  end = Math.min(end !== void 0 ? posToNumber(source, end) : start, source.length);
2454
+ const lastPosLine = end !== void 0 ? numberToPos(source, end).line : numberToPos(source, start).line + range;
2455
+ const lineNumberWidth = Math.max(3, String(lastPosLine).length + 1);
2454
2456
  const lines = source.split(splitRE);
2455
2457
  let count = 0;
2456
2458
  const res = [];
@@ -2460,16 +2462,16 @@ function generateCodeFrame(source, start = 0, end) {
2460
2462
  for (let j = i$1 - range; j <= i$1 + range || end > count; j++) {
2461
2463
  if (j < 0 || j >= lines.length) continue;
2462
2464
  const line = j + 1;
2463
- res.push(`${line}${" ".repeat(Math.max(3 - String(line).length, 0))}| ${lines[j]}`);
2465
+ res.push(`${line}${" ".repeat(lineNumberWidth - String(line).length)}| ${lines[j]}`);
2464
2466
  const lineLength = lines[j].length;
2465
2467
  if (j === i$1) {
2466
2468
  const pad$2 = Math.max(start - (count - lineLength), 0);
2467
2469
  const length = Math.max(1, end > count ? lineLength - pad$2 : end - start);
2468
- res.push(` | ` + " ".repeat(pad$2) + "^".repeat(length));
2470
+ res.push(`${" ".repeat(lineNumberWidth)}| ` + " ".repeat(pad$2) + "^".repeat(length));
2469
2471
  } else if (j > i$1) {
2470
2472
  if (end > count) {
2471
2473
  const length = Math.max(Math.min(end - count, lineLength), 1);
2472
- res.push(` | ` + "^".repeat(length));
2474
+ res.push(`${" ".repeat(lineNumberWidth)}| ` + "^".repeat(length));
2473
2475
  }
2474
2476
  count += lineLength + 1;
2475
2477
  }
@@ -7936,7 +7938,7 @@ function manifestPlugin() {
7936
7938
  return manifestChunk;
7937
7939
  }
7938
7940
  const entryCssReferenceIds = cssEntriesMap.get(this.environment);
7939
- const entryCssAssetFileNames = new Set(entryCssReferenceIds);
7941
+ const entryCssAssetFileNames = /* @__PURE__ */ new Set();
7940
7942
  for (const id of entryCssReferenceIds) try {
7941
7943
  const fileName = this.getFileName(id);
7942
7944
  entryCssAssetFileNames.add(fileName);
@@ -18382,8 +18384,8 @@ var require_shell_quote = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
18382
18384
  }) });
18383
18385
 
18384
18386
  //#endregion
18385
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/macos.js
18386
- var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
18387
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js
18388
+ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/macos.js": ((exports, module) => {
18387
18389
  module.exports = {
18388
18390
  "/Applications/Atom.app/Contents/MacOS/Atom": "atom",
18389
18391
  "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta": "/Applications/Atom Beta.app/Contents/MacOS/Atom Beta",
@@ -18415,8 +18417,8 @@ var require_macos = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
18415
18417
  }) });
18416
18418
 
18417
18419
  //#endregion
18418
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/linux.js
18419
- var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
18420
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js
18421
+ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/linux.js": ((exports, module) => {
18420
18422
  module.exports = {
18421
18423
  atom: "atom",
18422
18424
  Brackets: "brackets",
@@ -18448,8 +18450,8 @@ var require_linux = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
18448
18450
  }) });
18449
18451
 
18450
18452
  //#endregion
18451
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/windows.js
18452
- var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
18453
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js
18454
+ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/editor-info/windows.js": ((exports, module) => {
18453
18455
  module.exports = [
18454
18456
  "Brackets.exe",
18455
18457
  "Code.exe",
@@ -18480,8 +18482,8 @@ var require_windows$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/l
18480
18482
  }) });
18481
18483
 
18482
18484
  //#endregion
18483
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/guess.js
18484
- var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/guess.js": ((exports, module) => {
18485
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js
18486
+ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/guess.js": ((exports, module) => {
18485
18487
  const path$8 = require("path");
18486
18488
  const shellQuote = require_shell_quote();
18487
18489
  const childProcess$2 = require("child_process");
@@ -18543,8 +18545,8 @@ var require_guess = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launc
18543
18545
  }) });
18544
18546
 
18545
18547
  //#endregion
18546
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/get-args.js
18547
- var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/get-args.js": ((exports, module) => {
18548
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js
18549
+ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/get-args.js": ((exports, module) => {
18548
18550
  const path$7 = require("path");
18549
18551
  module.exports = function getArgumentsForPosition$1(editor, fileName, lineNumber, columnNumber = 1) {
18550
18552
  const editorBasename = path$7.basename(editor).replace(/\.(exe|cmd|bat)$/i, "");
@@ -18623,8 +18625,8 @@ var require_get_args = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/la
18623
18625
  }) });
18624
18626
 
18625
18627
  //#endregion
18626
- //#region ../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/index.js
18627
- var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.0/node_modules/launch-editor/index.js": ((exports, module) => {
18628
+ //#region ../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js
18629
+ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor@2.11.1/node_modules/launch-editor/index.js": ((exports, module) => {
18628
18630
  /**
18629
18631
  * Copyright (c) 2015-present, Facebook, Inc.
18630
18632
  *
@@ -18725,8 +18727,8 @@ var require_launch_editor = /* @__PURE__ */ __commonJS({ "../../node_modules/.pn
18725
18727
  }) });
18726
18728
 
18727
18729
  //#endregion
18728
- //#region ../../node_modules/.pnpm/launch-editor-middleware@2.11.0/node_modules/launch-editor-middleware/index.js
18729
- var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.11.0/node_modules/launch-editor-middleware/index.js": ((exports, module) => {
18730
+ //#region ../../node_modules/.pnpm/launch-editor-middleware@2.11.1/node_modules/launch-editor-middleware/index.js
18731
+ var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/launch-editor-middleware@2.11.1/node_modules/launch-editor-middleware/index.js": ((exports, module) => {
18730
18732
  const path$5 = require("path");
18731
18733
  const launch = require_launch_editor();
18732
18734
  module.exports = (specifiedEditor, srcRoot, onErrorCallback) => {
@@ -18742,7 +18744,8 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJS({ "../../node_
18742
18744
  return function launchEditorMiddleware$1(req$4, res) {
18743
18745
  let url$3;
18744
18746
  try {
18745
- url$3 = new URL(req$4.url);
18747
+ const fullUrl = req$4.url.startsWith("http") ? req$4.url : `http://localhost${req$4.url}`;
18748
+ url$3 = new URL(fullUrl);
18746
18749
  } catch (_err) {
18747
18750
  res.statusCode = 500;
18748
18751
  res.end(`launch-editor-middleware: invalid URL.`);
@@ -26476,6 +26479,7 @@ async function loadAndTransform(environment, id, url$3, options$1, timestamp, mo
26476
26479
  if (options$1.allowId && !options$1.allowId(id)) {
26477
26480
  const err$2 = /* @__PURE__ */ new Error(`Denied ID ${id}`);
26478
26481
  err$2.code = ERR_DENIED_ID;
26482
+ err$2.id = id;
26479
26483
  throw err$2;
26480
26484
  }
26481
26485
  let code = null;
@@ -27521,18 +27525,8 @@ const urlRE$1 = /[?&]url\b/;
27521
27525
  const rawRE$1 = /[?&]raw\b/;
27522
27526
  const inlineRE$2 = /[?&]inline\b/;
27523
27527
  const svgRE = /\.svg\b/;
27524
- function deniedServingAccessForTransform(id, server, res, next) {
27525
- if (rawRE$1.test(id) || urlRE$1.test(id) || inlineRE$2.test(id) || svgRE.test(id)) {
27526
- const servingAccessResult = checkLoadingAccess(server.config, id);
27527
- if (servingAccessResult === "denied") {
27528
- respondWithAccessDenied(id, server, res);
27529
- return true;
27530
- }
27531
- if (servingAccessResult === "fallback") {
27532
- next();
27533
- return true;
27534
- }
27535
- }
27528
+ function isServerAccessDeniedForTransform(config$2, id) {
27529
+ if (rawRE$1.test(id) || urlRE$1.test(id) || inlineRE$2.test(id) || svgRE.test(id)) return checkLoadingAccess(config$2, id) !== "allowed";
27536
27530
  return false;
27537
27531
  }
27538
27532
  /**
@@ -27619,7 +27613,7 @@ function transformMiddleware(server) {
27619
27613
  }
27620
27614
  }
27621
27615
  const result = await environment.transformRequest(url$3, { allowId(id) {
27622
- return id.startsWith("\0") || !deniedServingAccessForTransform(id, server, res, next);
27616
+ return id.startsWith("\0") || !isServerAccessDeniedForTransform(server.config, id);
27623
27617
  } });
27624
27618
  if (result) {
27625
27619
  const depsOptimizer = environment.depsOptimizer;
@@ -27668,7 +27662,19 @@ function transformMiddleware(server) {
27668
27662
  return;
27669
27663
  }
27670
27664
  if (e$1?.code === ERR_LOAD_URL) return next();
27671
- if (e$1?.code === ERR_DENIED_ID) return;
27665
+ if (e$1?.code === ERR_DENIED_ID) {
27666
+ const id = e$1.id;
27667
+ const servingAccessResult = checkLoadingAccess(server.config, id);
27668
+ if (servingAccessResult === "denied") {
27669
+ respondWithAccessDenied(id, server, res);
27670
+ return true;
27671
+ }
27672
+ if (servingAccessResult === "fallback") {
27673
+ next();
27674
+ return true;
27675
+ }
27676
+ throw new Error(`Unexpected access result for id ${id}`);
27677
+ }
27672
27678
  return next(e$1);
27673
27679
  }
27674
27680
  next();
@@ -31050,7 +31056,7 @@ function createFilterForTransform(idFilter, codeFilter, cwd) {
31050
31056
  async function resolvePlugins(config$2, prePlugins, normalPlugins, postPlugins) {
31051
31057
  const isBuild = config$2.command === "build";
31052
31058
  const isWorker = config$2.isWorker;
31053
- const buildPlugins = isBuild ? await (await import("./dep-ll8ogJMK.js")).resolveBuildPlugins(config$2) : {
31059
+ const buildPlugins = isBuild ? await (await import("./dep-B6kJvLFS.js")).resolveBuildPlugins(config$2) : {
31054
31060
  pre: [],
31055
31061
  post: []
31056
31062
  };
@@ -32143,7 +32149,7 @@ function cssPostPlugin(config$2) {
32143
32149
  }
32144
32150
  },
32145
32151
  async renderChunk(code, chunk, opts, meta) {
32146
- let chunkCSS = "";
32152
+ let chunkCSS;
32147
32153
  const renderedModules = new Proxy({}, { get(_target, p$1) {
32148
32154
  for (const name in meta.chunks) {
32149
32155
  const modules = meta.chunks[name].modules;
@@ -32159,7 +32165,7 @@ function cssPostPlugin(config$2) {
32159
32165
  const cssScopeTo = this.getModuleInfo(id)?.meta?.vite?.cssScopeTo;
32160
32166
  if (cssScopeTo && !isCssScopeToRendered(cssScopeTo, renderedModules)) continue;
32161
32167
  if (cssModuleRE.test(id)) isPureCssChunk = false;
32162
- chunkCSS += styles.get(id);
32168
+ chunkCSS = (chunkCSS || "") + styles.get(id);
32163
32169
  } else if (!isJsChunkEmpty) isPureCssChunk = false;
32164
32170
  const publicAssetUrlMap = publicAssetUrlCache.get(config$2);
32165
32171
  const resolveAssetUrlsInCss = (chunkCSS$1, cssAssetName) => {
@@ -32233,7 +32239,7 @@ function cssPostPlugin(config$2) {
32233
32239
  s$2.update(start, end, replacementString);
32234
32240
  }
32235
32241
  }
32236
- if (chunkCSS) {
32242
+ if (chunkCSS !== void 0) {
32237
32243
  if (isPureCssChunk && (opts.format === "es" || opts.format === "cjs")) pureCssChunks.add(chunk);
32238
32244
  if (this.environment.config.build.cssCodeSplit) {
32239
32245
  if (opts.format === "es" || opts.format === "cjs") {
@@ -32795,7 +32801,7 @@ async function rewriteCssImageSet(css, replacer) {
32795
32801
  });
32796
32802
  }
32797
32803
  function skipUrlReplacer(unquotedUrl) {
32798
- return isExternalUrl(unquotedUrl) || isDataUrl(unquotedUrl) || unquotedUrl[0] === "#" || functionCallRE.test(unquotedUrl);
32804
+ return isExternalUrl(unquotedUrl) || isDataUrl(unquotedUrl) || unquotedUrl[0] === "#" || functionCallRE.test(unquotedUrl) || unquotedUrl.startsWith("__VITE_ASSET__") || unquotedUrl.startsWith("__VITE_PUBLIC_ASSET__");
32799
32805
  }
32800
32806
  async function doUrlReplace(rawUrl, matched, replacer, funcName = "url") {
32801
32807
  let wrap$1 = "";
@@ -34214,7 +34220,7 @@ async function resolveBuildPlugins(config$2) {
34214
34220
  return {
34215
34221
  pre: [
34216
34222
  completeSystemWrapPlugin(),
34217
- prepareOutDirPlugin(),
34223
+ ...!config$2.isWorker ? [prepareOutDirPlugin()] : [],
34218
34224
  perEnvironmentPlugin("commonjs", (environment) => {
34219
34225
  const { commonjsOptions } = environment.config.build;
34220
34226
  const usePluginCommonjs = !Array.isArray(commonjsOptions.include) || commonjsOptions.include.length !== 0;
package/dist/node/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
2
  import { __toESM } from "./chunks/dep-Drtntmtt.js";
3
- import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-B-hsmHjg.js";
3
+ import { createLogger, require_picocolors, resolveConfig } from "./chunks/dep-eRCq8YxU.js";
4
4
  import { VERSION } from "./chunks/dep-BDCsDwBr.js";
5
5
  import fs from "node:fs";
6
6
  import path from "node:path";
@@ -568,7 +568,7 @@ const convertBase = (v) => {
568
568
  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`);
569
569
  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) => {
570
570
  filterDuplicateOptions(options);
571
- const { createServer } = await import("./chunks/dep-bSJfBHhb.js");
571
+ const { createServer } = await import("./chunks/dep-DzJShgQJ.js");
572
572
  try {
573
573
  const server = await createServer({
574
574
  root,
@@ -624,7 +624,7 @@ cli.command("[root]", "start dev server").alias("serve").alias("dev").option("--
624
624
  });
625
625
  cli.command("build [root]", "build for production").option("--target <target>", `[string] transpile target (default: 'baseline-widely-available')`).option("--outDir <dir>", `[string] output directory (default: dist)`).option("--assetsDir <dir>", `[string] directory under outDir to place assets in (default: assets)`).option("--assetsInlineLimit <number>", `[number] static asset base64 inline threshold in bytes (default: 4096)`).option("--ssr [entry]", `[string] build specified entry for server-side rendering`).option("--sourcemap [output]", `[boolean | "inline" | "hidden"] output source maps for build (default: false)`).option("--minify [minifier]", "[boolean | \"terser\" | \"esbuild\"] enable/disable minification, or specify minifier to use (default: esbuild)").option("--manifest [name]", `[boolean | string] emit build manifest json`).option("--ssrManifest [name]", `[boolean | string] emit ssr manifest json`).option("--emptyOutDir", `[boolean] force empty outDir when it's outside of root`).option("-w, --watch", `[boolean] rebuilds when modules have changed on disk`).option("--app", `[boolean] same as \`builder: {}\``).action(async (root, options) => {
626
626
  filterDuplicateOptions(options);
627
- const { createBuilder } = await import("./chunks/dep-ll8ogJMK.js");
627
+ const { createBuilder } = await import("./chunks/dep-B6kJvLFS.js");
628
628
  const buildOptions = cleanGlobalCLIOptions(cleanBuilderCLIOptions(options));
629
629
  try {
630
630
  const inlineConfig = {
@@ -649,7 +649,7 @@ cli.command("build [root]", "build for production").option("--target <target>",
649
649
  });
650
650
  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) => {
651
651
  filterDuplicateOptions(options);
652
- const { optimizeDeps } = await import("./chunks/dep-D3dx-MVo.js");
652
+ const { optimizeDeps } = await import("./chunks/dep-Cw8UoqDf.js");
653
653
  try {
654
654
  const config = await resolveConfig({
655
655
  root,
@@ -667,7 +667,7 @@ cli.command("optimize [root]", "pre-bundle dependencies (deprecated, the pre-bun
667
667
  });
668
668
  cli.command("preview [root]", "locally preview production build").option("--host [host]", `[string] specify hostname`, { type: [convertHost] }).option("--port <port>", `[number] specify port`).option("--strictPort", `[boolean] exit if specified port is already in use`).option("--open [path]", `[boolean | string] open browser on startup`).option("--outDir <dir>", `[string] output directory (default: dist)`).action(async (root, options) => {
669
669
  filterDuplicateOptions(options);
670
- const { preview } = await import("./chunks/dep-L2kJu-gJ.js");
670
+ const { preview } = await import("./chunks/dep-1xsIeazw.js");
671
671
  try {
672
672
  const server = await preview({
673
673
  root,
@@ -1,5 +1,5 @@
1
1
  import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
2
- import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-B-hsmHjg.js";
2
+ import { BuildEnvironment, DevEnvironment, build, buildErrorMessage, createBuilder, createFilter, createIdResolver, createLogger, createRunnableDevEnvironment, createServer, createServerHotChannel, createServerModuleRunner, createServerModuleRunnerTransport, defineConfig, fetchModule, formatPostcssSourceMap, isCSSRequest, isFileLoadingAllowed, isFileServingAllowed, isRunnableDevEnvironment, loadConfigFromFile, loadEnv, mergeAlias, mergeConfig, normalizePath, optimizeDeps, perEnvironmentPlugin, perEnvironmentState, preprocessCSS, preview, resolveConfig, resolveEnvPrefix, rollupVersion, runnerImport, searchForWorkspaceRoot, send, sortUserPlugins, ssrTransform, transformWithEsbuild } from "./chunks/dep-eRCq8YxU.js";
3
3
  import { DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, VERSION, defaultAllowedOrigins } from "./chunks/dep-BDCsDwBr.js";
4
4
  import { parseAst, parseAstAsync } from "rollup/parseAst";
5
5
  import { version as esbuildVersion } from "esbuild";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "7.1.0-beta.1",
3
+ "version": "7.1.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -109,7 +109,7 @@
109
109
  "etag": "^1.8.1",
110
110
  "host-validation-middleware": "^0.1.1",
111
111
  "http-proxy-3": "^1.20.10",
112
- "launch-editor-middleware": "^2.11.0",
112
+ "launch-editor-middleware": "^2.11.1",
113
113
  "lightningcss": "^1.30.1",
114
114
  "magic-string": "^0.30.17",
115
115
  "mlly": "^1.7.4",