vite 8.0.7 → 8.0.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.
@@ -17,7 +17,7 @@ import { VERSION as rolldownVersion, rolldown } from "rolldown";
17
17
  import os from "node:os";
18
18
  import net from "node:net";
19
19
  import childProcess, { exec, execFile, execSync } from "node:child_process";
20
- import { getDefaultResultOrder, promises } from "node:dns";
20
+ import { promises } from "node:dns";
21
21
  import { isatty } from "node:tty";
22
22
  import path$1, { isAbsolute as isAbsolute$1, join as join$1, posix as posix$1, resolve as resolve$1, win32 } from "path";
23
23
  import { exactRegex, makeIdFiltersToMatchWithQuery, prefixRegex, withFilter } from "rolldown/filter";
@@ -1563,13 +1563,10 @@ function traverseBetweenDirs(longerDir, shorterDir, cb) {
1563
1563
  var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
1564
1564
  init_node();
1565
1565
  const createFilter$1 = createFilter$2;
1566
- const replaceSlashOrColonRE = /[/:]/g;
1567
- const replaceDotRE = /\./g;
1566
+ const invalidUrlPathCharRE = /[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g;
1568
1567
  const replaceNestedIdRE = /\s*>\s*/g;
1569
- const replaceHashRE = /#/g;
1570
- const replacePlusRE = /\+/g;
1571
1568
  const flattenId = (id) => {
1572
- return limitFlattenIdLength(id.replace(replaceSlashOrColonRE, "_").replace(replaceDotRE, "__").replace(replaceNestedIdRE, "___").replace(replaceHashRE, "____").replace(replacePlusRE, "_____"));
1569
+ return limitFlattenIdLength(id.replaceAll(/_+/g, "$&__").replaceAll("/", "_").replaceAll(".", "__").replace(replaceNestedIdRE, "_n_").replace(invalidUrlPathCharRE, (c) => "_0" + c.charCodeAt(0).toString(16) + "_"));
1573
1570
  };
1574
1571
  const FLATTEN_ID_HASH_LENGTH = 8;
1575
1572
  const FLATTEN_ID_MAX_FILE_LENGTH = 170;
@@ -2064,7 +2061,7 @@ function unique(arr) {
2064
2061
  * For example, when IPv6 is not supported on that machine/network.
2065
2062
  */
2066
2063
  function getLocalhostAddressIfDiffersFromDNS() {
2067
- if (getDefaultResultOrder() === "verbatim") return;
2064
+ if (promises.getDefaultResultOrder && promises.getDefaultResultOrder() === "verbatim") return;
2068
2065
  return Promise.all([promises.lookup("localhost"), promises.lookup("localhost", { verbatim: true })]).then(([nodeResult, dnsResult]) => {
2069
2066
  return nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address ? void 0 : nodeResult.address;
2070
2067
  });
@@ -9771,7 +9768,8 @@ var require_chokidar = /* @__PURE__ */ __commonJSMin(((exports) => {
9771
9768
  const ign = this.options.ignored;
9772
9769
  const ignored = ign && ign.map(normalizeIgnored(cwd));
9773
9770
  const paths = arrify(ignored).filter((path) => typeof path === STRING_TYPE && !isGlob(path)).map((path) => path + SLASH_GLOBSTAR);
9774
- this._userIgnored = anymatch(this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths), void 0, ANYMATCH_OPTS);
9771
+ const list = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths);
9772
+ this._userIgnored = anymatch(list, void 0, ANYMATCH_OPTS);
9775
9773
  }
9776
9774
  return this._userIgnored([path, stats]);
9777
9775
  }
@@ -10445,7 +10443,7 @@ var require_launch_editor_middleware = /* @__PURE__ */ __commonJSMin(((exports,
10445
10443
  };
10446
10444
  }));
10447
10445
  //#endregion
10448
- //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.2.1/node_modules/@vercel/detect-agent/dist/index.js
10446
+ //#region ../../node_modules/.pnpm/@vercel+detect-agent@1.2.3/node_modules/@vercel/detect-agent/dist/index.js
10449
10447
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10450
10448
  var __defProp = Object.defineProperty;
10451
10449
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -10489,6 +10487,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10489
10487
  const OPENCODE = "opencode";
10490
10488
  const GITHUB_COPILOT = "github-copilot";
10491
10489
  const GITHUB_COPILOT_CLI = "github-copilot-cli";
10490
+ const V0 = "v0";
10492
10491
  const KNOWN_AGENTS = {
10493
10492
  CURSOR,
10494
10493
  CURSOR_CLI,
@@ -10501,7 +10500,8 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10501
10500
  ANTIGRAVITY,
10502
10501
  AUGMENT_CLI,
10503
10502
  OPENCODE,
10504
- GITHUB_COPILOT
10503
+ GITHUB_COPILOT,
10504
+ V0
10505
10505
  };
10506
10506
  async function determineAgent() {
10507
10507
  if (process.env.AI_AGENT) {
@@ -10511,6 +10511,10 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10511
10511
  isAgent: true,
10512
10512
  agent: { name: GITHUB_COPILOT }
10513
10513
  };
10514
+ if (name === V0) return {
10515
+ isAgent: true,
10516
+ agent: { name: V0 }
10517
+ };
10514
10518
  return {
10515
10519
  isAgent: true,
10516
10520
  agent: { name }
@@ -10521,7 +10525,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
10521
10525
  isAgent: true,
10522
10526
  agent: { name: CURSOR }
10523
10527
  };
10524
- if (process.env.CURSOR_AGENT) return {
10528
+ if (process.env.CURSOR_AGENT || process.env.CURSOR_EXTENSION_HOST_ROLE === "agent-exec") return {
10525
10529
  isAgent: true,
10526
10530
  agent: { name: CURSOR_CLI }
10527
10531
  };
@@ -10652,12 +10656,21 @@ const MAX_PORT = 65535;
10652
10656
  async function httpServerStart(httpServer, serverOptions) {
10653
10657
  const { port: startPort, strictPort, host, logger } = serverOptions;
10654
10658
  for (let port = startPort; port <= MAX_PORT; port++) {
10655
- if (await isPortAvailable(port)) {
10659
+ const portAvailableOnWildcard = await isPortAvailable(port);
10660
+ if (strictPort) {
10661
+ const result = await tryBindServer(httpServer, port, host);
10662
+ if (result.success) {
10663
+ if (!portAvailableOnWildcard) logger.warn(import_picocolors.default.yellow(`Port ${port} is in use on a wildcard address, but ${host ?? "localhost"}:${port} is available. There may be another server running on a wildcard IP on port ${port}.`));
10664
+ return port;
10665
+ }
10666
+ if (result.error.code !== "EADDRINUSE") throw result.error;
10667
+ throw new Error(`Port ${port} is already in use`);
10668
+ }
10669
+ if (portAvailableOnWildcard) {
10656
10670
  const result = await tryBindServer(httpServer, port, host);
10657
10671
  if (result.success) return port;
10658
10672
  if (result.error.code !== "EADDRINUSE") throw result.error;
10659
10673
  }
10660
- if (strictPort) throw new Error(`Port ${port} is already in use`);
10661
10674
  logger.info(`Port ${port} is in use, trying another one...`);
10662
10675
  }
10663
10676
  throw new Error(`No available ports found between ${startPort} and ${MAX_PORT}`);
@@ -11211,12 +11224,11 @@ async function ssrTransformScript(code, inMap, url, originalCode) {
11211
11224
  }
11212
11225
  },
11213
11226
  onIdentifier(id, parent, parentStack) {
11214
- const grandparent = parentStack[1];
11215
11227
  const binding = idToImportMap.get(id.name);
11216
11228
  if (!binding) return;
11217
11229
  if (isStaticProperty(parent) && parent.shorthand) {
11218
11230
  if (!isNodeInPattern(parent) || isInDestructuringAssignment(parent, parentStack)) s.appendLeft(id.end, `: ${binding}`);
11219
- } else if (parent.type === "PropertyDefinition" && grandparent?.type === "ClassBody" || parent.type === "ClassDeclaration" && id === parent.superClass) {
11231
+ } else if (parent.type === "ClassDeclaration" && id === parent.superClass) {
11220
11232
  if (!declaredConst.has(id.name)) {
11221
11233
  declaredConst.add(id.name);
11222
11234
  const topNode = parentStack[parentStack.length - 2];
@@ -11348,6 +11360,7 @@ function isRefIdentifier(id, parent, parentStack) {
11348
11360
  if (parent.params.includes(id)) return false;
11349
11361
  }
11350
11362
  if (parent.type === "MethodDefinition" && !parent.computed) return false;
11363
+ if (parent.type === "PropertyDefinition" && !parent.computed) return parent.value === id;
11351
11364
  if (isStaticPropertyKey(id, parent)) return false;
11352
11365
  if (isNodeInPattern(parent) && parent.value === id) return false;
11353
11366
  if (parent.type === "ArrayPattern" && !isInDestructuringAssignment(parent, parentStack)) return false;
@@ -14065,7 +14078,8 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14065
14078
  this._state = DEFLATING;
14066
14079
  perMessageDeflate.compress(data, options.fin, (_, buf) => {
14067
14080
  if (this._socket.destroyed) {
14068
- callCallbacks(this, /* @__PURE__ */ new Error("The socket was closed while data was being compressed"), cb);
14081
+ const err = /* @__PURE__ */ new Error("The socket was closed while data was being compressed");
14082
+ callCallbacks(this, err, cb);
14069
14083
  return;
14070
14084
  }
14071
14085
  this._bufferedBytes -= options[kByteLength];
@@ -16341,7 +16355,7 @@ function baseMiddleware(rawBase, middlewareMode) {
16341
16355
  };
16342
16356
  }
16343
16357
  //#endregion
16344
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/debug.js
16358
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2/node_modules/follow-redirects/debug.js
16345
16359
  var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16346
16360
  var debug;
16347
16361
  module.exports = function() {
@@ -16355,7 +16369,7 @@ var require_debug = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16355
16369
  };
16356
16370
  }));
16357
16371
  //#endregion
16358
- //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2_ms@2.1.3_/node_modules/follow-redirects/index.js
16372
+ //#region ../../node_modules/.pnpm/follow-redirects@1.15.11_obug@1.0.2/node_modules/follow-redirects/index.js
16359
16373
  var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module) => {
16360
16374
  var url$1 = __require("url");
16361
16375
  var URL = url$1.URL;
@@ -16633,14 +16647,16 @@ var require_follow_redirects = /* @__PURE__ */ __commonJSMin(((exports, module)
16633
16647
  spreadUrlObject(redirectUrl, this._options);
16634
16648
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
16635
16649
  if (isFunction(beforeRedirect)) {
16636
- beforeRedirect(this._options, {
16650
+ var responseDetails = {
16637
16651
  headers: response.headers,
16638
16652
  statusCode
16639
- }, {
16653
+ };
16654
+ var requestDetails = {
16640
16655
  url: currentUrl,
16641
16656
  method,
16642
16657
  headers: requestHeaders
16643
- });
16658
+ };
16659
+ beforeRedirect(this._options, responseDetails, requestDetails);
16644
16660
  this._sanitizeOptions(this._options);
16645
16661
  }
16646
16662
  this._performRequest();
@@ -19005,6 +19021,7 @@ function assetPlugin(config) {
19005
19021
  this.addWatchFile(file);
19006
19022
  return {
19007
19023
  code: `export default ${JSON.stringify(await fsp.readFile(file, "utf-8"))}`,
19024
+ map: { mappings: "" },
19008
19025
  moduleType: "js"
19009
19026
  };
19010
19027
  }
@@ -19516,7 +19533,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19516
19533
  };
19517
19534
  }));
19518
19535
  //#endregion
19519
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
19536
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
19520
19537
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19521
19538
  const { createRequire: createRequire$1 } = __require("node:module");
19522
19539
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
@@ -19558,7 +19575,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19558
19575
  module.exports = req;
19559
19576
  }));
19560
19577
  //#endregion
19561
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
19578
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
19562
19579
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19563
19580
  const req = require_req();
19564
19581
  /**
@@ -19592,7 +19609,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19592
19609
  module.exports = options;
19593
19610
  }));
19594
19611
  //#endregion
19595
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
19612
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
19596
19613
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19597
19614
  const req = require_req();
19598
19615
  /**
@@ -19646,7 +19663,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19646
19663
  module.exports = plugins;
19647
19664
  }));
19648
19665
  //#endregion
19649
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.8_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
19666
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
19650
19667
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19651
19668
  const { resolve: resolve$3 } = __require("node:path");
19652
19669
  const config = require_src$1();
@@ -20191,6 +20208,16 @@ function hasWorkspacePackageJSON(root) {
20191
20208
  return false;
20192
20209
  }
20193
20210
  }
20211
+ function hasWorkspaceDenoJSON(root) {
20212
+ for (const name of ["deno.json", "deno.jsonc"]) {
20213
+ const path = join(root, name);
20214
+ if (!isFileReadable(path)) continue;
20215
+ try {
20216
+ if ((JSON.parse(fs.readFileSync(path, "utf-8")) || {}).workspace) return true;
20217
+ } catch {}
20218
+ }
20219
+ return false;
20220
+ }
20194
20221
  function hasRootFile(root) {
20195
20222
  return ROOT_FILES.some((file) => fs.existsSync(join(root, file)));
20196
20223
  }
@@ -20213,6 +20240,7 @@ function searchForPackageRoot(current, root = current) {
20213
20240
  function searchForWorkspaceRoot(current, root = searchForPackageRoot(current)) {
20214
20241
  if (hasRootFile(current)) return current;
20215
20242
  if (hasWorkspacePackageJSON(current)) return current;
20243
+ if (hasWorkspaceDenoJSON(current)) return current;
20216
20244
  const dir = dirname(current);
20217
20245
  if (!dir || dir === current) return root;
20218
20246
  return searchForWorkspaceRoot(dir, root);
@@ -20251,7 +20279,9 @@ function manifestPlugin() {
20251
20279
  outPath,
20252
20280
  isOutputOptionsForLegacyChunks: environment.config.isOutputOptionsForLegacyChunks,
20253
20281
  cssEntries() {
20254
- return Object.fromEntries(cssEntriesMap.get(envs[environment.name]).entries());
20282
+ return Object.fromEntries([...cssEntriesMap.get(envs[environment.name]).values()].map(({ name, referenceId }) => {
20283
+ return [referenceId, name];
20284
+ }));
20255
20285
  }
20256
20286
  }),
20257
20287
  {
@@ -20342,18 +20372,6 @@ const functionCallRE = /^[A-Z_][.\w-]*\(/i;
20342
20372
  const transformOnlyRE = /[?&]transform-only\b/;
20343
20373
  const nonEscapedDoubleQuoteRe = /(?<!\\)"/g;
20344
20374
  const defaultCssBundleName = "style.css";
20345
- var PreprocessLang = /* @__PURE__ */ function(PreprocessLang) {
20346
- PreprocessLang["less"] = "less";
20347
- PreprocessLang["sass"] = "sass";
20348
- PreprocessLang["scss"] = "scss";
20349
- PreprocessLang["styl"] = "styl";
20350
- PreprocessLang["stylus"] = "stylus";
20351
- return PreprocessLang;
20352
- }(PreprocessLang || {});
20353
- var PostCssDialectLang = /* @__PURE__ */ function(PostCssDialectLang) {
20354
- PostCssDialectLang["sss"] = "sugarss";
20355
- return PostCssDialectLang;
20356
- }(PostCssDialectLang || {});
20357
20375
  const isModuleCSSRequest = (request) => cssModuleRE.test(request);
20358
20376
  const isDirectCSSRequest = (request) => CSS_LANGS_RE.test(request) && directRequestRE.test(request);
20359
20377
  const isDirectRequest = (request) => directRequestRE.test(request);
@@ -20651,7 +20669,10 @@ function cssPostPlugin(config) {
20651
20669
  originalFileName,
20652
20670
  source: chunkCSS
20653
20671
  });
20654
- if (isEntry) cssEntriesMap.get(this.environment).set(chunk.name, referenceId);
20672
+ if (isEntry) cssEntriesMap.get(this.environment).set(chunk.fileName, {
20673
+ referenceId,
20674
+ name: chunk.name
20675
+ });
20655
20676
  chunk.viteMetadata.importedCss.add(this.getFileName(referenceId));
20656
20677
  } else if (this.environment.config.consumer === "client") {
20657
20678
  chunkCSS = await finalizeCss(chunkCSS, config);
@@ -20734,7 +20755,7 @@ function cssPostPlugin(config) {
20734
20755
  const emptyJsPlaceholder = bundle[fileName];
20735
20756
  if (emptyJsPlaceholder.isEntry) {
20736
20757
  const { importedAssets, importedCss } = emptyJsPlaceholder.viteMetadata;
20737
- const cssReferenceId = cssEntriesMap.get(this.environment).get(emptyJsPlaceholder.name);
20758
+ const cssReferenceId = cssEntriesMap.get(this.environment).get(emptyJsPlaceholder.preliminaryFileName).referenceId;
20738
20759
  const realCssEntryName = this.getFileName(cssReferenceId);
20739
20760
  const realCssEntry = bundle[realCssEntryName];
20740
20761
  importedCss.delete(realCssEntryName);
@@ -21063,7 +21084,7 @@ function createCachedImport(imp) {
21063
21084
  };
21064
21085
  }
21065
21086
  const importPostcssImport = createCachedImport(() => import("./postcss-import.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
21066
- const importPostcssModules = createCachedImport(() => import("./build2.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
21087
+ const importPostcssModules = createCachedImport(() => import("./build.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)));
21067
21088
  const importPostcss = createCachedImport(() => import("postcss"));
21068
21089
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
21069
21090
  let alwaysFakeWorkerWorkerControllerCache;
@@ -21348,7 +21369,7 @@ function loadSassPackage(root, skipEmbedded = false) {
21348
21369
  try {
21349
21370
  return {
21350
21371
  name: "sass",
21351
- path: loadPreprocessorPath(PreprocessLang.sass, root)
21372
+ path: loadPreprocessorPath("sass", root)
21352
21373
  };
21353
21374
  } catch {
21354
21375
  throw e1;
@@ -21356,13 +21377,13 @@ function loadSassPackage(root, skipEmbedded = false) {
21356
21377
  }
21357
21378
  return {
21358
21379
  name: "sass",
21359
- path: loadPreprocessorPath(PreprocessLang.sass, root)
21380
+ path: loadPreprocessorPath("sass", root)
21360
21381
  };
21361
21382
  }
21362
21383
  let cachedSss;
21363
21384
  async function loadSss(root) {
21364
21385
  if (!cachedSss) cachedSss = (async () => {
21365
- return cachedSss = (await import(pathToFileURL(loadPreprocessorPath(PostCssDialectLang.sss, root)).href)).default;
21386
+ return cachedSss = (await import(pathToFileURL(loadPreprocessorPath("sugarss", root)).href)).default;
21366
21387
  })();
21367
21388
  return cachedSss;
21368
21389
  }
@@ -21589,7 +21610,7 @@ const lessProcessor = (maxWorkers) => {
21589
21610
  worker?.stop();
21590
21611
  },
21591
21612
  async process(environment, source, root, options, resolvers) {
21592
- const lessPath = loadPreprocessorPath(PreprocessLang.less, root);
21613
+ const lessPath = loadPreprocessorPath("less", root);
21593
21614
  worker ??= makeLessWorker(environment, resolvers, maxWorkers);
21594
21615
  const { content, map: additionalMap } = await getSource(source, options.filename, options.additionalData, options.enableSourcemap);
21595
21616
  let result;
@@ -21658,7 +21679,7 @@ const stylProcessor = (maxWorkers) => {
21658
21679
  worker?.stop();
21659
21680
  },
21660
21681
  async process(_environment, source, root, options, _resolvers) {
21661
- const stylusPath = loadPreprocessorPath(PreprocessLang.stylus, root);
21682
+ const stylusPath = loadPreprocessorPath("stylus", root);
21662
21683
  worker ??= makeStylWorker(maxWorkers);
21663
21684
  const { content, map: additionalMap } = await getSource(source, options.filename, options.additionalData, options.enableSourcemap, "\n");
21664
21685
  const importsDeps = (options.imports ?? []).map((dep) => path.resolve(dep));
@@ -21729,11 +21750,11 @@ const createPreprocessorWorkerController = (maxWorkers) => {
21729
21750
  styl.close();
21730
21751
  };
21731
21752
  return {
21732
- [PreprocessLang.less]: less.process,
21733
- [PreprocessLang.scss]: scss.process,
21734
- [PreprocessLang.sass]: sassProcess,
21735
- [PreprocessLang.styl]: styl.process,
21736
- [PreprocessLang.stylus]: styl.process,
21753
+ ["less"]: less.process,
21754
+ ["scss"]: scss.process,
21755
+ ["sass"]: sassProcess,
21756
+ ["styl"]: styl.process,
21757
+ ["stylus"]: styl.process,
21737
21758
  close
21738
21759
  };
21739
21760
  };
@@ -21743,11 +21764,11 @@ const normalizeMaxWorkers = (maxWorker) => {
21743
21764
  return maxWorker;
21744
21765
  };
21745
21766
  const preprocessorSet = new Set([
21746
- PreprocessLang.less,
21747
- PreprocessLang.sass,
21748
- PreprocessLang.scss,
21749
- PreprocessLang.styl,
21750
- PreprocessLang.stylus
21767
+ "less",
21768
+ "sass",
21769
+ "scss",
21770
+ "styl",
21771
+ "stylus"
21751
21772
  ]);
21752
21773
  function isPreProcessor(lang) {
21753
21774
  return lang && preprocessorSet.has(lang);
@@ -25042,7 +25063,7 @@ var FullBundleDevEnvironment = class extends DevEnvironment {
25042
25063
  ...hmrOutput,
25043
25064
  code: typeof hmrOutput.code === "string" ? "[code]" : hmrOutput.code
25044
25065
  });
25045
- this.memoryFiles.set(hmrOutput.filename, { source: hmrOutput.code });
25066
+ this.memoryFiles.set(hmrOutput.filename, { source: hmrOutput.code + "\n; export {}" });
25046
25067
  if (hmrOutput.sourcemapFilename && hmrOutput.sourcemap) this.memoryFiles.set(hmrOutput.sourcemapFilename, { source: hmrOutput.sourcemap });
25047
25068
  const updates = hmrOutput.hmrBoundaries.map((boundary) => {
25048
25069
  return {
@@ -25942,33 +25963,16 @@ function memoryFilesMiddleware(server) {
25942
25963
  };
25943
25964
  }
25944
25965
  //#endregion
25945
- //#region src/node/server/middlewares/rejectNoCorsRequest.ts
25946
- /**
25947
- * A middleware that rejects no-cors mode requests that are not same-origin.
25948
- *
25949
- * We should avoid untrusted sites to load the script to avoid attacks like GHSA-4v9v-hfq4-rm2v.
25950
- * This is because:
25951
- * - the path of HMR patch files / entry point files can be predictable
25952
- * - the HMR patch files may not include ESM syntax
25953
- * (if they include ESM syntax, loading as a classic script would fail)
25954
- * - the HMR runtime in the browser has the list of all loaded modules
25955
- *
25956
- * https://github.com/webpack/webpack-dev-server/security/advisories/GHSA-4v9v-hfq4-rm2v
25957
- * https://green.sapphi.red/blog/local-server-security-best-practices#_2-using-xssi-and-modifying-the-prototype
25958
- * https://green.sapphi.red/blog/local-server-security-best-practices#properly-check-the-request-origin
25959
- */
25960
- function rejectNoCorsRequestMiddleware() {
25961
- return function viteRejectNoCorsRequestMiddleware(req, res, next) {
25962
- if (req.headers["sec-fetch-mode"] === "no-cors" && req.headers["sec-fetch-site"] !== "same-origin" && req.headers["sec-fetch-dest"] === "script") {
25963
- res.setHeader("Content-Type", "text/javascript");
25964
- res.end(`throw new Error(${JSON.stringify("[Vite] Cross-origin requests for classic scripts must be made with CORS mode enabled. Make sure to set the \"crossorigin\" attribute on your <script> tag.")});`);
25965
- return;
25966
- }
25967
- return next();
25968
- };
25969
- }
25970
- //#endregion
25971
25966
  //#region src/node/server/index.ts
25967
+ var server_exports = /* @__PURE__ */ __exportAll({
25968
+ _createServer: () => _createServer,
25969
+ createServer: () => createServer$2,
25970
+ createServerCloseFn: () => createServerCloseFn,
25971
+ resolveForwardConsoleOptions: () => resolveForwardConsoleOptions,
25972
+ resolveServerOptions: () => resolveServerOptions,
25973
+ restartServerWithUrls: () => restartServerWithUrls,
25974
+ serverConfigDefaults: () => serverConfigDefaults
25975
+ });
25972
25976
  var import_connect = /* @__PURE__ */ __toESM(require_connect(), 1);
25973
25977
  var import_lib = /* @__PURE__ */ __toESM(require_lib$1(), 1);
25974
25978
  var import_chokidar = /* @__PURE__ */ __toESM(require_chokidar(), 1);
@@ -26212,25 +26216,27 @@ async function _createServer(inlineConfig = {}, options) {
26212
26216
  if (isUnlink) for (const environment of Object.values(server.environments)) environment.moduleGraph.onFileDelete(file);
26213
26217
  await onHMRUpdate(isUnlink ? "delete" : "create", file);
26214
26218
  };
26215
- watcher.on("change", async (file) => {
26219
+ const onFileChange = async (file) => {
26216
26220
  file = normalizePath(file);
26217
26221
  reloadOnTsconfigChange(server, file);
26218
26222
  await Promise.all(Object.values(server.environments).map((environment) => environment.pluginContainer.watchChange(file, { event: "update" })));
26219
26223
  for (const environment of Object.values(server.environments)) environment.moduleGraph.onFileChange(file);
26220
26224
  await onHMRUpdate("update", file);
26225
+ };
26226
+ watcher.on("change", (file) => {
26227
+ onFileChange(file).catch((e) => server.config.logger.error(e));
26221
26228
  });
26222
26229
  watcher.on("add", (file) => {
26223
- onFileAddUnlink(file, false);
26230
+ onFileAddUnlink(file, false).catch((e) => server.config.logger.error(e));
26224
26231
  });
26225
26232
  watcher.on("unlink", (file) => {
26226
- onFileAddUnlink(file, true);
26233
+ onFileAddUnlink(file, true).catch((e) => server.config.logger.error(e));
26227
26234
  });
26228
26235
  if (!middlewareMode && httpServer) httpServer.once("listening", () => {
26229
26236
  serverConfig.port = httpServer.address().port;
26230
26237
  });
26231
26238
  if (process.env.DEBUG) middlewares.use(timeMiddleware(root));
26232
26239
  middlewares.use(rejectInvalidRequestMiddleware());
26233
- middlewares.use(rejectNoCorsRequestMiddleware());
26234
26240
  const { cors } = serverConfig;
26235
26241
  if (cors !== false) middlewares.use((0, import_lib.default)(typeof cors === "boolean" ? {} : cors));
26236
26242
  const { allowedHosts } = serverConfig;
@@ -26870,14 +26876,6 @@ function handlePrunedModules(mods, { hot }) {
26870
26876
  paths: [...mods].map((m) => m.url)
26871
26877
  });
26872
26878
  }
26873
- var LexerState = /* @__PURE__ */ function(LexerState) {
26874
- LexerState[LexerState["inCall"] = 0] = "inCall";
26875
- LexerState[LexerState["inSingleQuoteString"] = 1] = "inSingleQuoteString";
26876
- LexerState[LexerState["inDoubleQuoteString"] = 2] = "inDoubleQuoteString";
26877
- LexerState[LexerState["inTemplateString"] = 3] = "inTemplateString";
26878
- LexerState[LexerState["inArray"] = 4] = "inArray";
26879
- return LexerState;
26880
- }(LexerState || {});
26881
26879
  /**
26882
26880
  * Lex import.meta.hot.accept() for accepted deps.
26883
26881
  * Since hot.accept() can only accept string literals or array of string
@@ -26886,8 +26884,8 @@ var LexerState = /* @__PURE__ */ function(LexerState) {
26886
26884
  * @returns selfAccepts
26887
26885
  */
26888
26886
  function lexAcceptedHmrDeps(code, start, urls) {
26889
- let state = LexerState.inCall;
26890
- let prevState = LexerState.inCall;
26887
+ let state = 0;
26888
+ let prevState = 0;
26891
26889
  let currentDep = "";
26892
26890
  function addDep(index) {
26893
26891
  urls.add({
@@ -26900,42 +26898,42 @@ function lexAcceptedHmrDeps(code, start, urls) {
26900
26898
  for (let i = start; i < code.length; i++) {
26901
26899
  const char = code.charAt(i);
26902
26900
  switch (state) {
26903
- case LexerState.inCall:
26904
- case LexerState.inArray:
26901
+ case 0:
26902
+ case 4:
26905
26903
  if (char === `'`) {
26906
26904
  prevState = state;
26907
- state = LexerState.inSingleQuoteString;
26905
+ state = 1;
26908
26906
  } else if (char === `"`) {
26909
26907
  prevState = state;
26910
- state = LexerState.inDoubleQuoteString;
26908
+ state = 2;
26911
26909
  } else if (char === "`") {
26912
26910
  prevState = state;
26913
- state = LexerState.inTemplateString;
26911
+ state = 3;
26914
26912
  } else if (whitespaceRE.test(char)) continue;
26915
- else if (state === LexerState.inCall) if (char === `[`) state = LexerState.inArray;
26913
+ else if (state === 0) if (char === `[`) state = 4;
26916
26914
  else return true;
26917
26915
  else if (char === `]`) return false;
26918
26916
  else if (char === ",") continue;
26919
26917
  else error(i);
26920
26918
  break;
26921
- case LexerState.inSingleQuoteString:
26919
+ case 1:
26922
26920
  if (char === `'`) {
26923
26921
  addDep(i);
26924
- if (prevState === LexerState.inCall) return false;
26922
+ if (prevState === 0) return false;
26925
26923
  else state = prevState;
26926
26924
  } else currentDep += char;
26927
26925
  break;
26928
- case LexerState.inDoubleQuoteString:
26926
+ case 2:
26929
26927
  if (char === `"`) {
26930
26928
  addDep(i);
26931
- if (prevState === LexerState.inCall) return false;
26929
+ if (prevState === 0) return false;
26932
26930
  else state = prevState;
26933
26931
  } else currentDep += char;
26934
26932
  break;
26935
- case LexerState.inTemplateString:
26933
+ case 3:
26936
26934
  if (char === "`") {
26937
26935
  addDep(i);
26938
- if (prevState === LexerState.inCall) return false;
26936
+ if (prevState === 0) return false;
26939
26937
  else state = prevState;
26940
26938
  } else if (char === "$" && code.charAt(i + 1) === "{") error(i);
26941
26939
  else currentDep += char;
@@ -29151,7 +29149,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
29151
29149
  };
29152
29150
  }
29153
29151
  //#endregion
29154
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/helpers.js
29152
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/helpers.js
29155
29153
  function notNullish(v) {
29156
29154
  return v != null;
29157
29155
  }
@@ -29159,7 +29157,7 @@ function isPrimitive(value) {
29159
29157
  return value === null || typeof value !== "function" && typeof value !== "object";
29160
29158
  }
29161
29159
  //#endregion
29162
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29160
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29163
29161
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
29164
29162
  function normalizeWindowsPath(input = "") {
29165
29163
  if (!input) return input;
@@ -29238,7 +29236,7 @@ const isAbsolute$2 = function(p) {
29238
29236
  return _IS_ABSOLUTE_RE.test(p);
29239
29237
  };
29240
29238
  //#endregion
29241
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.2/node_modules/@vitest/utils/dist/source-map.js
29239
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/source-map.js
29242
29240
  var comma = ",".charCodeAt(0);
29243
29241
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29244
29242
  var intToChar = new Uint8Array(64);
@@ -29525,7 +29523,7 @@ function parseSingleV8Stack(raw) {
29525
29523
  function parseStacktrace(stack, options = {}) {
29526
29524
  const { ignoreStackEntries = stackIgnorePatterns } = options;
29527
29525
  let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
29528
- const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__");
29526
+ const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__" || s.method === "async __VITEST_HELPER__");
29529
29527
  if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
29530
29528
  return stacks.map((stack) => {
29531
29529
  if (options.getUrlId) stack.file = options.getUrlId(stack.file);
@@ -29711,7 +29709,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29711
29709
  const isBuild = config.command === "build";
29712
29710
  const isBundled = config.isBundled;
29713
29711
  const isWorker = config.isWorker;
29714
- const buildPlugins = isBundled ? await (await import("./build.js")).resolveBuildPlugins(config) : {
29712
+ const buildPlugins = isBundled ? await (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
29715
29713
  pre: [],
29716
29714
  post: []
29717
29715
  };
@@ -31257,6 +31255,29 @@ module.exports = ${isNodeBuiltin(idWithoutNamespace) ? "m.default" : "{ ...m }"}
31257
31255
  }
31258
31256
  //#endregion
31259
31257
  //#region src/node/optimizer/index.ts
31258
+ var optimizer_exports = /* @__PURE__ */ __exportAll({
31259
+ addManuallyIncludedOptimizeDeps: () => addManuallyIncludedOptimizeDeps,
31260
+ addOptimizedDepInfo: () => addOptimizedDepInfo,
31261
+ cleanupDepsCacheStaleDirs: () => cleanupDepsCacheStaleDirs,
31262
+ createIsOptimizedDepFile: () => createIsOptimizedDepFile,
31263
+ createIsOptimizedDepUrl: () => createIsOptimizedDepUrl,
31264
+ depsFromOptimizedDepInfo: () => depsFromOptimizedDepInfo,
31265
+ depsLogString: () => depsLogString,
31266
+ discoverProjectDependencies: () => discoverProjectDependencies,
31267
+ extractExportsData: () => extractExportsData,
31268
+ getDepsCacheDir: () => getDepsCacheDir,
31269
+ getOptimizedDepPath: () => getOptimizedDepPath,
31270
+ initDepsOptimizerMetadata: () => initDepsOptimizerMetadata,
31271
+ isDepOptimizationDisabled: () => isDepOptimizationDisabled,
31272
+ loadCachedDepOptimizationMetadata: () => loadCachedDepOptimizationMetadata,
31273
+ optimizeDeps: () => optimizeDeps,
31274
+ optimizeExplicitEnvironmentDeps: () => optimizeExplicitEnvironmentDeps,
31275
+ optimizedDepInfoFromFile: () => optimizedDepInfoFromFile,
31276
+ optimizedDepInfoFromId: () => optimizedDepInfoFromId,
31277
+ optimizedDepNeedsInterop: () => optimizedDepNeedsInterop,
31278
+ runOptimizeDeps: () => runOptimizeDeps,
31279
+ toDiscoveredDependencies: () => toDiscoveredDependencies
31280
+ });
31260
31281
  const debug$2 = createDebugger("vite:deps");
31261
31282
  const jsExtensionRE = /\.js$/i;
31262
31283
  function isDepOptimizationDisabled(optimizeDeps) {
@@ -32684,7 +32705,7 @@ function prepareOutDirPlugin() {
32684
32705
  const rendered = /* @__PURE__ */ new Set();
32685
32706
  return {
32686
32707
  name: "vite:prepare-out-dir",
32687
- options() {
32708
+ watchChange() {
32688
32709
  rendered.delete(this.environment);
32689
32710
  },
32690
32711
  renderStart: {
@@ -32724,6 +32745,30 @@ function areSeparateFolders(a, b) {
32724
32745
  }
32725
32746
  //#endregion
32726
32747
  //#region src/node/build.ts
32748
+ var build_exports = /* @__PURE__ */ __exportAll({
32749
+ BuildEnvironment: () => BuildEnvironment,
32750
+ ChunkMetadataMap: () => ChunkMetadataMap,
32751
+ build: () => build,
32752
+ buildEnvironmentOptionsDefaults: () => buildEnvironmentOptionsDefaults,
32753
+ builderOptionsDefaults: () => builderOptionsDefaults,
32754
+ clearLine: () => clearLine,
32755
+ createBuilder: () => createBuilder,
32756
+ createToImportMetaURLBasedRelativeRuntime: () => createToImportMetaURLBasedRelativeRuntime,
32757
+ enhanceRollupError: () => enhanceRollupError,
32758
+ injectEnvironmentToHooks: () => injectEnvironmentToHooks,
32759
+ onRollupLog: () => onRollupLog,
32760
+ resolveBuildEnvironmentOptions: () => resolveBuildEnvironmentOptions,
32761
+ resolveBuildOutputs: () => resolveBuildOutputs,
32762
+ resolveBuildPlugins: () => resolveBuildPlugins,
32763
+ resolveBuilderOptions: () => resolveBuilderOptions,
32764
+ resolveLibFilename: () => resolveLibFilename,
32765
+ resolveRolldownOptions: () => resolveRolldownOptions,
32766
+ resolveUserExternal: () => resolveUserExternal,
32767
+ toOutputFilePathInCss: () => toOutputFilePathInCss,
32768
+ toOutputFilePathInHtml: () => toOutputFilePathInHtml,
32769
+ toOutputFilePathInJS: () => toOutputFilePathInJS,
32770
+ toOutputFilePathWithoutRuntime: () => toOutputFilePathWithoutRuntime
32771
+ });
32727
32772
  const _buildEnvironmentOptionsDefaults = Object.freeze({
32728
32773
  target: "baseline-widely-available",
32729
32774
  polyfillModulePreload: true,
@@ -33443,7 +33488,8 @@ var RunnableDevEnvironment = class extends DevEnvironment {
33443
33488
  }
33444
33489
  get runner() {
33445
33490
  if (this._runner) return this._runner;
33446
- this._runner = (this._runnerFactory || createServerModuleRunner)(this, this._runnerOptions);
33491
+ const factory = this._runnerFactory || createServerModuleRunner;
33492
+ this._runner = factory(this, this._runnerOptions);
33447
33493
  return this._runner;
33448
33494
  }
33449
33495
  async close() {
@@ -33536,6 +33582,10 @@ function build_default({ threshold = 1024, level = -1, brotli = false, gzip = tr
33536
33582
  }
33537
33583
  //#endregion
33538
33584
  //#region src/node/preview.ts
33585
+ var preview_exports = /* @__PURE__ */ __exportAll({
33586
+ preview: () => preview,
33587
+ resolvePreviewOptions: () => resolvePreviewOptions
33588
+ });
33539
33589
  function resolvePreviewOptions(preview, server) {
33540
33590
  return {
33541
33591
  port: preview?.port ?? 4173,
@@ -33847,6 +33897,17 @@ function idToPathAndNamespace(id) {
33847
33897
  }
33848
33898
  //#endregion
33849
33899
  //#region src/node/config.ts
33900
+ var config_exports = /* @__PURE__ */ __exportAll({
33901
+ defineConfig: () => defineConfig,
33902
+ getDefaultEnvironmentOptions: () => getDefaultEnvironmentOptions,
33903
+ isResolvedConfig: () => isResolvedConfig,
33904
+ loadConfigFromFile: () => loadConfigFromFile,
33905
+ resolveBaseUrl: () => resolveBaseUrl,
33906
+ resolveConfig: () => resolveConfig,
33907
+ resolveDevEnvironmentOptions: () => resolveDevEnvironmentOptions,
33908
+ resolveDevToolsConfig: () => resolveDevToolsConfig,
33909
+ sortUserPlugins: () => sortUserPlugins
33910
+ });
33850
33911
  const debug = createDebugger("vite:config", { depth: 10 });
33851
33912
  const promisifiedRealpath = promisify(fs.realpath);
33852
33913
  const SYMBOL_RESOLVED_CONFIG = Symbol("vite:resolved-config");
@@ -34782,4 +34843,4 @@ const parseAst$1 = parseAst;
34782
34843
  const parseAstAsync$1 = parseAstAsync;
34783
34844
  const esbuildVersion = "0.25.0";
34784
34845
  //#endregion
34785
- export { depsFromOptimizedDepInfo as $, builderOptionsDefaults as A, searchForWorkspaceRoot as At, resolveBuilderOptions as B, transformWithEsbuild as Bt, resolvePreviewOptions as C, DevEnvironment as Ct, ChunkMetadataMap as D, fetchModule as Dt, BuildEnvironment as E, isFileServingAllowed as Et, injectEnvironmentToHooks as F, createServerModuleRunnerTransport as Ft, toOutputFilePathInHtml as G, mergeConfig as Gt, resolveRolldownOptions as H, createFilter$1 as Ht, onRollupLog as I, buildErrorMessage as It, addManuallyIncludedOptimizeDeps as J, rollupVersion as Jt, toOutputFilePathInJS as K, normalizePath as Kt, resolveBuildEnvironmentOptions as L, loadEnv as Lt, createBuilder as M, perEnvironmentState as Mt, createToImportMetaURLBasedRelativeRuntime as N, ssrTransform as Nt, build as O, formatPostcssSourceMap as Ot, enhanceRollupError as P, createServerModuleRunner as Pt, createIsOptimizedDepUrl as Q, resolveBuildOutputs as R, resolveEnvPrefix as Rt, preview as S, serverConfigDefaults as St, isRunnableDevEnvironment as T, isFileLoadingAllowed as Tt, resolveUserExternal as U, isCSSRequest as Ut, resolveLibFilename as V, perEnvironmentPlugin as Vt, toOutputFilePathInCss as W, mergeAlias as Wt, cleanupDepsCacheStaleDirs as X, addOptimizedDepInfo as Y, withFilter as Yt, createIsOptimizedDepFile as Z, resolveConfig as _, createServer$2 as _t, minifySync as a, initDepsOptimizerMetadata as at, sortUserPlugins as b, resolveServerOptions as bt, parseAstAsync$1 as c, optimizeDeps as ct, isFetchableDevEnvironment as d, optimizedDepInfoFromId as dt, depsLogString as et, defineConfig as f, optimizedDepNeedsInterop as ft, resolveBaseUrl as g, _createServer as gt, loadConfigFromFile as h, createServerHotChannel as ht, minify as i, getOptimizedDepPath as it, clearLine as j, createIdResolver as jt, buildEnvironmentOptionsDefaults as k, preprocessCSS as kt, parseSync as l, optimizeExplicitEnvironmentDeps as lt, isResolvedConfig as m, toDiscoveredDependencies as mt, esbuildVersion as n, extractExportsData as nt, parse as o, isDepOptimizationDisabled as ot, getDefaultEnvironmentOptions as p, runOptimizeDeps as pt, toOutputFilePathWithoutRuntime as q, rolldownVersion as qt, esmExternalRequirePlugin$1 as r, getDepsCacheDir as rt, parseAst$1 as s, loadCachedDepOptimizationMetadata as st, Visitor as t, discoverProjectDependencies as tt, createFetchableDevEnvironment as u, optimizedDepInfoFromFile as ut, resolveDevEnvironmentOptions as v, createServerCloseFn as vt, createRunnableDevEnvironment as w, send as wt, runnerImport as x, restartServerWithUrls as xt, resolveDevToolsConfig as y, resolveForwardConsoleOptions as yt, resolveBuildPlugins as z, transformWithOxc as zt };
34846
+ export { mergeConfig as $, server_exports as A, perEnvironmentState as B, build as C, optimizer_exports as D, optimizeDeps as E, fetchModule as F, loadEnv as G, createServerModuleRunner as H, formatPostcssSourceMap as I, transformWithEsbuild as J, resolveEnvPrefix as K, preprocessCSS as L, send as M, isFileLoadingAllowed as N, createServerHotChannel as O, isFileServingAllowed as P, mergeAlias as Q, searchForWorkspaceRoot as R, BuildEnvironment as S, createBuilder as T, createServerModuleRunnerTransport as U, ssrTransform as V, buildErrorMessage as W, createFilter$1 as X, perEnvironmentPlugin as Y, isCSSRequest as Z, runnerImport as _, minifySync as a, createRunnableDevEnvironment as b, parseAstAsync$1 as c, isFetchableDevEnvironment as d, normalizePath as et, config_exports as f, sortUserPlugins as g, resolveConfig as h, minify as i, DevEnvironment as j, createServer$2 as k, parseSync as l, loadConfigFromFile as m, esbuildVersion as n, rollupVersion as nt, parse as o, defineConfig as p, transformWithOxc as q, esmExternalRequirePlugin$1 as r, withFilter as rt, parseAst$1 as s, Visitor as t, rolldownVersion as tt, createFetchableDevEnvironment as u, preview as v, build_exports as w, isRunnableDevEnvironment as x, preview_exports as y, createIdResolver as z };