vite 6.0.6 → 6.0.8

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.

@@ -7,7 +7,7 @@ import { promisify as promisify$4, format as format$2, inspect, stripVTControlCh
7
7
  import { performance } from 'node:perf_hooks';
8
8
  import require$$0$6, { createRequire as createRequire$1, builtinModules } from 'node:module';
9
9
  import esbuild, { transform as transform$1, formatMessages, build as build$b } from 'esbuild';
10
- import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, SPECIAL_QUERY_RE, DEP_VERSION_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS } from '../constants.js';
10
+ import { CLIENT_ENTRY, OPTIMIZABLE_ENTRY_RE, wildcardHosts, loopbackHosts, FS_PREFIX, CLIENT_PUBLIC_PATH, ENV_PUBLIC_PATH, DEFAULT_ASSETS_INLINE_LIMIT, ENV_ENTRY, DEP_VERSION_RE, SPECIAL_QUERY_RE, DEV_PROD_CONDITION, JS_TYPES_RE, KNOWN_ASSET_TYPES, CSS_LANGS_RE, METADATA_FILENAME, ESBUILD_MODULES_TARGET, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, VITE_PACKAGE_DIR, DEFAULT_DEV_PORT, CLIENT_DIR, VERSION, ROLLUP_HOOKS, DEFAULT_PREVIEW_PORT, DEFAULT_ASSETS_RE, DEFAULT_CONFIG_FILES, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_SERVER_MAIN_FIELDS, DEFAULT_CLIENT_CONDITIONS, DEFAULT_SERVER_CONDITIONS } from '../constants.js';
11
11
  import require$$0$2, { posix, win32, isAbsolute, resolve as resolve$3, relative as relative$1, basename as basename$1, extname, dirname as dirname$1, join, sep } from 'path';
12
12
  import require$$0$3, { existsSync, readFileSync, statSync, readdirSync } from 'fs';
13
13
  import childProcess$2, { exec, execFile, execSync } from 'node:child_process';
@@ -1640,7 +1640,7 @@ const parse$h = (input, options) => {
1640
1640
  }
1641
1641
 
1642
1642
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
1643
- const end = rest[1] !== void 0 ? '|$' : '';
1643
+ const end = rest[1] !== undefined ? '|$' : '';
1644
1644
 
1645
1645
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
1646
1646
  prior.output = `(?:${prior.output}`;
@@ -2764,7 +2764,7 @@ const dataToEsm = function dataToEsm(data, options = {}) {
2764
2764
  }
2765
2765
  let maxUnderbarPrefixLength = 0;
2766
2766
  for (const key of Object.keys(data)) {
2767
- const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === void 0 ? void 0 : _a[0].length) !== null && _b !== void 0 ? _b : 0;
2767
+ const underbarPrefixLength = (_b = (_a = /^(_+)/.exec(key)) === null || _a === undefined ? undefined : _a[0].length) !== null && _b !== undefined ? _b : 0;
2768
2768
  if (underbarPrefixLength > maxUnderbarPrefixLength) {
2769
2769
  maxUnderbarPrefixLength = underbarPrefixLength;
2770
2770
  }
@@ -2842,7 +2842,7 @@ var walker = {};
2842
2842
  var utils$8 = {};
2843
2843
 
2844
2844
  Object.defineProperty(utils$8, "__esModule", { value: true });
2845
- utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath = void 0;
2845
+ utils$8.normalizePath = utils$8.convertSlashes = utils$8.cleanPath = undefined;
2846
2846
  const path_1$4 = require$$0$2;
2847
2847
  function cleanPath(path) {
2848
2848
  let normalized = (0, path_1$4.normalize)(path);
@@ -2876,7 +2876,7 @@ utils$8.normalizePath = normalizePath$5;
2876
2876
  var joinPath$2 = {};
2877
2877
 
2878
2878
  Object.defineProperty(joinPath$2, "__esModule", { value: true });
2879
- joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath = void 0;
2879
+ joinPath$2.build = joinPath$2.joinDirectoryPath = joinPath$2.joinPathWithBasePath = undefined;
2880
2880
  const path_1$3 = require$$0$2;
2881
2881
  const utils_1$1 = utils$8;
2882
2882
  function joinPathWithBasePath(filename, directoryPath) {
@@ -2914,7 +2914,7 @@ joinPath$2.build = build$a;
2914
2914
  var pushDirectory$2 = {};
2915
2915
 
2916
2916
  Object.defineProperty(pushDirectory$2, "__esModule", { value: true });
2917
- pushDirectory$2.build = void 0;
2917
+ pushDirectory$2.build = undefined;
2918
2918
  function pushDirectoryWithRelativePath(root) {
2919
2919
  return function (directoryPath, paths) {
2920
2920
  paths.push(directoryPath.substring(root.length) || ".");
@@ -2953,7 +2953,7 @@ pushDirectory$2.build = build$9;
2953
2953
  var pushFile$2 = {};
2954
2954
 
2955
2955
  Object.defineProperty(pushFile$2, "__esModule", { value: true });
2956
- pushFile$2.build = void 0;
2956
+ pushFile$2.build = undefined;
2957
2957
  const pushFileFilterAndCount = (filename, _paths, counts, filters) => {
2958
2958
  if (filters.every((filter) => filter(filename, false)))
2959
2959
  counts.files++;
@@ -2988,7 +2988,7 @@ pushFile$2.build = build$8;
2988
2988
  var getArray$2 = {};
2989
2989
 
2990
2990
  Object.defineProperty(getArray$2, "__esModule", { value: true });
2991
- getArray$2.build = void 0;
2991
+ getArray$2.build = undefined;
2992
2992
  const getArray$1 = (paths) => {
2993
2993
  return paths;
2994
2994
  };
@@ -3003,7 +3003,7 @@ getArray$2.build = build$7;
3003
3003
  var groupFiles$2 = {};
3004
3004
 
3005
3005
  Object.defineProperty(groupFiles$2, "__esModule", { value: true });
3006
- groupFiles$2.build = void 0;
3006
+ groupFiles$2.build = undefined;
3007
3007
  const groupFiles$1 = (groups, directory, files) => {
3008
3008
  groups.push({ directory, files, dir: directory });
3009
3009
  };
@@ -3015,11 +3015,11 @@ groupFiles$2.build = build$6;
3015
3015
 
3016
3016
  var resolveSymlink$1 = {};
3017
3017
 
3018
- var __importDefault$1 = (resolveSymlink$1 && resolveSymlink$1.__importDefault) || function (mod) {
3018
+ var __importDefault$1 = (resolveSymlink$1.__importDefault) || function (mod) {
3019
3019
  return (mod && mod.__esModule) ? mod : { "default": mod };
3020
3020
  };
3021
3021
  Object.defineProperty(resolveSymlink$1, "__esModule", { value: true });
3022
- resolveSymlink$1.build = void 0;
3022
+ resolveSymlink$1.build = undefined;
3023
3023
  const fs_1$1 = __importDefault$1(require$$0$3);
3024
3024
  const path_1$2 = require$$0$2;
3025
3025
  const resolveSymlinksAsync = function (path, state, callback) {
@@ -3085,7 +3085,7 @@ function isRecursiveUsingRealPaths(resolved, state) {
3085
3085
  var invokeCallback$1 = {};
3086
3086
 
3087
3087
  Object.defineProperty(invokeCallback$1, "__esModule", { value: true });
3088
- invokeCallback$1.build = void 0;
3088
+ invokeCallback$1.build = undefined;
3089
3089
  const onlyCountsSync = (state) => {
3090
3090
  return state.counts;
3091
3091
  };
@@ -3143,11 +3143,11 @@ invokeCallback$1.build = build$4;
3143
3143
 
3144
3144
  var walkDirectory$1 = {};
3145
3145
 
3146
- var __importDefault = (walkDirectory$1 && walkDirectory$1.__importDefault) || function (mod) {
3146
+ var __importDefault = (walkDirectory$1.__importDefault) || function (mod) {
3147
3147
  return (mod && mod.__esModule) ? mod : { "default": mod };
3148
3148
  };
3149
3149
  Object.defineProperty(walkDirectory$1, "__esModule", { value: true });
3150
- walkDirectory$1.build = void 0;
3150
+ walkDirectory$1.build = undefined;
3151
3151
  const fs_1 = __importDefault(require$$0$3);
3152
3152
  const readdirOpts = { withFileTypes: true };
3153
3153
  const walkAsync = (state, crawlPath, directoryPath, currentDepth, callback) => {
@@ -3186,7 +3186,7 @@ walkDirectory$1.build = build$3;
3186
3186
  var queue = {};
3187
3187
 
3188
3188
  Object.defineProperty(queue, "__esModule", { value: true });
3189
- queue.Queue = void 0;
3189
+ queue.Queue = undefined;
3190
3190
  /**
3191
3191
  * This is a custom stateless queue to track concurrent async fs calls.
3192
3192
  * It increments a counter whenever a call is queued and decrements it
@@ -3211,7 +3211,7 @@ queue.Queue = Queue;
3211
3211
  var counter = {};
3212
3212
 
3213
3213
  Object.defineProperty(counter, "__esModule", { value: true });
3214
- counter.Counter = void 0;
3214
+ counter.Counter = undefined;
3215
3215
  class Counter {
3216
3216
  _files = 0;
3217
3217
  _directories = 0;
@@ -3237,7 +3237,7 @@ class Counter {
3237
3237
  }
3238
3238
  counter.Counter = Counter;
3239
3239
 
3240
- var __createBinding = (walker && walker.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3240
+ var __createBinding = (walker.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3241
3241
  if (k2 === undefined) k2 = k;
3242
3242
  var desc = Object.getOwnPropertyDescriptor(m, k);
3243
3243
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -3248,12 +3248,12 @@ var __createBinding = (walker && walker.__createBinding) || (Object.create ? (fu
3248
3248
  if (k2 === undefined) k2 = k;
3249
3249
  o[k2] = m[k];
3250
3250
  }));
3251
- var __setModuleDefault = (walker && walker.__setModuleDefault) || (Object.create ? (function(o, v) {
3251
+ var __setModuleDefault = (walker.__setModuleDefault) || (Object.create ? (function(o, v) {
3252
3252
  Object.defineProperty(o, "default", { enumerable: true, value: v });
3253
3253
  }) : function(o, v) {
3254
3254
  o["default"] = v;
3255
3255
  });
3256
- var __importStar = (walker && walker.__importStar) || function (mod) {
3256
+ var __importStar = (walker.__importStar) || function (mod) {
3257
3257
  if (mod && mod.__esModule) return mod;
3258
3258
  var result = {};
3259
3259
  if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
@@ -3261,7 +3261,7 @@ var __importStar = (walker && walker.__importStar) || function (mod) {
3261
3261
  return result;
3262
3262
  };
3263
3263
  Object.defineProperty(walker, "__esModule", { value: true });
3264
- walker.Walker = void 0;
3264
+ walker.Walker = undefined;
3265
3265
  const path_1$1 = require$$0$2;
3266
3266
  const utils_1 = utils$8;
3267
3267
  const joinPath = __importStar(joinPath$2);
@@ -3362,7 +3362,7 @@ class Walker {
3362
3362
  walker.Walker = Walker;
3363
3363
 
3364
3364
  Object.defineProperty(async, "__esModule", { value: true });
3365
- async.callback = async.promise = void 0;
3365
+ async.callback = async.promise = undefined;
3366
3366
  const walker_1$1 = walker;
3367
3367
  function promise(root, options) {
3368
3368
  return new Promise((resolve, reject) => {
@@ -3383,7 +3383,7 @@ async.callback = callback;
3383
3383
  var sync$2 = {};
3384
3384
 
3385
3385
  Object.defineProperty(sync$2, "__esModule", { value: true });
3386
- sync$2.sync = void 0;
3386
+ sync$2.sync = undefined;
3387
3387
  const walker_1 = walker;
3388
3388
  function sync$1(root, options) {
3389
3389
  const walker = new walker_1.Walker(root, options);
@@ -3392,7 +3392,7 @@ function sync$1(root, options) {
3392
3392
  sync$2.sync = sync$1;
3393
3393
 
3394
3394
  Object.defineProperty(apiBuilder, "__esModule", { value: true });
3395
- apiBuilder.APIBuilder = void 0;
3395
+ apiBuilder.APIBuilder = undefined;
3396
3396
  const async_1 = async;
3397
3397
  const sync_1 = sync$2;
3398
3398
  class APIBuilder {
@@ -3415,7 +3415,7 @@ class APIBuilder {
3415
3415
  apiBuilder.APIBuilder = APIBuilder;
3416
3416
 
3417
3417
  Object.defineProperty(builder, "__esModule", { value: true });
3418
- builder.Builder = void 0;
3418
+ builder.Builder = undefined;
3419
3419
  const path_1 = require$$0$2;
3420
3420
  const api_builder_1 = apiBuilder;
3421
3421
  var pm = null;
@@ -3555,7 +3555,7 @@ var types$1 = {};
3555
3555
  Object.defineProperty(types$1, "__esModule", { value: true });
3556
3556
 
3557
3557
  (function (exports) {
3558
- var __createBinding = (dist && dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3558
+ var __createBinding = (dist.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3559
3559
  if (k2 === undefined) k2 = k;
3560
3560
  var desc = Object.getOwnPropertyDescriptor(m, k);
3561
3561
  if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
@@ -3566,11 +3566,11 @@ Object.defineProperty(types$1, "__esModule", { value: true });
3566
3566
  if (k2 === undefined) k2 = k;
3567
3567
  o[k2] = m[k];
3568
3568
  }));
3569
- var __exportStar = (dist && dist.__exportStar) || function(m, exports) {
3569
+ var __exportStar = (dist.__exportStar) || function(m, exports) {
3570
3570
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3571
3571
  };
3572
3572
  Object.defineProperty(exports, "__esModule", { value: true });
3573
- exports.fdir = void 0;
3573
+ exports.fdir = undefined;
3574
3574
  const builder_1 = builder;
3575
3575
  Object.defineProperty(exports, "fdir", { enumerable: true, get: function () { return builder_1.Builder; } });
3576
3576
  __exportStar(types$1, exports);
@@ -3599,7 +3599,7 @@ function decodeInteger(reader, relative) {
3599
3599
  const shouldNegate = value & 1;
3600
3600
  value >>>= 1;
3601
3601
  if (shouldNegate) {
3602
- value = -0x80000000 | -value;
3602
+ value = -2147483648 | -value;
3603
3603
  }
3604
3604
  return relative + value;
3605
3605
  }
@@ -7814,7 +7814,7 @@ function cast$2(map) {
7814
7814
  function encodedMappings(map) {
7815
7815
  var _a;
7816
7816
  var _b;
7817
- return ((_a = (_b = cast$2(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = encode$1(cast$2(map)._decoded)));
7817
+ return ((_a = (_b = cast$2(map))._encoded) !== null && _a !== undefined ? _a : (_b._encoded = encode$1(cast$2(map)._decoded)));
7818
7818
  }
7819
7819
  /**
7820
7820
  * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
@@ -8308,7 +8308,7 @@ class SourceMap {
8308
8308
  * VLQ encoded) mappings.
8309
8309
  */
8310
8310
  function remapping(input, loader, options) {
8311
- const opts = { excludeContent: !!options, decodedMappings: false };
8311
+ const opts = { excludeContent: false, decodedMappings: false };
8312
8312
  const tree = buildSourceMapTree(input, loader);
8313
8313
  return new SourceMap(traceMappings(tree), opts);
8314
8314
  }
@@ -9879,7 +9879,7 @@ function numberToPos(source, offset) {
9879
9879
  function generateCodeFrame(source, start = 0, end) {
9880
9880
  start = Math.max(posToNumber(source, start), 0);
9881
9881
  end = Math.min(
9882
- end !== void 0 ? posToNumber(source, end) : start,
9882
+ end !== undefined ? posToNumber(source, end) : start,
9883
9883
  source.length
9884
9884
  );
9885
9885
  const lines = source.split(splitRE);
@@ -10135,7 +10135,7 @@ function combineSourcemaps(filename, sourcemapList) {
10135
10135
  });
10136
10136
  let map;
10137
10137
  let mapIndex = 1;
10138
- const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === void 0;
10138
+ const useArrayInterface = sourcemapList.slice(0, -1).find((m) => m.sources.length !== 1) === undefined;
10139
10139
  if (useArrayInterface) {
10140
10140
  map = remapping(sourcemapList, () => null);
10141
10141
  } else {
@@ -10166,21 +10166,21 @@ async function getLocalhostAddressIfDiffersFromDNS() {
10166
10166
  promises.lookup("localhost", { verbatim: true })
10167
10167
  ]);
10168
10168
  const isSame = nodeResult.family === dnsResult.family && nodeResult.address === dnsResult.address;
10169
- return isSame ? void 0 : nodeResult.address;
10169
+ return isSame ? undefined : nodeResult.address;
10170
10170
  }
10171
10171
  function diffDnsOrderChange(oldUrls, newUrls) {
10172
10172
  return !(oldUrls === newUrls || oldUrls && newUrls && arrayEqual(oldUrls.local, newUrls.local) && arrayEqual(oldUrls.network, newUrls.network));
10173
10173
  }
10174
10174
  async function resolveHostname(optionsHost) {
10175
10175
  let host;
10176
- if (optionsHost === void 0 || optionsHost === false) {
10176
+ if (optionsHost === undefined || optionsHost === false) {
10177
10177
  host = "localhost";
10178
10178
  } else if (optionsHost === true) {
10179
- host = void 0;
10179
+ host = undefined;
10180
10180
  } else {
10181
10181
  host = optionsHost;
10182
10182
  }
10183
- let name = host === void 0 || wildcardHosts.has(host) ? "localhost" : host;
10183
+ let name = host === undefined || wildcardHosts.has(host) ? "localhost" : host;
10184
10184
  if (host === "localhost") {
10185
10185
  const localhostAddr = await getLocalhostAddressIfDiffersFromDNS();
10186
10186
  if (localhostAddr) {
@@ -10201,7 +10201,7 @@ async function resolveServerUrls(server, options, config) {
10201
10201
  const protocol = options.https ? "https" : "http";
10202
10202
  const port = address.port;
10203
10203
  const base = config.rawBase === "./" || config.rawBase === "" ? "/" : config.rawBase;
10204
- if (hostname.host !== void 0 && !wildcardHosts.has(hostname.host)) {
10204
+ if (hostname.host !== undefined && !wildcardHosts.has(hostname.host)) {
10205
10205
  let hostnameName = hostname.name;
10206
10206
  if (hostnameName.includes(":")) {
10207
10207
  hostnameName = `[${hostnameName}]`;
@@ -10295,9 +10295,9 @@ function mergeWithDefaultsRecursively(defaults, values) {
10295
10295
  const merged = defaults;
10296
10296
  for (const key in values) {
10297
10297
  const value = values[key];
10298
- if (value === void 0) continue;
10298
+ if (value === undefined) continue;
10299
10299
  const existing = merged[key];
10300
- if (existing === void 0) {
10300
+ if (existing === undefined) {
10301
10301
  merged[key] = value;
10302
10302
  continue;
10303
10303
  }
@@ -10515,7 +10515,7 @@ function createSerialPromiseQueue() {
10515
10515
  previousTask = depTasks;
10516
10516
  const [, result] = await depTasks;
10517
10517
  if (previousTask === depTasks) {
10518
- previousTask = void 0;
10518
+ previousTask = undefined;
10519
10519
  }
10520
10520
  return result;
10521
10521
  }
@@ -10536,9 +10536,12 @@ function displayTime(time) {
10536
10536
  if (time < 60) {
10537
10537
  return `${time.toFixed(2)}s`;
10538
10538
  }
10539
- const mins = parseInt((time / 60).toString());
10540
- const seconds = time % 60;
10541
- return `${mins}m${seconds < 1 ? "" : ` ${seconds.toFixed(0)}s`}`;
10539
+ const mins = Math.floor(time / 60);
10540
+ const seconds = Math.round(time % 60);
10541
+ if (seconds === 60) {
10542
+ return `${mins + 1}m`;
10543
+ }
10544
+ return `${mins}m${seconds < 1 ? "" : ` ${seconds}s`}`;
10542
10545
  }
10543
10546
  function encodeURIPath(uri) {
10544
10547
  if (uri.startsWith("data:")) return uri;
@@ -10552,16 +10555,26 @@ function partialEncodeURIPath(uri) {
10552
10555
  const postfix = filePath !== uri ? uri.slice(filePath.length) : "";
10553
10556
  return filePath.replaceAll("%", "%25") + postfix;
10554
10557
  }
10558
+ const sigtermCallbacks = /* @__PURE__ */ new Set();
10559
+ const parentSigtermCallback = async (signal, exitCode) => {
10560
+ await Promise.all([...sigtermCallbacks].map((cb) => cb(signal, exitCode)));
10561
+ };
10555
10562
  const setupSIGTERMListener = (callback) => {
10556
- process.once("SIGTERM", callback);
10557
- if (process.env.CI !== "true") {
10558
- process.stdin.on("end", callback);
10563
+ if (sigtermCallbacks.size === 0) {
10564
+ process.once("SIGTERM", parentSigtermCallback);
10565
+ if (process.env.CI !== "true") {
10566
+ process.stdin.on("end", parentSigtermCallback);
10567
+ }
10559
10568
  }
10569
+ sigtermCallbacks.add(callback);
10560
10570
  };
10561
10571
  const teardownSIGTERMListener = (callback) => {
10562
- process.off("SIGTERM", callback);
10563
- if (process.env.CI !== "true") {
10564
- process.stdin.off("end", callback);
10572
+ sigtermCallbacks.delete(callback);
10573
+ if (sigtermCallbacks.size === 0) {
10574
+ process.off("SIGTERM", parentSigtermCallback);
10575
+ if (process.env.CI !== "true") {
10576
+ process.stdin.off("end", parentSigtermCallback);
10577
+ }
10565
10578
  }
10566
10579
  };
10567
10580
 
@@ -10583,7 +10596,7 @@ function clearScreen() {
10583
10596
  }
10584
10597
  let timeFormatter;
10585
10598
  function getTimeFormatter() {
10586
- timeFormatter ??= new Intl.DateTimeFormat(void 0, {
10599
+ timeFormatter ??= new Intl.DateTimeFormat(undefined, {
10587
10600
  hour: "numeric",
10588
10601
  minute: "numeric",
10589
10602
  second: "numeric"
@@ -10687,7 +10700,7 @@ function printServerUrls(urls, optionsHost, info) {
10687
10700
  for (const url of urls.network) {
10688
10701
  info(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: ${colorUrl(url)}`);
10689
10702
  }
10690
- if (urls.network.length === 0 && optionsHost === void 0) {
10703
+ if (urls.network.length === 0 && optionsHost === undefined) {
10691
10704
  info(
10692
10705
  colors$1.dim(` ${colors$1.green("\u279C")} ${colors$1.bold("Network")}: use `) + colors$1.bold("--host") + colors$1.dim(" to expose")
10693
10706
  );
@@ -12151,14 +12164,14 @@ async function transformWithEsbuild(code, filename, options, inMap, config, watc
12151
12164
  ...compilerOptionsForFile,
12152
12165
  ...tsconfigRaw?.compilerOptions
12153
12166
  };
12154
- if (compilerOptions.useDefineForClassFields === void 0 && compilerOptions.target === void 0) {
12167
+ if (compilerOptions.useDefineForClassFields === undefined && compilerOptions.target === undefined) {
12155
12168
  compilerOptions.useDefineForClassFields = false;
12156
12169
  }
12157
12170
  if (options) {
12158
- if (options.jsx) compilerOptions.jsx = void 0;
12159
- if (options.jsxFactory) compilerOptions.jsxFactory = void 0;
12160
- if (options.jsxFragment) compilerOptions.jsxFragmentFactory = void 0;
12161
- if (options.jsxImportSource) compilerOptions.jsxImportSource = void 0;
12171
+ if (options.jsx) compilerOptions.jsx = undefined;
12172
+ if (options.jsxFactory) compilerOptions.jsxFactory = undefined;
12173
+ if (options.jsxFragment) compilerOptions.jsxFragmentFactory = undefined;
12174
+ if (options.jsxImportSource) compilerOptions.jsxImportSource = undefined;
12162
12175
  }
12163
12176
  tsconfigRaw = {
12164
12177
  ...tsconfigRaw,
@@ -12243,7 +12256,7 @@ function esbuildPlugin(config) {
12243
12256
  code,
12244
12257
  id,
12245
12258
  transformOptions,
12246
- void 0,
12259
+ undefined,
12247
12260
  config,
12248
12261
  server?.watcher
12249
12262
  );
@@ -12274,15 +12287,19 @@ const rollupToEsbuildFormatMap = {
12274
12287
  // that `{ treeShaking: true }` removes a top-level no-side-effect variable
12275
12288
  // like: `var Lib = 1`, which becomes `` after esbuild transforming,
12276
12289
  // but thankfully rollup does not do this optimization now
12277
- iife: void 0
12290
+ iife: undefined
12278
12291
  };
12279
- const buildEsbuildPlugin = (config) => {
12292
+ const buildEsbuildPlugin = () => {
12280
12293
  return {
12281
12294
  name: "vite:esbuild-transpile",
12295
+ applyToEnvironment(environment) {
12296
+ return environment.config.esbuild !== false;
12297
+ },
12282
12298
  async renderChunk(code, chunk, opts) {
12283
12299
  if (opts.__vite_skip_esbuild__) {
12284
12300
  return null;
12285
12301
  }
12302
+ const config = this.environment.config;
12286
12303
  const options = resolveEsbuildTranspileOptions(config, opts.format);
12287
12304
  if (!options) {
12288
12305
  return null;
@@ -12291,7 +12308,7 @@ const buildEsbuildPlugin = (config) => {
12291
12308
  code,
12292
12309
  chunk.fileName,
12293
12310
  options,
12294
- void 0,
12311
+ undefined,
12295
12312
  config
12296
12313
  );
12297
12314
  if (config.build.lib) {
@@ -12318,7 +12335,7 @@ function resolveEsbuildTranspileOptions(config, format) {
12318
12335
  charset: "utf8",
12319
12336
  ...esbuildOptions,
12320
12337
  loader: "js",
12321
- target: target || void 0,
12338
+ target: target || undefined,
12322
12339
  format: rollupToEsbuildFormatMap[format],
12323
12340
  supported: {
12324
12341
  ...defaultEsbuildSupported,
@@ -12768,7 +12785,7 @@ var WorkerWithFallback = class {
12768
12785
  /** @internal */
12769
12786
  _shouldUseFake;
12770
12787
  constructor(fn, options) {
12771
- this._disableReal = options.max !== void 0 && options.max <= 0;
12788
+ this._disableReal = options.max !== undefined && options.max <= 0;
12772
12789
  this._realWorker = new Worker(fn, options);
12773
12790
  this._fakeWorker = new FakeWorker(fn, options);
12774
12791
  this._shouldUseFake = options.shouldUseFake;
@@ -13349,13 +13366,13 @@ function checkPublicFile(url, config) {
13349
13366
  const fileName = cleanUrl(url);
13350
13367
  const publicFiles = getPublicFiles(config);
13351
13368
  if (publicFiles) {
13352
- return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) : void 0;
13369
+ return publicFiles.has(fileName) ? normalizePath$3(path$d.join(publicDir, fileName)) : undefined;
13353
13370
  }
13354
13371
  const publicFile = normalizePath$3(path$d.join(publicDir, fileName));
13355
13372
  if (!publicFile.startsWith(withTrailingSlash(publicDir))) {
13356
13373
  return;
13357
13374
  }
13358
- return fs__default.existsSync(publicFile) ? publicFile : void 0;
13375
+ return fs__default.existsSync(publicFile) ? publicFile : undefined;
13359
13376
  }
13360
13377
 
13361
13378
  const assetUrlRE = /__VITE_ASSET__([\w$]+)__(?:\$_(.*?)__)?/g;
@@ -13463,7 +13480,7 @@ function assetPlugin(config) {
13463
13480
  // Force rollup to keep this module from being shared between other entry points if it's an entrypoint.
13464
13481
  // If the resulting chunk is empty, it will be removed in generateBundle.
13465
13482
  moduleSideEffects: config.command === "build" && this.getModuleInfo(id)?.isEntry ? "no-treeshake" : false,
13466
- meta: config.command === "build" ? { "vite:asset": true } : void 0
13483
+ meta: config.command === "build" ? { "vite:asset": true } : undefined
13467
13484
  };
13468
13485
  },
13469
13486
  renderChunk(code, chunk, opts) {
@@ -13513,7 +13530,7 @@ async function fileToDevUrl(environment, id, skipBase = false) {
13513
13530
  if (svgExtRE.test(id)) {
13514
13531
  const file = publicFile || cleanUrl(id);
13515
13532
  const content = await fsp.readFile(file);
13516
- if (shouldInline(environment, file, id, content, void 0, void 0)) {
13533
+ if (shouldInline(environment, file, id, content, undefined, undefined)) {
13517
13534
  return assetToDataURL(environment, file, content);
13518
13535
  }
13519
13536
  }
@@ -13616,7 +13633,7 @@ function shouldInline(environment, file, id, content, buildPluginContext, forceI
13616
13633
  if (environment.config.build.lib) return true;
13617
13634
  if (buildPluginContext.getModuleInfo(id)?.isEntry) return false;
13618
13635
  }
13619
- if (forceInline !== void 0) return forceInline;
13636
+ if (forceInline !== undefined) return forceInline;
13620
13637
  if (file.endsWith(".html")) return false;
13621
13638
  if (file.endsWith(".svg") && id.includes("#")) return false;
13622
13639
  let limit;
@@ -13684,7 +13701,7 @@ function manifestPlugin() {
13684
13701
  function getInternalImports(imports) {
13685
13702
  const filteredImports = [];
13686
13703
  for (const file of imports) {
13687
- if (bundle[file] === void 0) {
13704
+ if (bundle[file] === undefined) {
13688
13705
  continue;
13689
13706
  }
13690
13707
  filteredImports.push(getChunkName(bundle[file]));
@@ -13769,7 +13786,7 @@ function manifestPlugin() {
13769
13786
  this.emitFile({
13770
13787
  fileName: typeof buildOptions.manifest === "string" ? buildOptions.manifest : ".vite/manifest.json",
13771
13788
  type: "asset",
13772
- source: JSON.stringify(sortObjectKeys(manifest), void 0, 2)
13789
+ source: JSON.stringify(sortObjectKeys(manifest), undefined, 2)
13773
13790
  });
13774
13791
  }
13775
13792
  }
@@ -13780,7 +13797,7 @@ function getChunkOriginalFileName(chunk, root, format) {
13780
13797
  let name = normalizePath$3(path$d.relative(root, chunk.facadeModuleId));
13781
13798
  if (format === "system" && !chunk.name.includes("-legacy")) {
13782
13799
  const ext = path$d.extname(name);
13783
- const endPos = ext.length !== 0 ? -ext.length : void 0;
13800
+ const endPos = ext.length !== 0 ? -ext.length : undefined;
13784
13801
  name = `${name.slice(0, endPos)}-legacy${ext}`;
13785
13802
  }
13786
13803
  return name.replace(/\0/g, "");
@@ -13828,8 +13845,8 @@ function dataURIPlugin() {
13828
13845
  };
13829
13846
  }
13830
13847
 
13831
- /* es-module-lexer 1.5.4 */
13832
- var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const D=[],o=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let o;C.ip()&&(o=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),D.push({n:o,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?void 0:E.slice(B,g),D=K?K[0]:"";o.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===D||"'"===D?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [D,o,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const init=WebAssembly.compile((E="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQ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BAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(E,"base64"):Uint8Array.from(atob(E),(A=>A.charCodeAt(0))))).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));var E;
13848
+ /* es-module-lexer 1.6.0 */
13849
+ var ImportType;!function(A){A[A.Static=1]="Static",A[A.Dynamic=2]="Dynamic",A[A.ImportMeta=3]="ImportMeta",A[A.StaticSourcePhase=4]="StaticSourcePhase",A[A.DynamicSourcePhase=5]="DynamicSourcePhase";}(ImportType||(ImportType={}));const A=1===new Uint8Array(new Uint16Array([1]).buffer)[0];function parse$e(E,g="@"){if(!C)return init.then((()=>parse$e(E)));const I=E.length+1,w=(C.__heap_base.value||C.__heap_base)+4*I-C.memory.buffer.byteLength;w>0&&C.memory.grow(Math.ceil(w/65536));const K=C.sa(I-1);if((A?B:Q)(E,new Uint16Array(C.memory.buffer,K,I)),!C.parse())throw Object.assign(new Error(`Parse error ${g}:${E.slice(0,C.e()).split("\n").length}:${C.e()-E.lastIndexOf("\n",C.e()-1)}`),{idx:C.e()});const o=[],D=[];for(;C.ri();){const A=C.is(),Q=C.ie(),B=C.it(),g=C.ai(),I=C.id(),w=C.ss(),K=C.se();let D;C.ip()&&(D=k(E.slice(-1===I?A-1:A,-1===I?Q+1:Q))),o.push({n:D,t:B,s:A,e:Q,ss:w,se:K,d:I,a:g});}for(;C.re();){const A=C.es(),Q=C.ee(),B=C.els(),g=C.ele(),I=E.slice(A,Q),w=I[0],K=B<0?undefined:E.slice(B,g),o=K?K[0]:"";D.push({s:A,e:Q,ls:B,le:g,n:'"'===w||"'"===w?k(I):I,ln:'"'===o||"'"===o?k(K):K});}function k(A){try{return (0, eval)(A)}catch(A){}}return [o,D,!!C.f(),!!C.ms()]}function Q(A,Q){const B=A.length;let C=0;for(;C<B;){const B=A.charCodeAt(C);Q[C++]=(255&B)<<8|B>>>8;}}function B(A,Q){const B=A.length;let C=0;for(;C<B;)Q[C]=A.charCodeAt(C++);}let C;const E=()=>{return A="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKm0EwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAb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eQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=","undefined"!=typeof Buffer?Buffer.from(A,"base64"):Uint8Array.from(atob(A),(A=>A.charCodeAt(0)));var A;};const init=WebAssembly.compile(E()).then(WebAssembly.instantiate).then((({exports:A})=>{C=A;}));
13833
13850
 
13834
13851
  var convertSourceMap$1 = {};
13835
13852
 
@@ -14140,7 +14157,7 @@ function getCodeWithSourcemap(type, code, map) {
14140
14157
  }
14141
14158
  function applySourcemapIgnoreList(map, sourcemapPath, sourcemapIgnoreList, logger) {
14142
14159
  let { x_google_ignoreList } = map;
14143
- if (x_google_ignoreList === void 0) {
14160
+ if (x_google_ignoreList === undefined) {
14144
14161
  x_google_ignoreList = [];
14145
14162
  }
14146
14163
  for (let sourcesIndex = 0; sourcesIndex < map.sources.length; ++sourcesIndex) {
@@ -15063,7 +15080,7 @@ function normalizePattern(pattern, expandDirectories, cwd, properties, isIgnore)
15063
15080
  result = posix.normalize(result);
15064
15081
  }
15065
15082
  const parentDirectoryMatch = /^(\/?\.\.)+/.exec(result);
15066
- if (parentDirectoryMatch == null ? void 0 : parentDirectoryMatch[0]) {
15083
+ if (parentDirectoryMatch == null ? undefined : parentDirectoryMatch[0]) {
15067
15084
  const potentialRoot = posix.join(cwd, parentDirectoryMatch[0]);
15068
15085
  if (properties.root.length > potentialRoot.length) {
15069
15086
  properties.root = potentialRoot;
@@ -15178,7 +15195,7 @@ function crawl(options, cwd, sync) {
15178
15195
  return sync ? api.sync().map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")) : api.withPromise().then((paths) => paths.map((p) => getRelativePath(p, cwd, properties.root) + (!p || p.endsWith("/") ? "/" : "")));
15179
15196
  }
15180
15197
  async function glob(patternsOrOptions, options) {
15181
- if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
15198
+ if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
15182
15199
  throw new Error("Cannot pass patterns as both an argument and an option");
15183
15200
  }
15184
15201
  const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
@@ -15186,7 +15203,7 @@ async function glob(patternsOrOptions, options) {
15186
15203
  return crawl(opts, cwd, false);
15187
15204
  }
15188
15205
  function globSync(patternsOrOptions, options) {
15189
- if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
15206
+ if (patternsOrOptions && (options == null ? undefined : options.patterns)) {
15190
15207
  throw new Error("Cannot pass patterns as both an argument and an option");
15191
15208
  }
15192
15209
  const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
@@ -15254,7 +15271,7 @@ function alias$1(options = {}) {
15254
15271
  return {
15255
15272
  name: 'alias',
15256
15273
  async buildStart(inputOptions) {
15257
- await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === void 0 ? void 0 : _a.call(this, inputOptions)); }));
15274
+ await Promise.all([...(Array.isArray(options.entries) ? options.entries : []), options].map(({ customResolver }) => { var _a; return customResolver && ((_a = getHookFunction(customResolver.buildStart)) === null || _a === undefined ? undefined : _a.call(this, inputOptions)); }));
15258
15275
  },
15259
15276
  resolveId(importee, importer, resolveOptions) {
15260
15277
  // First match is supposed to be the correct one
@@ -15280,7 +15297,7 @@ function alias$1(options = {}) {
15280
15297
  };
15281
15298
  }
15282
15299
 
15283
- function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(void 0===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:o||!r?"./"===f.slice(0,2)?f:"./"+f:f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
15300
+ function e(e,n,r){throw new Error(r?`No known conditions for "${n}" specifier in "${e}" package`:`Missing "${n}" specifier in "${e}" package`)}function n(n,i,o,f){let s,u,l=r(n,o),c=function(e){let n=new Set(["default",...e.conditions||[]]);return e.unsafe||n.add(e.require?"require":"import"),e.unsafe||n.add(e.browser?"browser":"node"),n}(f||{}),a=i[l];if(undefined===a){let e,n,r,t;for(t in i)n&&t.length<n.length||("/"===t[t.length-1]&&l.startsWith(t)?(u=l.substring(t.length),n=t):t.length>1&&(r=t.indexOf("*",1),~r&&(e=RegExp("^"+t.substring(0,r)+"(.*)"+t.substring(1+r)+"$").exec(l),e&&e[1]&&(u=e[1],n=t))));a=i[n];}return a||e(n,l),s=t(a,c),s||e(n,l,1),u&&function(e,n){let r,t=0,i=e.length,o=/[*]/g,f=/[/]$/;for(;t<i;t++)e[t]=o.test(r=e[t])?r.replace(o,n):f.test(r)?r+n:r;}(s,u),s}function r(e,n,r){if(e===n||"."===n)return ".";let t=e+"/",i=t.length,o=n.slice(0,i)===t,f=o?n.slice(i):n;return "#"===f[0]?f:"./"===f.slice(0,2)?f:"./"+f}function t(e,n,r){if(e){if("string"==typeof e)return r&&r.add(e),[e];let i,o;if(Array.isArray(e)){for(o=r||new Set,i=0;i<e.length;i++)t(e[i],n,o);if(!r&&o.size)return [...o]}else for(i in e)if(n.has(i))return t(e[i],n,r)}}function o(e,r,t){let i,o=e.exports;if(o){if("string"==typeof o)o={".":o};else for(i in o){"."!==i[0]&&(o={".":o});break}return n(e.name,o,r||".",t)}}function f(e,r,t){if(e.imports)return n(e.name,e.imports,r,t)}
15284
15301
 
15285
15302
  const HASH_RE = /#/g;
15286
15303
  const AMPERSAND_RE = /&/g;
@@ -15313,7 +15330,7 @@ function encodeQueryItem(key, value) {
15313
15330
  return `${encodeQueryKey(key)}=${encodeQueryValue(value)}`;
15314
15331
  }
15315
15332
  function stringifyQuery(query) {
15316
- return Object.keys(query).filter((k) => query[k] !== void 0).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
15333
+ return Object.keys(query).filter((k) => query[k] !== undefined).map((k) => encodeQueryItem(k, query[k])).filter(Boolean).join("&");
15317
15334
  }
15318
15335
 
15319
15336
  new Set(builtinModules);
@@ -15323,7 +15340,7 @@ function clearImports(imports) {
15323
15340
  function getImportNames(cleanedImports) {
15324
15341
  const topLevelImports = cleanedImports.replace(/{([^}]*)}/, "");
15325
15342
  const namespacedImport = topLevelImports.match(/\* as \s*(\S*)/)?.[1];
15326
- const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || void 0;
15343
+ const defaultImport = topLevelImports.split(",").find((index) => !/[*{}]/.test(index))?.trim() || undefined;
15327
15344
  return {
15328
15345
  namespacedImport,
15329
15346
  defaultImport
@@ -15878,7 +15895,7 @@ function createIsConfiguredAsExternal(environment) {
15878
15895
  const { config } = environment;
15879
15896
  const { root, resolve } = config;
15880
15897
  const { external, noExternal } = resolve;
15881
- const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(void 0, noExternal, { resolve: false });
15898
+ const noExternalFilter = typeof noExternal !== "boolean" && !(Array.isArray(noExternal) && noExternal.length === 0) && createFilter(undefined, noExternal, { resolve: false });
15882
15899
  const targetConditions = resolve.externalConditions;
15883
15900
  const resolveOptions = {
15884
15901
  ...resolve,
@@ -15896,9 +15913,9 @@ function createIsConfiguredAsExternal(environment) {
15896
15913
  id,
15897
15914
  // Skip passing importer in build to avoid externalizing non-hoisted dependencies
15898
15915
  // unresolvable from root (which would be unresolvable from output bundles also)
15899
- config.command === "build" ? void 0 : importer,
15916
+ config.command === "build" ? undefined : importer,
15900
15917
  resolveOptions,
15901
- void 0,
15918
+ undefined,
15902
15919
  false
15903
15920
  );
15904
15921
  if (!resolved) {
@@ -15983,7 +16000,7 @@ function resolvePlugin(resolveOptions) {
15983
16000
  id.startsWith("/virtual:")) {
15984
16001
  return;
15985
16002
  }
15986
- const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer : void 0;
16003
+ const depsOptimizer = resolveOptions.optimizeDeps && this.environment.mode === "dev" ? this.environment.depsOptimizer : undefined;
15987
16004
  if (id.startsWith(browserExternalId)) {
15988
16005
  return id;
15989
16006
  }
@@ -16479,7 +16496,7 @@ function resolveExportsOrImports(pkg, key, options, type) {
16479
16496
  }
16480
16497
  const fn = type === "imports" ? f : o;
16481
16498
  const result = fn(pkg, key, { conditions, unsafe: true });
16482
- return result ? result[0] : void 0;
16499
+ return result ? result[0] : undefined;
16483
16500
  }
16484
16501
  function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }, options) {
16485
16502
  const cache = getResolvedCache(id, options);
@@ -16492,13 +16509,13 @@ function resolveDeepImport(id, { setResolvedCache, getResolvedCache, dir, data }
16492
16509
  if (isObject$2(exportsField) && !Array.isArray(exportsField)) {
16493
16510
  const { file, postfix } = splitFileAndPostfix(relativeId);
16494
16511
  const exportsId = resolveExportsOrImports(data, file, options, "exports");
16495
- if (exportsId !== void 0) {
16512
+ if (exportsId !== undefined) {
16496
16513
  relativeId = exportsId + postfix;
16497
16514
  } else {
16498
- relativeId = void 0;
16515
+ relativeId = undefined;
16499
16516
  }
16500
16517
  } else {
16501
- relativeId = void 0;
16518
+ relativeId = undefined;
16502
16519
  }
16503
16520
  if (!relativeId) {
16504
16521
  throw new Error(
@@ -16542,8 +16559,8 @@ function tryResolveBrowserMapping(id, importer, options, isFilePath, externalize
16542
16559
  browserMappedPath,
16543
16560
  importer,
16544
16561
  options,
16545
- void 0,
16546
- void 0
16562
+ undefined,
16563
+ undefined
16547
16564
  )?.id : tryFsResolve(path$d.join(pkg.dir, browserMappedPath), options)) {
16548
16565
  debug$e?.(`[browser mapped] ${colors$1.cyan(id)} -> ${colors$1.dim(res)}`);
16549
16566
  let result = { id: res };
@@ -16786,7 +16803,7 @@ function esbuildDepPlugin(environment, qualified, external) {
16786
16803
  let entry;
16787
16804
  if (!importer) {
16788
16805
  if (entry = resolveEntry(id)) return entry;
16789
- const aliased = await _resolve(environment, id, void 0, true);
16806
+ const aliased = await _resolve(environment, id, undefined, true);
16790
16807
  if (aliased && (entry = resolveEntry(aliased))) {
16791
16808
  return entry;
16792
16809
  }
@@ -17070,7 +17087,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17070
17087
  yield ({
17071
17088
  type: "RegularExpressionLiteral",
17072
17089
  value: match[0],
17073
- closed: match[1] !== void 0 && match[1] !== "\\"
17090
+ closed: match[1] !== undefined && match[1] !== "\\"
17074
17091
  });
17075
17092
  continue;
17076
17093
  }
@@ -17208,7 +17225,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17208
17225
  yield ({
17209
17226
  type: "StringLiteral",
17210
17227
  value: match[0],
17211
- closed: match[2] !== void 0
17228
+ closed: match[2] !== undefined
17212
17229
  });
17213
17230
  continue;
17214
17231
  }
@@ -17309,7 +17326,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17309
17326
  yield ({
17310
17327
  type: "JSXString",
17311
17328
  value: match[0],
17312
- closed: match[2] !== void 0
17329
+ closed: match[2] !== undefined
17313
17330
  });
17314
17331
  continue;
17315
17332
  }
@@ -17384,7 +17401,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17384
17401
  yield ({
17385
17402
  type: "MultiLineComment",
17386
17403
  value: match[0],
17387
- closed: match[1] !== void 0
17404
+ closed: match[1] !== undefined
17388
17405
  });
17389
17406
  continue;
17390
17407
  }
@@ -17407,7 +17424,7 @@ var jsTokens_1 = function*(input, {jsx = false} = {}) {
17407
17424
  value: firstCodePoint
17408
17425
  });
17409
17426
  }
17410
- return void 0;
17427
+ return undefined;
17411
17428
  };
17412
17429
 
17413
17430
  var jsTokens = /*@__PURE__*/getDefaultExportFromCjs(jsTokens_1);
@@ -17537,7 +17554,7 @@ function importGlobPlugin(config) {
17537
17554
  if (mod) modules.push(mod);
17538
17555
  }
17539
17556
  }
17540
- return modules.length > 0 ? [...oldModules, ...modules] : void 0;
17557
+ return modules.length > 0 ? [...oldModules, ...modules] : undefined;
17541
17558
  }
17542
17559
  };
17543
17560
  }
@@ -17748,10 +17765,10 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
17748
17765
  id = slash$1(id);
17749
17766
  root = slash$1(root);
17750
17767
  const isVirtual = isVirtualModule(id);
17751
- const dir = isVirtual ? void 0 : dirname(id);
17768
+ const dir = isVirtual ? undefined : dirname(id);
17752
17769
  const matches = await parseImportGlob(
17753
17770
  code,
17754
- isVirtual ? void 0 : id,
17771
+ isVirtual ? undefined : id,
17755
17772
  root,
17756
17773
  resolveId,
17757
17774
  logger
@@ -17816,7 +17833,7 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
17816
17833
  importQuery = `${importQuery}&lang.${fileExtension}`;
17817
17834
  }
17818
17835
  importPath = `${importPath}${importQuery}`;
17819
- const importKey = options.import && options.import !== "*" ? options.import : void 0;
17836
+ const importKey = options.import && options.import !== "*" ? options.import : undefined;
17820
17837
  if (options.eager) {
17821
17838
  const variableName = `${importPrefix}${index}_${i}`;
17822
17839
  const expression = importKey ? `{ ${importKey} as ${variableName} }` : `* as ${variableName}`;
@@ -18079,10 +18096,10 @@ async function computeEntries(environment) {
18079
18096
  entries = await globEntries(explicitEntryPatterns, environment);
18080
18097
  } else if (buildInput) {
18081
18098
  const resolvePath = async (p) => {
18082
- const id = (await environment.pluginContainer.resolveId(p, void 0, {
18099
+ const id = (await environment.pluginContainer.resolveId(p, undefined, {
18083
18100
  scan: true
18084
18101
  }))?.id;
18085
- if (id === void 0) {
18102
+ if (id === undefined) {
18086
18103
  throw new Error(
18087
18104
  `failed to resolve rollupOptions.input value: ${JSON.stringify(p)}.`
18088
18105
  );
@@ -18361,7 +18378,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
18361
18378
  }
18362
18379
  return externalUnlessEntry({ path: id });
18363
18380
  } else if (isScannable(resolved, optimizeDepsOptions.extensions)) {
18364
- const namespace = htmlTypesRE.test(resolved) ? "html" : void 0;
18381
+ const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
18365
18382
  return {
18366
18383
  path: path$d.resolve(resolved),
18367
18384
  namespace
@@ -18403,7 +18420,7 @@ function esbuildScanPlugin(environment, depImports, missing, entries) {
18403
18420
  if (shouldExternalizeDep(resolved, id) || !isScannable(resolved, optimizeDepsOptions.extensions)) {
18404
18421
  return externalUnlessEntry({ path: id });
18405
18422
  }
18406
- const namespace = htmlTypesRE.test(resolved) ? "html" : void 0;
18423
+ const namespace = htmlTypesRE.test(resolved) ? "html" : undefined;
18407
18424
  return {
18408
18425
  path: path$d.resolve(cleanUrl(resolved)),
18409
18426
  namespace
@@ -18478,7 +18495,7 @@ function createOptimizeDepsIncludeResolver(environment) {
18478
18495
  return async (id) => {
18479
18496
  const lastArrowIndex = id.lastIndexOf(">");
18480
18497
  if (lastArrowIndex === -1) {
18481
- return await resolve(environment, id, void 0);
18498
+ return await resolve(environment, id, undefined);
18482
18499
  }
18483
18500
  const nestedRoot = id.substring(0, lastArrowIndex).trim();
18484
18501
  const nestedPath = id.substring(lastArrowIndex + 1).trim();
@@ -18950,7 +18967,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
18950
18967
  idToExports[id] = exportsData;
18951
18968
  })
18952
18969
  );
18953
- if (optimizerContext.cancelled) return { context: void 0, idToExports };
18970
+ if (optimizerContext.cancelled) return { context: undefined, idToExports };
18954
18971
  const define = {
18955
18972
  "process.env.NODE_ENV": environment.config.keepProcessEnv ? (
18956
18973
  // define process.env.NODE_ENV even for keepProcessEnv === true
@@ -18978,7 +18995,7 @@ async function prepareEsbuildOptimizerRun(environment, depsInfo, processingCache
18978
18995
  // See https://github.com/evanw/esbuild/issues/1921#issuecomment-1152991694
18979
18996
  banner: platform === "node" ? {
18980
18997
  js: `import { createRequire } from 'module';const require = createRequire(import.meta.url);`
18981
- } : void 0,
18998
+ } : undefined,
18982
18999
  target: ESBUILD_MODULES_TARGET,
18983
19000
  external,
18984
19001
  logLevel: "error",
@@ -19205,7 +19222,7 @@ async function extractExportsData(environment, filePath) {
19205
19222
  entryContent,
19206
19223
  filePath,
19207
19224
  { loader },
19208
- void 0,
19225
+ undefined,
19209
19226
  environment.config
19210
19227
  );
19211
19228
  parseResult = parse$e(transformed.code);
@@ -19241,34 +19258,45 @@ function isSingleDefaultExport(exports) {
19241
19258
  const lockfileFormats = [
19242
19259
  {
19243
19260
  path: "node_modules/.package-lock.json",
19244
- checkPatches: true,
19261
+ checkPatchesDir: "patches",
19245
19262
  manager: "npm"
19246
19263
  },
19247
19264
  {
19248
19265
  // Yarn non-PnP
19249
19266
  path: "node_modules/.yarn-state.yml",
19250
- checkPatches: false,
19267
+ checkPatchesDir: false,
19251
19268
  manager: "yarn"
19252
19269
  },
19253
19270
  {
19254
- // Yarn PnP
19255
- path: ".yarn/install-state",
19256
- checkPatches: false,
19271
+ // Yarn v3+ PnP
19272
+ path: ".pnp.cjs",
19273
+ checkPatchesDir: ".yarn/patches",
19274
+ manager: "yarn"
19275
+ },
19276
+ {
19277
+ // Yarn v2 PnP
19278
+ path: ".pnp.js",
19279
+ checkPatchesDir: ".yarn/patches",
19257
19280
  manager: "yarn"
19258
19281
  },
19259
19282
  {
19260
19283
  // yarn 1
19261
19284
  path: "node_modules/.yarn-integrity",
19262
- checkPatches: true,
19285
+ checkPatchesDir: "patches",
19263
19286
  manager: "yarn"
19264
19287
  },
19265
19288
  {
19266
19289
  path: "node_modules/.pnpm/lock.yaml",
19267
19290
  // Included in lockfile
19268
- checkPatches: false,
19291
+ checkPatchesDir: false,
19269
19292
  manager: "pnpm"
19270
19293
  },
19271
- { name: "bun.lockb", path: "bun.lockb", checkPatches: true, manager: "bun" }
19294
+ {
19295
+ name: "bun.lockb",
19296
+ path: "bun.lockb",
19297
+ checkPatchesDir: "patches",
19298
+ manager: "bun"
19299
+ }
19272
19300
  ].sort((_, { manager }) => {
19273
19301
  return process.env.npm_config_user_agent?.startsWith(manager) ? 1 : -1;
19274
19302
  });
@@ -19284,8 +19312,8 @@ function getConfigHash(environment) {
19284
19312
  assetsInclude: config.assetsInclude,
19285
19313
  plugins: config.plugins.map((p) => p.name),
19286
19314
  optimizeDeps: {
19287
- include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() : void 0,
19288
- exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() : void 0,
19315
+ include: optimizeDeps2.include ? unique(optimizeDeps2.include).sort() : undefined,
19316
+ exclude: optimizeDeps2.exclude ? unique(optimizeDeps2.exclude).sort() : undefined,
19289
19317
  esbuildOptions: {
19290
19318
  ...optimizeDeps2.esbuildOptions,
19291
19319
  plugins: optimizeDeps2.esbuildOptions?.plugins?.map((p) => p.name)
@@ -19309,9 +19337,12 @@ function getLockfileHash(environment) {
19309
19337
  const lockfileFormat = lockfileFormats.find(
19310
19338
  (f) => normalizedLockfilePath.endsWith(f.path)
19311
19339
  );
19312
- if (lockfileFormat.checkPatches) {
19340
+ if (lockfileFormat.checkPatchesDir) {
19313
19341
  const baseDir = lockfilePath.slice(0, -lockfileFormat.path.length);
19314
- const fullPath = path$d.join(baseDir, "patches");
19342
+ const fullPath = path$d.join(
19343
+ baseDir,
19344
+ lockfileFormat.checkPatchesDir
19345
+ );
19315
19346
  const stat = tryStatSync(fullPath);
19316
19347
  if (stat?.isDirectory()) {
19317
19348
  content += stat.mtimeMs.toString();
@@ -19349,7 +19380,7 @@ function findOptimizedDepInfoInRecord(dependenciesInfo, callbackFn) {
19349
19380
  }
19350
19381
  async function optimizedDepNeedsInterop(environment, metadata, file) {
19351
19382
  const depInfo = optimizedDepInfoFromFile(metadata, file);
19352
- if (depInfo?.src && depInfo.needsInterop === void 0) {
19383
+ if (depInfo?.src && depInfo.needsInterop === undefined) {
19353
19384
  depInfo.exportsData ??= extractExportsData(environment, depInfo.src);
19354
19385
  depInfo.needsInterop = needsInterop(
19355
19386
  environment,
@@ -19469,7 +19500,7 @@ function jsonPlugin(options, isBuild) {
19469
19500
  json = JSON.stringify(JSON.parse(json));
19470
19501
  }
19471
19502
  return {
19472
- code: `export default JSON.parse(${JSON.stringify(json)})`,
19503
+ code: `export default /* #__PURE__ */ JSON.parse(${JSON.stringify(json)})`,
19473
19504
  map: { mappings: "" }
19474
19505
  };
19475
19506
  }
@@ -19492,7 +19523,7 @@ function jsonPlugin(options, isBuild) {
19492
19523
  function serializeValue(value) {
19493
19524
  const valueAsString = JSON.stringify(value);
19494
19525
  if (typeof value === "object" && value != null && valueAsString.length > 10 * 1e3) {
19495
- return `JSON.parse(${JSON.stringify(valueAsString)})`;
19526
+ return `/* #__PURE__ */ JSON.parse(${JSON.stringify(valueAsString)})`;
19496
19527
  }
19497
19528
  return valueAsString;
19498
19529
  }
@@ -19501,7 +19532,7 @@ function extractJsonErrorPosition(errorMessage, inputLength) {
19501
19532
  return inputLength - 1;
19502
19533
  }
19503
19534
  const errorMessageList = /at position (\d+)/.exec(errorMessage);
19504
- return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : void 0;
19535
+ return errorMessageList ? Math.max(parseInt(errorMessageList[1], 10) - 1, 0) : undefined;
19505
19536
  }
19506
19537
 
19507
19538
  const debug$b = createDebugger("vite:optimize-deps");
@@ -19524,7 +19555,7 @@ function optimizedDepsPlugin() {
19524
19555
  const metadata = depsOptimizer.metadata;
19525
19556
  const file = cleanUrl(id);
19526
19557
  const versionMatch = DEP_VERSION_RE.exec(file);
19527
- const browserHash = versionMatch ? versionMatch[1].split("=")[1] : void 0;
19558
+ const browserHash = versionMatch ? versionMatch[1].split("=")[1] : undefined;
19528
19559
  const info = optimizedDepInfoFromFile(metadata, file);
19529
19560
  if (info) {
19530
19561
  if (browserHash && info.browserHash !== browserHash) {
@@ -20144,13 +20175,13 @@ function loadEnv(mode, envDir, prefixes = "VITE_") {
20144
20175
  return Object.entries(parse_1$3(fs__default.readFileSync(filePath)));
20145
20176
  })
20146
20177
  );
20147
- if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === void 0) {
20178
+ if (parsed.NODE_ENV && process.env.VITE_USER_NODE_ENV === undefined) {
20148
20179
  process.env.VITE_USER_NODE_ENV = parsed.NODE_ENV;
20149
20180
  }
20150
- if (parsed.BROWSER && process.env.BROWSER === void 0) {
20181
+ if (parsed.BROWSER && process.env.BROWSER === undefined) {
20151
20182
  process.env.BROWSER = parsed.BROWSER;
20152
20183
  }
20153
- if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === void 0) {
20184
+ if (parsed.BROWSER_ARGS && process.env.BROWSER_ARGS === undefined) {
20154
20185
  process.env.BROWSER_ARGS = parsed.BROWSER_ARGS;
20155
20186
  }
20156
20187
  const processEnv = { ...process.env };
@@ -24619,7 +24650,7 @@ const parse$a = (input, options) => {
24619
24650
  }
24620
24651
 
24621
24652
  if (prior.type === 'slash' && prior.prev.type !== 'bos' && rest[0] === '/') {
24622
- const end = rest[1] !== void 0 ? '|$' : '';
24653
+ const end = rest[1] !== undefined ? '|$' : '';
24623
24654
 
24624
24655
  state.output = state.output.slice(0, -(prior.output + prev.output).length);
24625
24656
  prior.output = `(?:${prior.output}`;
@@ -26010,7 +26041,7 @@ const toRegexRange$1 = (min, max, options) => {
26010
26041
  throw new TypeError('toRegexRange: expected the first argument to be a number');
26011
26042
  }
26012
26043
 
26013
- if (max === void 0 || min === max) {
26044
+ if (max === undefined || min === max) {
26014
26045
  return String(min);
26015
26046
  }
26016
26047
 
@@ -26082,9 +26113,9 @@ const toRegexRange$1 = (min, max, options) => {
26082
26113
  };
26083
26114
 
26084
26115
  function collatePatterns(neg, pos, options) {
26085
- let onlyNegative = filterPatterns(neg, pos, '-', false) || [];
26086
- let onlyPositive = filterPatterns(pos, neg, '', false) || [];
26087
- let intersected = filterPatterns(neg, pos, '-?', true) || [];
26116
+ let onlyNegative = filterPatterns(neg, pos, '-', false);
26117
+ let onlyPositive = filterPatterns(pos, neg, '', false);
26118
+ let intersected = filterPatterns(neg, pos, '-?', true);
26088
26119
  let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
26089
26120
  return subpatterns.join('|');
26090
26121
  }
@@ -29850,7 +29881,7 @@ function parseInternal(string, env, opts) {
29850
29881
  return matches.map(function (match) {
29851
29882
  var s = match[0];
29852
29883
  if (!s || commented) {
29853
- return void undefined;
29884
+ return undefined;
29854
29885
  }
29855
29886
  if (controlRE.test(s)) {
29856
29887
  return { op: s };
@@ -30509,7 +30540,7 @@ async function resolveHttpServer({ proxy }, app, httpsOptions) {
30509
30540
  }
30510
30541
  }
30511
30542
  async function resolveHttpsConfig(https) {
30512
- if (!https) return void 0;
30543
+ if (!https) return undefined;
30513
30544
  const [ca, cert, key, pfx] = await Promise.all([
30514
30545
  readFileIfExists(https.ca),
30515
30546
  readFileIfExists(https.cert),
@@ -30570,7 +30601,7 @@ function setClientErrorHandler(server, logger) {
30570
30601
 
30571
30602
  let offset;
30572
30603
  function calculateOffsetOnce() {
30573
- if (offset !== void 0) {
30604
+ if (offset !== undefined) {
30574
30605
  return;
30575
30606
  }
30576
30607
  try {
@@ -31297,7 +31328,7 @@ Object.defineProperty(${ssrModuleExportsKey}, "default", { enumerable: true, con
31297
31328
  for (let i = 0; i < statements.length - 1; i++) {
31298
31329
  const stmt = statements[i];
31299
31330
  if (code[stmt.end - 1] !== ";" && stmt.type !== "FunctionDeclaration" && stmt.type !== "ClassDeclaration" && stmt.type !== "BlockStatement" && stmt.type !== "ImportDeclaration") {
31300
- s.appendRight(stmt.end, ";");
31331
+ s.appendLeft(stmt.end, ";");
31301
31332
  }
31302
31333
  }
31303
31334
  },
@@ -32765,7 +32796,7 @@ async function startBrowserProcess(browser, browserArgs, url, logger) {
32765
32796
  }
32766
32797
  }
32767
32798
  if (process.platform === "darwin" && browser === "open") {
32768
- browser = void 0;
32799
+ browser = undefined;
32769
32800
  }
32770
32801
  try {
32771
32802
  const options = browser ? { app: { name: browser, arguments: browserArgs } } : {};
@@ -37677,7 +37708,7 @@ function createWebSocketServer(server, config, httpsOptions) {
37677
37708
  };
37678
37709
  }
37679
37710
  let wss;
37680
- let wsHttpServer = void 0;
37711
+ let wsHttpServer = undefined;
37681
37712
  const hmr = isObject$2(config.server.hmr) && config.server.hmr;
37682
37713
  const hmrServer = hmr && hmr.server;
37683
37714
  const hmrPort = hmr && hmr.port;
@@ -37687,10 +37718,10 @@ function createWebSocketServer(server, config, httpsOptions) {
37687
37718
  const customListeners = /* @__PURE__ */ new Map();
37688
37719
  const clientsMap = /* @__PURE__ */ new WeakMap();
37689
37720
  const port = hmrPort || 24678;
37690
- const host = hmr && hmr.host || void 0;
37721
+ const host = hmr && hmr.host || undefined;
37691
37722
  if (wsServer) {
37692
37723
  let hmrBase = config.base;
37693
- const hmrPath = hmr ? hmr.path : void 0;
37724
+ const hmrPath = hmr ? hmr.path : undefined;
37694
37725
  if (hmrPath) {
37695
37726
  hmrBase = path$d.posix.join(hmrBase, hmrPath);
37696
37727
  }
@@ -40152,7 +40183,7 @@ ${err.stack}`,
40152
40183
  const [proxy, opts] = proxies[context];
40153
40184
  if (opts.ws || opts.target?.toString().startsWith("ws:") || opts.target?.toString().startsWith("wss:")) {
40154
40185
  if (opts.bypass) {
40155
- const bypassResult = opts.bypass(req, void 0, opts);
40186
+ const bypassResult = opts.bypass(req, undefined, opts);
40156
40187
  if (typeof bypassResult === "string") {
40157
40188
  req.url = bypassResult;
40158
40189
  debug$5?.(`bypass: ${req.url} -> ${bypassResult}`);
@@ -40214,7 +40245,7 @@ function htmlFallbackMiddleware(root, spaFallback) {
40214
40245
  // Only accept GET or HEAD
40215
40246
  req.method !== "GET" && req.method !== "HEAD" || // Exclude default favicon requests
40216
40247
  req.url === "/favicon.ico" || // Require Accept: text/html or */*
40217
- !(req.headers.accept === void 0 || // equivalent to `Accept: */*`
40248
+ !(req.headers.accept === undefined || // equivalent to `Accept: */*`
40218
40249
  req.headers.accept === "" || // equivalent to `Accept: */*`
40219
40250
  req.headers.accept.includes("text/html") || req.headers.accept.includes("*/*"))
40220
40251
  ) {
@@ -40744,10 +40775,12 @@ function serveStaticMiddleware(server) {
40744
40775
  );
40745
40776
  return function viteServeStaticMiddleware(req, res, next) {
40746
40777
  const cleanedUrl = cleanUrl(req.url);
40747
- if (cleanedUrl[cleanedUrl.length - 1] === "/" || path$d.extname(cleanedUrl) === ".html" || isInternalRequest(req.url)) {
40778
+ if (cleanedUrl[cleanedUrl.length - 1] === "/" || path$d.extname(cleanedUrl) === ".html" || isInternalRequest(req.url) || // skip url starting with // as these will be interpreted as
40779
+ // scheme relative URLs by new URL() and will not be a valid file path
40780
+ req.url?.startsWith("//")) {
40748
40781
  return next();
40749
40782
  }
40750
- const url = new URL(req.url.replace(/^\/{2,}/, "/"), "http://example.com");
40783
+ const url = new URL(req.url, "http://example.com");
40751
40784
  const pathname = decodeURI(url.pathname);
40752
40785
  let redirectedPathname;
40753
40786
  for (const { find, replacement } of server.config.resolve.alias) {
@@ -40783,8 +40816,8 @@ function serveRawFsMiddleware(server) {
40783
40816
  sirvOptions({ getHeaders: () => server.config.server.headers })
40784
40817
  );
40785
40818
  return function viteServeRawFsMiddleware(req, res, next) {
40786
- const url = new URL(req.url.replace(/^\/{2,}/, "/"), "http://example.com");
40787
- if (url.pathname.startsWith(FS_PREFIX)) {
40819
+ if (req.url.startsWith(FS_PREFIX)) {
40820
+ const url = new URL(req.url, "http://example.com");
40788
40821
  const pathname = decodeURI(url.pathname);
40789
40822
  if (!ensureServingAccess(
40790
40823
  slash$1(path$d.resolve(fsPathFromId(pathname))),
@@ -40909,11 +40942,11 @@ async function doTransform(environment, url, options, timestamp) {
40909
40942
  );
40910
40943
  if (cached) return cached;
40911
40944
  }
40912
- const resolved = module ? void 0 : await pluginContainer.resolveId(url, void 0) ?? void 0;
40945
+ const resolved = module ? undefined : await pluginContainer.resolveId(url, undefined) ?? undefined;
40913
40946
  const id = module?.id ?? resolved?.id ?? url;
40914
40947
  module ??= environment.moduleGraph.getModuleById(id);
40915
40948
  if (module) {
40916
- await environment.moduleGraph._ensureEntryFromUrl(url, void 0, resolved);
40949
+ await environment.moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
40917
40950
  const cached = await getCachedTransformResult(
40918
40951
  environment,
40919
40952
  url,
@@ -41025,7 +41058,7 @@ ${e}`, {
41025
41058
  }
41026
41059
  if (environment._closing && environment.config.dev.recoverable)
41027
41060
  throwClosedServerError();
41028
- mod ??= await moduleGraph._ensureEntryFromUrl(url, void 0, resolved);
41061
+ mod ??= await moduleGraph._ensureEntryFromUrl(url, undefined, resolved);
41029
41062
  const transformStart = debugTransform ? performance.now() : 0;
41030
41063
  const transformResult = await pluginContainer.transform(code, id, {
41031
41064
  inMap: map
@@ -41093,7 +41126,7 @@ ${e}`, {
41093
41126
  }
41094
41127
  async function handleModuleSoftInvalidation(environment, mod, timestamp) {
41095
41128
  const transformResult = mod.invalidationState;
41096
- mod.invalidationState = void 0;
41129
+ mod.invalidationState = undefined;
41097
41130
  if (!transformResult || transformResult === "HARD_INVALIDATED") return;
41098
41131
  if (mod.transformResult) {
41099
41132
  throw new Error(
@@ -41107,7 +41140,7 @@ async function handleModuleSoftInvalidation(environment, mod, timestamp) {
41107
41140
  await init;
41108
41141
  const source = transformResult.code;
41109
41142
  const s = new MagicString(source);
41110
- const [imports] = parse$e(source, mod.id || void 0);
41143
+ const [imports] = parse$e(source, mod.id || undefined);
41111
41144
  for (const imp of imports) {
41112
41145
  let rawUrl = source.slice(imp.s, imp.e);
41113
41146
  if (rawUrl === "import.meta") continue;
@@ -41250,7 +41283,7 @@ function getNodeAssetAttributes(node) {
41250
41283
  return actions;
41251
41284
  }
41252
41285
  function getAttrKey(attr) {
41253
- return attr.prefix === void 0 ? attr.name : `${attr.prefix}:${attr.name}`;
41286
+ return attr.prefix === undefined ? attr.name : `${attr.prefix}:${attr.name}`;
41254
41287
  }
41255
41288
 
41256
41289
  const modulePreloadPolyfillId = "vite/modulepreload-polyfill";
@@ -41389,7 +41422,7 @@ function traverseNodes(node, visitor) {
41389
41422
  }
41390
41423
  }
41391
41424
  async function traverseHtml(html, filePath, visitor) {
41392
- const { parse } = await import('./dep-DnSxfB-q.js');
41425
+ const { parse } = await import('./dep-DcIXjcop.js');
41393
41426
  const ast = parse(html, {
41394
41427
  scriptingEnabled: false,
41395
41428
  // parse inside <noscript>
@@ -41402,16 +41435,16 @@ async function traverseHtml(html, filePath, visitor) {
41402
41435
  }
41403
41436
  function getScriptInfo(node) {
41404
41437
  let src;
41405
- let sourceCodeLocation;
41438
+ let srcSourceCodeLocation;
41406
41439
  let isModule = false;
41407
41440
  let isAsync = false;
41408
41441
  let isIgnored = false;
41409
41442
  for (const p of node.attrs) {
41410
- if (p.prefix !== void 0) continue;
41443
+ if (p.prefix !== undefined) continue;
41411
41444
  if (p.name === "src") {
41412
41445
  if (!src) {
41413
41446
  src = p;
41414
- sourceCodeLocation = node.sourceCodeLocation?.attrs["src"];
41447
+ srcSourceCodeLocation = node.sourceCodeLocation?.attrs["src"];
41415
41448
  }
41416
41449
  } else if (p.name === "type" && p.value && p.value === "module") {
41417
41450
  isModule = true;
@@ -41421,7 +41454,7 @@ function getScriptInfo(node) {
41421
41454
  isIgnored = true;
41422
41455
  }
41423
41456
  }
41424
- return { src, sourceCodeLocation, isModule, isAsync, isIgnored };
41457
+ return { src, srcSourceCodeLocation, isModule, isAsync, isIgnored };
41425
41458
  }
41426
41459
  const attrValueStartRE = /=\s*(.)/;
41427
41460
  function overwriteAttrValue(s, sourceCodeLocation, newValue) {
@@ -41565,7 +41598,7 @@ function buildHtmlPlugin(config) {
41565
41598
  }
41566
41599
  let shouldRemove = false;
41567
41600
  if (node.nodeName === "script") {
41568
- const { src, sourceCodeLocation, isModule, isAsync, isIgnored } = getScriptInfo(node);
41601
+ const { src, srcSourceCodeLocation, isModule, isAsync, isIgnored } = getScriptInfo(node);
41569
41602
  if (isIgnored) {
41570
41603
  removeViteIgnoreAttr(s, node.sourceCodeLocation);
41571
41604
  } else {
@@ -41574,7 +41607,7 @@ function buildHtmlPlugin(config) {
41574
41607
  if (isPublicFile) {
41575
41608
  overwriteAttrValue(
41576
41609
  s,
41577
- sourceCodeLocation,
41610
+ srcSourceCodeLocation,
41578
41611
  partialEncodeURIPath(toOutputPublicFilePath(url))
41579
41612
  );
41580
41613
  }
@@ -41676,7 +41709,7 @@ import ${JSON.stringify(url)}`;
41676
41709
  const isNoInlineLink = node.nodeName === "link" && attr.attributes.rel && parseRelAttr(attr.attributes.rel).some(
41677
41710
  (v) => noInlineLinkRels.has(v)
41678
41711
  );
41679
- const shouldInline = isNoInlineLink ? false : void 0;
41712
+ const shouldInline = isNoInlineLink ? false : undefined;
41680
41713
  assetUrlsPromises.push(
41681
41714
  (async () => {
41682
41715
  const processedUrl = await processAssetUrl(
@@ -41990,10 +42023,10 @@ function parseRelAttr(attr) {
41990
42023
  }
41991
42024
  function findNeedTransformStyleAttribute(node) {
41992
42025
  const attr = node.attrs.find(
41993
- (prop) => prop.prefix === void 0 && prop.name === "style" && // only url(...) or image-set(...) in css need to emit file
42026
+ (prop) => prop.prefix === undefined && prop.name === "style" && // only url(...) or image-set(...) in css need to emit file
41994
42027
  (prop.value.includes("url(") || prop.value.includes("image-set("))
41995
42028
  );
41996
- if (!attr) return void 0;
42029
+ if (!attr) return undefined;
41997
42030
  const location = node.sourceCodeLocation?.attrs?.["style"];
41998
42031
  return { attr, location };
41999
42032
  }
@@ -42157,7 +42190,7 @@ function resolveHtmlTransforms(plugins, logger) {
42157
42190
  )
42158
42191
  );
42159
42192
  }
42160
- const order = hook.order ?? (hook.enforce === "pre" ? "pre" : void 0);
42193
+ const order = hook.order ?? (hook.enforce === "pre" ? "pre" : undefined);
42161
42194
  const handler = hook.handler ?? hook.transform;
42162
42195
  if (order === "pre") {
42163
42196
  preHooks.push(handler);
@@ -42693,9 +42726,9 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
42693
42726
  return;
42694
42727
  }
42695
42728
  if (node.nodeName === "script") {
42696
- const { src, sourceCodeLocation, isModule, isIgnored } = getScriptInfo(node);
42729
+ const { src, srcSourceCodeLocation, isModule, isIgnored } = getScriptInfo(node);
42697
42730
  if (isIgnored) {
42698
- removeViteIgnoreAttr(s, sourceCodeLocation);
42731
+ removeViteIgnoreAttr(s, node.sourceCodeLocation);
42699
42732
  } else if (src) {
42700
42733
  const processedUrl = processNodeUrl(
42701
42734
  src.value,
@@ -42708,7 +42741,7 @@ const devHtmlHook = async (html, { path: htmlPath, filename, server, originalUrl
42708
42741
  !isModule
42709
42742
  );
42710
42743
  if (processedUrl !== src.value) {
42711
- overwriteAttrValue(s, sourceCodeLocation, processedUrl);
42744
+ overwriteAttrValue(s, srcSourceCodeLocation, processedUrl);
42712
42745
  }
42713
42746
  } else if (isModule && node.childNodes.length) {
42714
42747
  addInlineModule(node, "js");
@@ -42931,7 +42964,7 @@ class ModuleNode {
42931
42964
  _getModuleInfoUnion(prop) {
42932
42965
  const _clientValue = this._clientModule?.[prop];
42933
42966
  const _ssrValue = this._ssrModule?.[prop];
42934
- if (_clientValue == null && _ssrValue == null) return void 0;
42967
+ if (_clientValue == null && _ssrValue == null) return undefined;
42935
42968
  return new Proxy({}, {
42936
42969
  get: (_, key) => {
42937
42970
  if (key === "meta") {
@@ -42953,7 +42986,7 @@ class ModuleNode {
42953
42986
  _getModuleObjectUnion(prop) {
42954
42987
  const _clientValue = this._clientModule?.[prop];
42955
42988
  const _ssrValue = this._ssrModule?.[prop];
42956
- if (_clientValue == null && _ssrValue == null) return void 0;
42989
+ if (_clientValue == null && _ssrValue == null) return undefined;
42957
42990
  const info = {};
42958
42991
  if (_ssrValue) {
42959
42992
  Object.assign(info, _ssrValue);
@@ -43148,7 +43181,7 @@ class ModuleGraph {
43148
43181
  const clientModules = this._client.getModulesByFile(file);
43149
43182
  const ssrModules = this._ssr.getModulesByFile(file);
43150
43183
  if (!clientModules && !ssrModules) {
43151
- return void 0;
43184
+ return undefined;
43152
43185
  }
43153
43186
  const result = /* @__PURE__ */ new Set();
43154
43187
  if (clientModules) {
@@ -43256,12 +43289,12 @@ class ModuleGraph {
43256
43289
  getBackwardCompatibleBrowserModuleNode(clientModule) {
43257
43290
  return this.getBackwardCompatibleModuleNodeDual(
43258
43291
  clientModule,
43259
- clientModule.id ? this._ssr.getModuleById(clientModule.id) : void 0
43292
+ clientModule.id ? this._ssr.getModuleById(clientModule.id) : undefined
43260
43293
  );
43261
43294
  }
43262
43295
  getBackwardCompatibleServerModuleNode(ssrModule) {
43263
43296
  return this.getBackwardCompatibleModuleNodeDual(
43264
- ssrModule.id ? this._client.getModuleById(ssrModule.id) : void 0,
43297
+ ssrModule.id ? this._client.getModuleById(ssrModule.id) : undefined,
43265
43298
  ssrModule
43266
43299
  );
43267
43300
  }
@@ -43306,7 +43339,7 @@ function createBackwardCompatibleModuleSet(moduleGraph, prop, module) {
43306
43339
  return false;
43307
43340
  }
43308
43341
  const keyModule = moduleGraph._getModuleGraph(module.environment).getModuleById(key.id);
43309
- return keyModule !== void 0 && module[prop].has(keyModule);
43342
+ return keyModule !== undefined && module[prop].has(keyModule);
43310
43343
  },
43311
43344
  values() {
43312
43345
  return this.keys();
@@ -43599,6 +43632,25 @@ async function _createServer(inlineConfig = {}, options) {
43599
43632
  const pluginContainer = createPluginContainer(environments);
43600
43633
  const closeHttpServer = createServerCloseFn(httpServer);
43601
43634
  const devHtmlTransformFn = createDevHtmlTransformFn(config);
43635
+ let closeServerPromise;
43636
+ const closeServer = async () => {
43637
+ if (!middlewareMode) {
43638
+ teardownSIGTERMListener(closeServerAndExit);
43639
+ }
43640
+ await Promise.allSettled([
43641
+ watcher.close(),
43642
+ ws.close(),
43643
+ Promise.allSettled(
43644
+ Object.values(server.environments).map(
43645
+ (environment) => environment.close()
43646
+ )
43647
+ ),
43648
+ closeHttpServer(),
43649
+ server._ssrCompatModuleRunner?.close()
43650
+ ]);
43651
+ server.resolvedUrls = null;
43652
+ server._ssrCompatModuleRunner = undefined;
43653
+ };
43602
43654
  let server = {
43603
43655
  config,
43604
43656
  middlewares,
@@ -43721,22 +43773,10 @@ async function _createServer(inlineConfig = {}, options) {
43721
43773
  }
43722
43774
  },
43723
43775
  async close() {
43724
- if (!middlewareMode) {
43725
- teardownSIGTERMListener(closeServerAndExit);
43726
- }
43727
- await Promise.allSettled([
43728
- watcher.close(),
43729
- ws.close(),
43730
- Promise.allSettled(
43731
- Object.values(server.environments).map(
43732
- (environment) => environment.close()
43733
- )
43734
- ),
43735
- closeHttpServer(),
43736
- server._ssrCompatModuleRunner?.close()
43737
- ]);
43738
- server.resolvedUrls = null;
43739
- server._ssrCompatModuleRunner = void 0;
43776
+ if (!closeServerPromise) {
43777
+ closeServerPromise = closeServer();
43778
+ }
43779
+ return closeServerPromise;
43740
43780
  },
43741
43781
  printUrls() {
43742
43782
  if (server.resolvedUrls) {
@@ -43775,7 +43815,7 @@ async function _createServer(inlineConfig = {}, options) {
43775
43815
  _importGlobMap: /* @__PURE__ */ new Map(),
43776
43816
  _restartPromise: null,
43777
43817
  _forceOptimizeOnRestart: false,
43778
- _shortcutsOptions: void 0
43818
+ _shortcutsOptions: undefined
43779
43819
  };
43780
43820
  const reflexServer = new Proxy(server, {
43781
43821
  get: (_, property) => {
@@ -43790,7 +43830,7 @@ async function _createServer(inlineConfig = {}, options) {
43790
43830
  try {
43791
43831
  await server.close();
43792
43832
  } finally {
43793
- process.exitCode ??= exitCode ? 128 + exitCode : void 0;
43833
+ process.exitCode ??= exitCode ? 128 + exitCode : undefined;
43794
43834
  process.exit();
43795
43835
  }
43796
43836
  };
@@ -43904,7 +43944,7 @@ async function _createServer(inlineConfig = {}, options) {
43904
43944
  Object.values(environments).map((e) => e.listen(server))
43905
43945
  );
43906
43946
  }
43907
- initingServer = void 0;
43947
+ initingServer = undefined;
43908
43948
  serverInited = true;
43909
43949
  }();
43910
43950
  return initingServer;
@@ -43980,9 +44020,9 @@ const serverConfigDefaults = Object.freeze({
43980
44020
  port: DEFAULT_DEV_PORT,
43981
44021
  strictPort: false,
43982
44022
  host: "localhost",
43983
- https: void 0,
44023
+ https: undefined,
43984
44024
  open: false,
43985
- proxy: void 0,
44025
+ proxy: undefined,
43986
44026
  cors: true,
43987
44027
  headers: {},
43988
44028
  // hmr
@@ -44008,7 +44048,7 @@ function resolveServerOptions(root, raw, logger) {
44008
44048
  const _server = mergeWithDefaults(
44009
44049
  {
44010
44050
  ...serverConfigDefaults,
44011
- host: void 0,
44051
+ host: undefined,
44012
44052
  // do not set here to detect whether host is set or not
44013
44053
  sourcemapIgnoreList: isInNodeModules$1
44014
44054
  },
@@ -44461,7 +44501,7 @@ async function handleHMRUpdate(type, file, server) {
44461
44501
  throw error2;
44462
44502
  }
44463
44503
  if (!options.modules.length) {
44464
- if (file.endsWith(".html")) {
44504
+ if (file.endsWith(".html") && environment.name === "client") {
44465
44505
  environment.logger.info(
44466
44506
  colors$1.green(`page reload `) + colors$1.dim(shortFile),
44467
44507
  {
@@ -44570,7 +44610,7 @@ function propagateUpdate(node, traversedModules, boundaries, currentChain = [nod
44570
44610
  return false;
44571
44611
  }
44572
44612
  traversedModules.add(node);
44573
- if (node.id && node.isSelfAccepting === void 0) {
44613
+ if (node.id && node.isSelfAccepting === undefined) {
44574
44614
  debugHmr?.(
44575
44615
  `[propagate update] stop propagation because not analyzed: ${colors$1.dim(
44576
44616
  node.id
@@ -45224,7 +45264,7 @@ function webWorkerPlugin(config) {
45224
45264
  injectEnv = "";
45225
45265
  } else {
45226
45266
  const environment = this.environment;
45227
- const moduleGraph = environment.mode === "dev" ? environment.moduleGraph : void 0;
45267
+ const moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
45228
45268
  const module = moduleGraph?.getModuleById(ENV_ENTRY);
45229
45269
  injectEnv = module?.transformResult?.code || "";
45230
45270
  }
@@ -45401,7 +45441,7 @@ function preAliasPlugin(config) {
45401
45441
  async resolveId(id, importer, options) {
45402
45442
  const { environment } = this;
45403
45443
  const ssr = environment.config.consumer === "server";
45404
- const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer : void 0;
45444
+ const depsOptimizer = environment.mode === "dev" ? environment.depsOptimizer : undefined;
45405
45445
  if (importer && depsOptimizer && bareImportRE.test(id) && !options.scan && id !== "@vite/client" && id !== "@vite/env") {
45406
45446
  if (findPatterns.find((pattern) => matches(pattern, id))) {
45407
45447
  const optimizedId = await tryOptimizedResolve(
@@ -45586,7 +45626,7 @@ function importAnalysisPlugin(config) {
45586
45626
  importer,
45587
45627
  source
45588
45628
  );
45589
- this.error(message, showCodeFrame ? e.idx : void 0);
45629
+ this.error(message, showCodeFrame ? e.idx : undefined);
45590
45630
  }
45591
45631
  const depsOptimizer = environment.depsOptimizer;
45592
45632
  const importerModule = moduleGraph.getModuleById(importer);
@@ -45731,7 +45771,7 @@ function importAnalysisPlugin(config) {
45731
45771
  if (!isDynamicImport && attributeIndex > -1) {
45732
45772
  str().remove(end + 1, expEnd);
45733
45773
  }
45734
- if (specifier !== void 0) {
45774
+ if (specifier !== undefined) {
45735
45775
  if (isExternalUrl(specifier) && !specifier.startsWith("file://") || isDataUrl(specifier)) {
45736
45776
  return;
45737
45777
  }
@@ -45765,7 +45805,7 @@ function importAnalysisPlugin(config) {
45765
45805
  depsOptimizer.metadata,
45766
45806
  file
45767
45807
  );
45768
- if (needsInterop === void 0) {
45808
+ if (needsInterop === undefined) {
45769
45809
  if (!optimizedDepDynamicRE.test(file)) {
45770
45810
  config.logger.error(
45771
45811
  colors$1.red(
@@ -46121,7 +46161,7 @@ function clientInjectionsPlugin(config) {
46121
46161
  const devBase = config.base;
46122
46162
  const serverHost = `${resolvedServerHostname}:${resolvedServerPort}${devBase}`;
46123
46163
  let hmrConfig = config.server.hmr;
46124
- hmrConfig = isObject$2(hmrConfig) ? hmrConfig : void 0;
46164
+ hmrConfig = isObject$2(hmrConfig) ? hmrConfig : undefined;
46125
46165
  const host = hmrConfig?.host || null;
46126
46166
  const protocol = hmrConfig?.protocol || null;
46127
46167
  const timeout = hmrConfig?.timeout || 3e4;
@@ -46986,7 +47026,7 @@ class EnvironmentPluginContainer {
46986
47026
  const utils = createPluginHookUtils(plugins);
46987
47027
  this.getSortedPlugins = utils.getSortedPlugins;
46988
47028
  this.getSortedPluginHooks = utils.getSortedPluginHooks;
46989
- this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph : void 0;
47029
+ this.moduleGraph = environment.mode === "dev" ? environment.moduleGraph : undefined;
46990
47030
  }
46991
47031
  _pluginContextMap = /* @__PURE__ */ new Map();
46992
47032
  _resolvedRollupOptions;
@@ -47028,7 +47068,7 @@ class EnvironmentPluginContainer {
47028
47068
  return info[key];
47029
47069
  }
47030
47070
  if (key === "then") {
47031
- return void 0;
47071
+ return undefined;
47032
47072
  }
47033
47073
  throw Error(
47034
47074
  `[vite] The "${key}" property of ModuleInfo is not supported.`
@@ -47107,7 +47147,7 @@ class EnvironmentPluginContainer {
47107
47147
  )
47108
47148
  );
47109
47149
  await this._buildStartPromise;
47110
- this._buildStartPromise = void 0;
47150
+ this._buildStartPromise = undefined;
47111
47151
  }
47112
47152
  async resolveId(rawId, importer = join$1(
47113
47153
  this.environment.config.root,
@@ -47124,7 +47164,7 @@ class EnvironmentPluginContainer {
47124
47164
  const ctx = new ResolveIdContext(this, skip, skipCalls, scan);
47125
47165
  const mergedSkip = new Set(skip);
47126
47166
  for (const call of skipCalls ?? []) {
47127
- if (call.id === rawId && call.importer === importer) {
47167
+ if (call.called || call.id === rawId && call.importer === importer) {
47128
47168
  mergedSkip.add(call.plugin);
47129
47169
  }
47130
47170
  }
@@ -47229,7 +47269,7 @@ class EnvironmentPluginContainer {
47229
47269
  prettifyUrl(id, this.environment.config.root)
47230
47270
  );
47231
47271
  if (isObject$2(result)) {
47232
- if (result.code !== void 0) {
47272
+ if (result.code !== undefined) {
47233
47273
  code = result.code;
47234
47274
  if (result.map) {
47235
47275
  if (debugSourcemapCombine) {
@@ -47292,10 +47332,26 @@ class PluginContext {
47292
47332
  return parseAst(code, opts);
47293
47333
  }
47294
47334
  async resolve(id, importer, options) {
47295
- const skipCalls = options?.skipSelf === false ? this._resolveSkipCalls : [
47296
- ...this._resolveSkipCalls || [],
47297
- { id, importer, plugin: this._plugin }
47298
- ];
47335
+ let skipCalls;
47336
+ if (options?.skipSelf === false) {
47337
+ skipCalls = this._resolveSkipCalls;
47338
+ } else if (this._resolveSkipCalls) {
47339
+ const skipCallsTemp = [...this._resolveSkipCalls];
47340
+ const sameCallIndex = this._resolveSkipCalls.findIndex(
47341
+ (c) => c.id === id && c.importer === importer && c.plugin === this._plugin
47342
+ );
47343
+ if (sameCallIndex !== -1) {
47344
+ skipCallsTemp[sameCallIndex] = {
47345
+ ...skipCallsTemp[sameCallIndex],
47346
+ called: true
47347
+ };
47348
+ } else {
47349
+ skipCallsTemp.push({ id, importer, plugin: this._plugin });
47350
+ }
47351
+ skipCalls = skipCallsTemp;
47352
+ } else {
47353
+ skipCalls = [{ id, importer, plugin: this._plugin }];
47354
+ }
47299
47355
  let out = await this._container.resolveId(id, importer, {
47300
47356
  attributes: options?.attributes,
47301
47357
  custom: options?.custom,
@@ -47720,7 +47776,7 @@ function resolveCSSOptions(options) {
47720
47776
  resolved.lightningcss ??= {};
47721
47777
  resolved.lightningcss.targets ??= convertTargets(ESBUILD_MODULES_TARGET);
47722
47778
  } else {
47723
- resolved.lightningcss = void 0;
47779
+ resolved.lightningcss = undefined;
47724
47780
  }
47725
47781
  return resolved;
47726
47782
  }
@@ -48010,7 +48066,7 @@ function cssPostPlugin(config) {
48010
48066
  const resolveAssetUrlsInCss = (chunkCSS2, cssAssetName) => {
48011
48067
  const encodedPublicUrls = encodePublicUrlsInCSS(config);
48012
48068
  const relative = config.base === "./" || config.base === "";
48013
- const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) : void 0;
48069
+ const cssAssetDirname = encodedPublicUrls || relative ? slash$1(getCssAssetDirname(cssAssetName)) : undefined;
48014
48070
  const toRelative = (filename) => {
48015
48071
  const relativePath = normalizePath$3(
48016
48072
  path$d.relative(cssAssetDirname, filename)
@@ -48053,7 +48109,7 @@ function cssPostPlugin(config) {
48053
48109
  };
48054
48110
  function ensureFileExt(name, ext) {
48055
48111
  return normalizePath$3(
48056
- path$d.format({ ...path$d.parse(name), base: void 0, ext })
48112
+ path$d.format({ ...path$d.parse(name), base: undefined, ext })
48057
48113
  );
48058
48114
  }
48059
48115
  let s;
@@ -48377,7 +48433,7 @@ function createCSSResolvers(config) {
48377
48433
  args[1] = fileURLToPath$1(args[1], {
48378
48434
  windows: (
48379
48435
  // file:///foo cannot be converted to path with windows mode
48380
- isWindows$3 && args[1].startsWith("file:///") ? false : void 0
48436
+ isWindows$3 && args[1].startsWith("file:///") ? false : undefined
48381
48437
  )
48382
48438
  });
48383
48439
  }
@@ -48617,7 +48673,7 @@ async function compileCSS(environment, id, code, workerController, urlReplacer)
48617
48673
  }
48618
48674
  } else if (message.type === "warning") {
48619
48675
  const warning = message;
48620
- let msg = `[vite:css] ${warning.text}`;
48676
+ let msg = `[vite:css][postcss] ${warning.text}`;
48621
48677
  msg += `
48622
48678
  ${generateCodeFrame(
48623
48679
  code,
@@ -48626,11 +48682,11 @@ ${generateCodeFrame(
48626
48682
  column: warning.column - 1
48627
48683
  // 1-based
48628
48684
  },
48629
- warning.endLine !== void 0 && warning.endColumn !== void 0 ? {
48685
+ warning.endLine !== undefined && warning.endColumn !== undefined ? {
48630
48686
  line: warning.endLine,
48631
48687
  column: warning.endColumn - 1
48632
48688
  // 1-based
48633
- } : void 0
48689
+ } : undefined
48634
48690
  )}`;
48635
48691
  environment.logger.warn(colors$1.yellow(msg));
48636
48692
  }
@@ -48682,8 +48738,8 @@ function createCachedImport(imp) {
48682
48738
  return cached;
48683
48739
  };
48684
48740
  }
48685
- const importPostcssImport = createCachedImport(() => import('./dep-BGGf7Pd3.js').then(function (n) { return n.i; }));
48686
- const importPostcssModules = createCachedImport(() => import('./dep-Dt4uNHQP.js').then(function (n) { return n.i; }));
48741
+ const importPostcssImport = createCachedImport(() => import('./dep-BthWCIj2.js').then(function (n) { return n.i; }));
48742
+ const importPostcssModules = createCachedImport(() => import('./dep-C-SVMOic.js').then(function (n) { return n.i; }));
48687
48743
  const importPostcss = createCachedImport(() => import('postcss'));
48688
48744
  const preprocessorWorkerControllerCache = /* @__PURE__ */ new WeakMap();
48689
48745
  let alwaysFakeWorkerWorkerControllerCache;
@@ -48739,7 +48795,7 @@ async function finalizeCss(css, minify, config) {
48739
48795
  }
48740
48796
  async function resolvePostcssConfig(config) {
48741
48797
  let result = postcssConfigCache.get(config);
48742
- if (result !== void 0) {
48798
+ if (result !== undefined) {
48743
48799
  return await result;
48744
48800
  }
48745
48801
  const inlineOptions = config.css.postcss;
@@ -48903,30 +48959,49 @@ async function doImportCSSReplace(rawUrl, matched, replacer) {
48903
48959
  }
48904
48960
  async function minifyCSS(css, config, inlined) {
48905
48961
  if (config.build.cssMinify === "lightningcss") {
48906
- const { code, warnings } = (await importLightningCSS()).transform({
48907
- ...config.css.lightningcss,
48908
- targets: convertTargets(config.build.cssTarget),
48909
- cssModules: void 0,
48910
- // TODO: Pass actual filename here, which can also be passed to esbuild's
48911
- // `sourcefile` option below to improve error messages
48912
- filename: defaultCssBundleName,
48913
- code: Buffer.from(css),
48914
- minify: true
48915
- });
48916
- if (warnings.length) {
48917
- config.logger.warn(
48918
- colors$1.yellow(
48919
- `warnings when minifying css:
48920
- ${warnings.map((w) => w.message).join("\n")}`
48921
- )
48922
- );
48962
+ try {
48963
+ const { code, warnings } = (await importLightningCSS()).transform({
48964
+ ...config.css.lightningcss,
48965
+ targets: convertTargets(config.build.cssTarget),
48966
+ cssModules: undefined,
48967
+ // TODO: Pass actual filename here, which can also be passed to esbuild's
48968
+ // `sourcefile` option below to improve error messages
48969
+ filename: defaultCssBundleName,
48970
+ code: Buffer.from(css),
48971
+ minify: true
48972
+ });
48973
+ if (warnings.length) {
48974
+ const messages = warnings.map(
48975
+ (warning) => `${warning.message}
48976
+ ` + generateCodeFrame(css, {
48977
+ line: warning.loc.line,
48978
+ column: warning.loc.column - 1
48979
+ // 1-based
48980
+ })
48981
+ );
48982
+ config.logger.warn(
48983
+ colors$1.yellow(`warnings when minifying css:
48984
+ ${messages.join("\n")}`)
48985
+ );
48986
+ }
48987
+ return decoder.decode(code) + (inlined ? "" : "\n");
48988
+ } catch (e) {
48989
+ e.message = `[lightningcss minify] ${e.message}`;
48990
+ if (e.loc) {
48991
+ e.loc = {
48992
+ line: e.loc.line,
48993
+ column: e.loc.column - 1
48994
+ // 1-based
48995
+ };
48996
+ e.frame = generateCodeFrame(css, e.loc);
48997
+ }
48998
+ throw e;
48923
48999
  }
48924
- return decoder.decode(code) + (inlined ? "" : "\n");
48925
49000
  }
48926
49001
  try {
48927
49002
  const { code, warnings } = await transform$1(css, {
48928
49003
  loader: "css",
48929
- target: config.build.cssTarget || void 0,
49004
+ target: config.build.cssTarget || undefined,
48930
49005
  ...resolveMinifyCssEsbuildOptions(config.esbuild || {})
48931
49006
  });
48932
49007
  if (warnings.length) {
@@ -49200,7 +49275,7 @@ const makeModernScssWorker = (environment, resolvers, alias, maxWorkers) => {
49200
49275
  const result = await sass.compileStringAsync(data, sassOptions);
49201
49276
  return {
49202
49277
  css: result.css,
49203
- map: result.sourceMap ? JSON.stringify(result.sourceMap) : void 0,
49278
+ map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
49204
49279
  stats: {
49205
49280
  includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath2(url))
49206
49281
  }
@@ -49269,7 +49344,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
49269
49344
  const result = await compiler.compileStringAsync(data, sassOptions);
49270
49345
  return {
49271
49346
  css: result.css,
49272
- map: result.sourceMap ? JSON.stringify(result.sourceMap) : void 0,
49347
+ map: result.sourceMap ? JSON.stringify(result.sourceMap) : undefined,
49273
49348
  stats: {
49274
49349
  includedFiles: result.loadedUrls.filter((url) => url.protocol === "file:").map((url) => fileURLToPath$1(url))
49275
49350
  }
@@ -49277,7 +49352,7 @@ const makeModernCompilerScssWorker = (environment, resolvers, alias, _maxWorkers
49277
49352
  },
49278
49353
  async stop() {
49279
49354
  (await compilerPromise)?.dispose();
49280
- compilerPromise = void 0;
49355
+ compilerPromise = undefined;
49281
49356
  }
49282
49357
  };
49283
49358
  return worker;
@@ -49322,7 +49397,7 @@ const scssProcessor = (maxWorkers) => {
49322
49397
  );
49323
49398
  const optionsWithoutAdditionalData = {
49324
49399
  ...options,
49325
- additionalData: void 0
49400
+ additionalData: undefined
49326
49401
  };
49327
49402
  try {
49328
49403
  const result = await worker.run(
@@ -49332,7 +49407,7 @@ const scssProcessor = (maxWorkers) => {
49332
49407
  optionsWithoutAdditionalData
49333
49408
  );
49334
49409
  const deps = result.stats.includedFiles.map((f) => cleanScssBugUrl(f));
49335
- const map2 = result.map ? JSON.parse(result.map.toString()) : void 0;
49410
+ const map2 = result.map ? JSON.parse(result.map.toString()) : undefined;
49336
49411
  if (map2) {
49337
49412
  map2.sources = map2.sources.map(
49338
49413
  (url) => url.startsWith("file://") ? normalizePath$3(fileURLToPath$1(url)) : url
@@ -49407,7 +49482,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
49407
49482
  filename,
49408
49483
  path$d.join(dir, "*")
49409
49484
  );
49410
- if (!resolved) return void 0;
49485
+ if (!resolved) return undefined;
49411
49486
  const result = await rebaseUrls(
49412
49487
  environment,
49413
49488
  resolved,
@@ -49418,7 +49493,7 @@ const makeLessWorker = (environment, resolvers, alias, maxWorkers) => {
49418
49493
  );
49419
49494
  return {
49420
49495
  resolved,
49421
- contents: "contents" in result ? result.contents : void 0
49496
+ contents: "contents" in result ? result.contents : undefined
49422
49497
  };
49423
49498
  };
49424
49499
  const worker = new WorkerWithFallback(
@@ -49516,7 +49591,7 @@ const lessProcessor = (maxWorkers) => {
49516
49591
  let result;
49517
49592
  const optionsWithoutAdditionalData = {
49518
49593
  ...options,
49519
- additionalData: void 0
49594
+ additionalData: undefined
49520
49595
  };
49521
49596
  try {
49522
49597
  result = await worker.run(
@@ -49614,7 +49689,7 @@ const stylProcessor = (maxWorkers) => {
49614
49689
  );
49615
49690
  const optionsWithoutAdditionalData = {
49616
49691
  ...options,
49617
- additionalData: void 0
49692
+ additionalData: undefined
49618
49693
  };
49619
49694
  try {
49620
49695
  const { code, map: map2, deps } = await worker.run(
@@ -49640,7 +49715,7 @@ const stylProcessor = (maxWorkers) => {
49640
49715
  };
49641
49716
  };
49642
49717
  function formatStylusSourceMap(mapBefore, root) {
49643
- if (!mapBefore) return void 0;
49718
+ if (!mapBefore) return undefined;
49644
49719
  const map2 = { ...mapBefore };
49645
49720
  const resolveFromRoot = (p) => normalizePath$3(path$d.resolve(root, p));
49646
49721
  if (map2.file) {
@@ -49700,8 +49775,8 @@ const createPreprocessorWorkerController = (maxWorkers) => {
49700
49775
  };
49701
49776
  };
49702
49777
  const normalizeMaxWorkers = (maxWorker) => {
49703
- if (maxWorker === void 0) return 0;
49704
- if (maxWorker === true) return void 0;
49778
+ if (maxWorker === undefined) return 0;
49779
+ if (maxWorker === true) return undefined;
49705
49780
  return maxWorker;
49706
49781
  };
49707
49782
  const preprocessorSet = /* @__PURE__ */ new Set([
@@ -49760,7 +49835,7 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49760
49835
  minify: config.isProduction && !!config.build.cssMinify,
49761
49836
  sourceMap: config.command === "build" ? !!config.build.sourcemap : config.css.devSourcemap,
49762
49837
  analyzeDependencies: true,
49763
- cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true : void 0
49838
+ cssModules: cssModuleRE.test(id) ? config.css.lightningcss?.cssModules ?? true : undefined
49764
49839
  });
49765
49840
  } catch (e) {
49766
49841
  e.message = `[lightningcss] ${e.message}`;
@@ -49774,6 +49849,16 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49774
49849
  }
49775
49850
  throw e;
49776
49851
  }
49852
+ for (const warning of res.warnings) {
49853
+ let msg = `[vite:css][lightningcss] ${warning.message}`;
49854
+ msg += `
49855
+ ${generateCodeFrame(src, {
49856
+ line: warning.loc.line,
49857
+ column: warning.loc.column - 1
49858
+ // 1-based
49859
+ })}`;
49860
+ environment.logger.warn(colors$1.yellow(msg));
49861
+ }
49777
49862
  let css = decoder.decode(res.code);
49778
49863
  for (const dep of res.dependencies) {
49779
49864
  switch (dep.type) {
@@ -49817,7 +49902,7 @@ async function compileLightningCSS(id, src, environment, urlReplacer) {
49817
49902
  }
49818
49903
  return {
49819
49904
  code: css,
49820
- map: "map" in res ? res.map?.toString() : void 0,
49905
+ map: "map" in res ? res.map?.toString() : undefined,
49821
49906
  deps,
49822
49907
  modules
49823
49908
  };
@@ -49898,7 +49983,7 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
49898
49983
  return `${libOptions.fileName}.css`;
49899
49984
  }
49900
49985
  const packageJson = findNearestPackageData(root, packageCache)?.data;
49901
- const name = packageJson ? getPkgName(packageJson.name) : void 0;
49986
+ const name = packageJson ? getPkgName(packageJson.name) : undefined;
49902
49987
  if (!name)
49903
49988
  throw new Error(
49904
49989
  'Name in package.json is required if option "build.lib.cssFileName" is not provided.'
@@ -50036,7 +50121,7 @@ function buildImportAnalysisPlugin(config) {
50036
50121
  importer,
50037
50122
  source
50038
50123
  );
50039
- this.error(message, showCodeFrame ? e.idx : void 0);
50124
+ this.error(message, showCodeFrame ? e.idx : undefined);
50040
50125
  }
50041
50126
  if (!imports.length) {
50042
50127
  return null;
@@ -50233,7 +50318,7 @@ function buildImportAnalysisPlugin(config) {
50233
50318
  }
50234
50319
  const deps = /* @__PURE__ */ new Set();
50235
50320
  let hasRemovedPureCssChunk = false;
50236
- let normalizedFile = void 0;
50321
+ let normalizedFile = undefined;
50237
50322
  if (url) {
50238
50323
  normalizedFile = path$d.posix.join(
50239
50324
  path$d.posix.dirname(chunk.fileName),
@@ -50285,7 +50370,7 @@ function buildImportAnalysisPlugin(config) {
50285
50370
  // we still need to pass these deps to the preload helper in dynamic imports.
50286
50371
  [...deps].filter((d) => d.endsWith(".css"))
50287
50372
  ) : [...deps] : [];
50288
- const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : void 0;
50373
+ const resolveDependencies = modulePreload ? modulePreload.resolveDependencies : undefined;
50289
50374
  if (resolveDependencies && normalizedFile) {
50290
50375
  const cssDeps = [];
50291
50376
  const otherDeps = [];
@@ -50474,7 +50559,7 @@ function ssrManifestPlugin() {
50474
50559
  this.emitFile({
50475
50560
  fileName: typeof config.build.ssrManifest === "string" ? config.build.ssrManifest : ".vite/ssr-manifest.json",
50476
50561
  type: "asset",
50477
- source: JSON.stringify(sortObjectKeys(ssrManifest), void 0, 2)
50562
+ source: JSON.stringify(sortObjectKeys(ssrManifest), undefined, 2)
50478
50563
  });
50479
50564
  }
50480
50565
  };
@@ -50557,12 +50642,12 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer) {
50557
50642
  const deprecatedPolyfillModulePreload = raw.polyfillModulePreload;
50558
50643
  const { polyfillModulePreload, ...rest } = raw;
50559
50644
  raw = rest;
50560
- if (deprecatedPolyfillModulePreload !== void 0) {
50645
+ if (deprecatedPolyfillModulePreload !== undefined) {
50561
50646
  logger.warn(
50562
50647
  "polyfillModulePreload is deprecated. Use modulePreload.polyfill instead."
50563
50648
  );
50564
50649
  }
50565
- if (deprecatedPolyfillModulePreload === false && raw.modulePreload === void 0) {
50650
+ if (deprecatedPolyfillModulePreload === false && raw.modulePreload === undefined) {
50566
50651
  raw.modulePreload = { polyfill: false };
50567
50652
  }
50568
50653
  const merged = mergeWithDefaults(
@@ -50619,7 +50704,7 @@ async function resolveBuildPlugins(config) {
50619
50704
  ],
50620
50705
  post: [
50621
50706
  buildImportAnalysisPlugin(config),
50622
- ...config.esbuild !== false ? [buildEsbuildPlugin(config)] : [],
50707
+ buildEsbuildPlugin(),
50623
50708
  terserPlugin(config),
50624
50709
  ...!config.isWorker ? [manifestPlugin(), ssrManifestPlugin(), buildReporterPlugin(config)] : [],
50625
50710
  buildLoadFallbackPlugin()
@@ -50682,7 +50767,7 @@ async function buildEnvironment(environment) {
50682
50767
  );
50683
50768
  const rollupOptions = {
50684
50769
  preserveEntrySignatures: ssr ? "allow-extension" : libOptions ? "strict" : false,
50685
- cache: options.watch ? void 0 : false,
50770
+ cache: options.watch ? undefined : false,
50686
50771
  ...options.rollupOptions,
50687
50772
  output: options.rollupOptions.output,
50688
50773
  input,
@@ -50724,7 +50809,7 @@ file: ${colors$1.cyan(
50724
50809
  ` + colors$1.yellow(normalizeCodeFrame(e.frame));
50725
50810
  }
50726
50811
  e.message = msg;
50727
- if (stackOnly !== void 0) {
50812
+ if (stackOnly !== undefined) {
50728
50813
  e.stack = `${e.message}
50729
50814
  ${stackOnly}`;
50730
50815
  }
@@ -50767,8 +50852,8 @@ ${stackOnly}`;
50767
50852
  format,
50768
50853
  exports: "auto",
50769
50854
  sourcemap: options.sourcemap,
50770
- name: libOptions ? libOptions.name : void 0,
50771
- hoistTransitiveImports: libOptions ? false : void 0,
50855
+ name: libOptions ? libOptions.name : undefined,
50856
+ hoistTransitiveImports: libOptions ? false : undefined,
50772
50857
  // es2015 enables `generatedCode.symbols`
50773
50858
  // - #764 add `Symbol.toStringTag` when build es module into cjs chunk
50774
50859
  // - #1048 add `Symbol.toStringTag` for module default export
@@ -50866,7 +50951,7 @@ build started...`));
50866
50951
  logger.error(
50867
50952
  `${colors$1.red("x")} Build failed in ${displayTime(Date.now() - startTime)}`
50868
50953
  );
50869
- startTime = void 0;
50954
+ startTime = undefined;
50870
50955
  }
50871
50956
  throw e;
50872
50957
  } finally {
@@ -51592,7 +51677,7 @@ function createDepsOptimizer(environment) {
51592
51677
  devToScanEnvironment(environment)
51593
51678
  );
51594
51679
  const deps = await discover.result;
51595
- discover = void 0;
51680
+ discover = undefined;
51596
51681
  const manuallyIncluded = Object.keys(manuallyIncludedDepsInfo);
51597
51682
  discoveredDepsWhileScanning.push(
51598
51683
  ...Object.keys(metadata.discovered).filter(
@@ -51610,7 +51695,7 @@ function createDepsOptimizer(environment) {
51610
51695
  if (!holdUntilCrawlEnd) {
51611
51696
  optimizationResult.result.then((result) => {
51612
51697
  if (!waitingForCrawlEnd) return;
51613
- optimizationResult = void 0;
51698
+ optimizationResult = undefined;
51614
51699
  runOptimizer(result);
51615
51700
  });
51616
51701
  }
@@ -51618,7 +51703,7 @@ function createDepsOptimizer(environment) {
51618
51703
  logger.error(e.stack || e.message);
51619
51704
  } finally {
51620
51705
  resolve();
51621
- depsOptimizer.scanProcessing = void 0;
51706
+ depsOptimizer.scanProcessing = undefined;
51622
51707
  }
51623
51708
  })();
51624
51709
  });
@@ -51645,7 +51730,7 @@ function createDepsOptimizer(environment) {
51645
51730
  async function runOptimizer(preRunResult) {
51646
51731
  const isRerun = firstRunCalled;
51647
51732
  firstRunCalled = true;
51648
- enqueuedRerun = void 0;
51733
+ enqueuedRerun = undefined;
51649
51734
  if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
51650
51735
  if (closed) {
51651
51736
  currentlyProcessing = false;
@@ -51663,7 +51748,7 @@ function createDepsOptimizer(environment) {
51663
51748
  startNextDiscoveredBatch();
51664
51749
  optimizationResult = runOptimizeDeps(environment, knownDeps);
51665
51750
  processingResult = await optimizationResult.result;
51666
- optimizationResult = void 0;
51751
+ optimizationResult = undefined;
51667
51752
  }
51668
51753
  if (closed) {
51669
51754
  currentlyProcessing = false;
@@ -51702,7 +51787,7 @@ function createDepsOptimizer(environment) {
51702
51787
  discovered.browserHash = optimized.browserHash;
51703
51788
  discovered.fileHash = optimized.fileHash;
51704
51789
  discovered.needsInterop = optimized.needsInterop;
51705
- discovered.processing = void 0;
51790
+ discovered.processing = undefined;
51706
51791
  }
51707
51792
  }
51708
51793
  if (isRerun) {
@@ -51720,7 +51805,7 @@ function createDepsOptimizer(environment) {
51720
51805
  if (!debug$1) {
51721
51806
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
51722
51807
  newDepsToLogHandle = setTimeout(() => {
51723
- newDepsToLogHandle = void 0;
51808
+ newDepsToLogHandle = undefined;
51724
51809
  logNewlyDiscoveredDeps();
51725
51810
  if (warnAboutMissedDependencies) {
51726
51811
  logDiscoveredDepsWhileScanning();
@@ -51752,7 +51837,7 @@ function createDepsOptimizer(environment) {
51752
51837
  await commitProcessing();
51753
51838
  if (!debug$1) {
51754
51839
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
51755
- newDepsToLogHandle = void 0;
51840
+ newDepsToLogHandle = undefined;
51756
51841
  logNewlyDiscoveredDeps();
51757
51842
  if (warnAboutMissedDependencies) {
51758
51843
  logDiscoveredDepsWhileScanning();
@@ -51855,12 +51940,12 @@ ${e.stack}`),
51855
51940
  });
51856
51941
  }
51857
51942
  function debouncedProcessing(timeout = debounceMs) {
51858
- enqueuedRerun = void 0;
51943
+ enqueuedRerun = undefined;
51859
51944
  if (debounceProcessingHandle) clearTimeout(debounceProcessingHandle);
51860
51945
  if (newDepsToLogHandle) clearTimeout(newDepsToLogHandle);
51861
- newDepsToLogHandle = void 0;
51946
+ newDepsToLogHandle = undefined;
51862
51947
  debounceProcessingHandle = setTimeout(() => {
51863
- debounceProcessingHandle = void 0;
51948
+ debounceProcessingHandle = undefined;
51864
51949
  enqueuedRerun = rerun;
51865
51950
  if (!currentlyProcessing) {
51866
51951
  enqueuedRerun();
@@ -51876,7 +51961,7 @@ ${e.stack}`),
51876
51961
  await depsOptimizer.scanProcessing;
51877
51962
  if (optimizationResult && !options.noDiscovery) {
51878
51963
  const afterScanResult = optimizationResult.result;
51879
- optimizationResult = void 0;
51964
+ optimizationResult = undefined;
51880
51965
  const result = await afterScanResult;
51881
51966
  currentlyProcessing = false;
51882
51967
  const crawlDeps = Object.keys(metadata.discovered);
@@ -51980,7 +52065,7 @@ function findInteropMismatches(discovered, optimized) {
51980
52065
  const needsInteropMismatch = [];
51981
52066
  for (const dep in discovered) {
51982
52067
  const discoveredDepInfo = discovered[dep];
51983
- if (discoveredDepInfo.needsInterop === void 0) continue;
52068
+ if (discoveredDepInfo.needsInterop === undefined) continue;
51984
52069
  const depInfo = optimized[dep];
51985
52070
  if (!depInfo) continue;
51986
52071
  if (depInfo.needsInterop !== discoveredDepInfo.needsInterop) {
@@ -52380,12 +52465,30 @@ function fileToUrl(file, root) {
52380
52465
  }
52381
52466
  async function mapFiles(files, root) {
52382
52467
  if (!files.length) return [];
52383
- return await glob(files, {
52384
- absolute: true,
52385
- cwd: root,
52386
- expandDirectories: false,
52387
- ignore: ["**/.git/**", "**/node_modules/**"]
52388
- });
52468
+ const result = [];
52469
+ const globs = [];
52470
+ for (const file of files) {
52471
+ if (isDynamicPattern(file)) {
52472
+ globs.push(file);
52473
+ } else {
52474
+ if (path$d.isAbsolute(file)) {
52475
+ result.push(file);
52476
+ } else {
52477
+ result.push(path$d.resolve(root, file));
52478
+ }
52479
+ }
52480
+ }
52481
+ if (globs.length) {
52482
+ result.push(
52483
+ ...await glob(globs, {
52484
+ absolute: true,
52485
+ cwd: root,
52486
+ expandDirectories: false,
52487
+ ignore: ["**/.git/**", "**/node_modules/**"]
52488
+ })
52489
+ );
52490
+ }
52491
+ return result;
52389
52492
  }
52390
52493
 
52391
52494
  class DevEnvironment extends BaseEnvironment {
@@ -52439,7 +52542,7 @@ class DevEnvironment extends BaseEnvironment {
52439
52542
  this._pendingRequests = /* @__PURE__ */ new Map();
52440
52543
  this.moduleGraph = new EnvironmentModuleGraph(
52441
52544
  name,
52442
- (url) => this.pluginContainer.resolveId(url, void 0)
52545
+ (url) => this.pluginContainer.resolveId(url, undefined)
52443
52546
  );
52444
52547
  this._crawlEndFinder = setupOnCrawlEnd();
52445
52548
  this._remoteRunnerOptions = context.remoteRunner ?? {};
@@ -52459,7 +52562,7 @@ class DevEnvironment extends BaseEnvironment {
52459
52562
  if (context.depsOptimizer) {
52460
52563
  this.depsOptimizer = context.depsOptimizer;
52461
52564
  } else if (isDepOptimizationDisabled(optimizeDeps)) {
52462
- this.depsOptimizer = void 0;
52565
+ this.depsOptimizer = undefined;
52463
52566
  } else {
52464
52567
  this.depsOptimizer = (optimizeDeps.noDiscovery ? createExplicitDepsOptimizer : createDepsOptimizer)(this);
52465
52568
  }
@@ -52814,14 +52917,21 @@ async function preview(inlineConfig = {}) {
52814
52917
  const options = config.preview;
52815
52918
  const logger = config.logger;
52816
52919
  const closeHttpServer = createServerCloseFn(httpServer);
52920
+ let closeServerPromise;
52921
+ const closeServer = async () => {
52922
+ teardownSIGTERMListener(closeServerAndExit);
52923
+ await closeHttpServer();
52924
+ server.resolvedUrls = null;
52925
+ };
52817
52926
  const server = {
52818
52927
  config,
52819
52928
  middlewares: app,
52820
52929
  httpServer,
52821
52930
  async close() {
52822
- teardownSIGTERMListener(closeServerAndExit);
52823
- await closeHttpServer();
52824
- server.resolvedUrls = null;
52931
+ if (!closeServerPromise) {
52932
+ closeServerPromise = closeServer();
52933
+ }
52934
+ return closeServerPromise;
52825
52935
  },
52826
52936
  resolvedUrls: null,
52827
52937
  printUrls() {
@@ -52839,7 +52949,7 @@ async function preview(inlineConfig = {}) {
52839
52949
  try {
52840
52950
  await server.close();
52841
52951
  } finally {
52842
- process.exitCode ??= exitCode ? 128 + exitCode : void 0;
52952
+ process.exitCode ??= exitCode ? 128 + exitCode : undefined;
52843
52953
  process.exit();
52844
52954
  }
52845
52955
  };
@@ -52925,7 +53035,7 @@ function resolveSSROptions(ssr, preserveSymlinks) {
52925
53035
  const defaults = mergeWithDefaults(ssrConfigDefaults, {
52926
53036
  optimizeDeps: { esbuildOptions: { preserveSymlinks } }
52927
53037
  });
52928
- return mergeWithDefaults(defaults, ssr ?? {});
53038
+ return mergeWithDefaults(defaults, ssr);
52929
53039
  }
52930
53040
 
52931
53041
  const debug = createDebugger("vite:config", { depth: 10 });
@@ -52949,7 +53059,7 @@ const configDefaults = Object.freeze({
52949
53059
  // preTransformRequests
52950
53060
  /** @experimental */
52951
53061
  sourcemap: { js: true },
52952
- sourcemapIgnoreList: void 0
53062
+ sourcemapIgnoreList: undefined
52953
53063
  // createEnvironment
52954
53064
  // recoverable
52955
53065
  // moduleRunnerTransform
@@ -52974,7 +53084,7 @@ const configDefaults = Object.freeze({
52974
53084
  // mode
52975
53085
  plugins: [],
52976
53086
  html: {
52977
- cspNonce: void 0
53087
+ cspNonce: undefined
52978
53088
  },
52979
53089
  css: cssConfigDefaults,
52980
53090
  json: {
@@ -52982,7 +53092,7 @@ const configDefaults = Object.freeze({
52982
53092
  stringify: "auto"
52983
53093
  },
52984
53094
  // esbuild
52985
- assetsInclude: void 0,
53095
+ assetsInclude: undefined,
52986
53096
  /** @experimental */
52987
53097
  builder: builderOptionsDefaults,
52988
53098
  server: serverConfigDefaults,
@@ -52999,25 +53109,25 @@ const configDefaults = Object.freeze({
52999
53109
  /** @experimental */
53000
53110
  experimental: {
53001
53111
  importGlobRestoreExtension: false,
53002
- renderBuiltUrl: void 0,
53112
+ renderBuiltUrl: undefined,
53003
53113
  hmrPartialAccept: false,
53004
53114
  skipSsrTransform: false
53005
53115
  },
53006
53116
  future: {
53007
- removePluginHookHandleHotUpdate: void 0,
53008
- removePluginHookSsrArgument: void 0,
53009
- removeServerModuleGraph: void 0,
53010
- removeServerHot: void 0,
53011
- removeServerTransformRequest: void 0,
53012
- removeSsrLoadModule: void 0
53117
+ removePluginHookHandleHotUpdate: undefined,
53118
+ removePluginHookSsrArgument: undefined,
53119
+ removeServerModuleGraph: undefined,
53120
+ removeServerHot: undefined,
53121
+ removeServerTransformRequest: undefined,
53122
+ removeSsrLoadModule: undefined
53013
53123
  },
53014
53124
  legacy: {
53015
53125
  proxySsrExternalModules: false
53016
53126
  },
53017
53127
  logLevel: "info",
53018
- customLogger: void 0,
53128
+ customLogger: undefined,
53019
53129
  clearScreen: true,
53020
- envDir: void 0,
53130
+ envDir: undefined,
53021
53131
  envPrefix: "VITE_",
53022
53132
  worker: {
53023
53133
  format: "iife",
@@ -53052,7 +53162,7 @@ function resolveDevEnvironmentOptions(dev, environmentName, consumer, skipSsrTra
53052
53162
  preTransformRequests: consumer === "client",
53053
53163
  createEnvironment: environmentName === "client" ? defaultCreateClientDevEnvironment : defaultCreateDevEnvironment,
53054
53164
  recoverable: consumer === "client",
53055
- moduleRunnerTransform: skipSsrTransform !== void 0 && consumer === "server" ? skipSsrTransform : consumer === "server"
53165
+ moduleRunnerTransform: skipSsrTransform !== undefined && consumer === "server" ? skipSsrTransform : consumer === "server"
53056
53166
  },
53057
53167
  dev ?? {}
53058
53168
  );
@@ -53102,8 +53212,8 @@ function getDefaultEnvironmentOptions(config) {
53102
53212
  resolve: {
53103
53213
  ...config.resolve,
53104
53214
  // mainFields and conditions are not inherited
53105
- mainFields: void 0,
53106
- conditions: void 0
53215
+ mainFields: undefined,
53216
+ conditions: undefined
53107
53217
  },
53108
53218
  dev: config.dev,
53109
53219
  build: config.build
@@ -53143,8 +53253,8 @@ function resolveEnvironmentResolveOptions(resolve, alias, preserveSymlinks, logg
53143
53253
  const resolvedResolve = mergeWithDefaults(
53144
53254
  {
53145
53255
  ...configDefaults.resolve,
53146
- mainFields: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
53147
- conditions: consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
53256
+ mainFields: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_MAIN_FIELDS : DEFAULT_SERVER_MAIN_FIELDS,
53257
+ conditions: consumer === undefined || consumer === "client" || isSsrTargetWebworkerEnvironment ? DEFAULT_CLIENT_CONDITIONS : DEFAULT_SERVER_CONDITIONS.filter((c) => c !== "browser"),
53148
53258
  enableBuiltinNoExternalCheck: !!isSsrTargetWebworkerEnvironment
53149
53259
  },
53150
53260
  resolve ?? {}
@@ -53180,14 +53290,14 @@ function resolveResolveOptions(resolve, logger) {
53180
53290
  alias,
53181
53291
  preserveSymlinks,
53182
53292
  logger,
53183
- void 0
53293
+ undefined
53184
53294
  );
53185
53295
  }
53186
53296
  function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, consumer) {
53187
53297
  return mergeWithDefaults(
53188
53298
  {
53189
53299
  ...configDefaults.optimizeDeps,
53190
- disabled: void 0,
53300
+ disabled: undefined,
53191
53301
  // do not set here to avoid deprecation warning
53192
53302
  noDiscovery: consumer !== "client",
53193
53303
  esbuildOptions: {
@@ -53197,7 +53307,7 @@ function resolveDepOptimizationOptions(optimizeDeps, preserveSymlinks, consumer)
53197
53307
  optimizeDeps ?? {}
53198
53308
  );
53199
53309
  }
53200
- async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig = void 0, patchPlugins = void 0) {
53310
+ async function resolveConfig(inlineConfig, command, defaultMode = "development", defaultNodeEnv = "development", isPreview = false, patchConfig = undefined, patchPlugins = undefined) {
53201
53311
  let config = inlineConfig;
53202
53312
  let configFileDependencies = [];
53203
53313
  let mode = inlineConfig.mode || defaultMode;
@@ -53291,7 +53401,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53291
53401
  configEnvironmentsSsr.resolve ?? {}
53292
53402
  );
53293
53403
  }
53294
- if (config.build?.ssrEmitAssets !== void 0) {
53404
+ if (config.build?.ssrEmitAssets !== undefined) {
53295
53405
  configEnvironmentsSsr ??= {};
53296
53406
  configEnvironmentsSsr.build ??= {};
53297
53407
  configEnvironmentsSsr.build.emitAssets = config.build.ssrEmitAssets;
@@ -53312,12 +53422,12 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53312
53422
  ...defaultEnvironmentOptions,
53313
53423
  dev: {
53314
53424
  ...defaultEnvironmentOptions.dev,
53315
- createEnvironment: void 0,
53316
- warmup: void 0
53425
+ createEnvironment: undefined,
53426
+ warmup: undefined
53317
53427
  },
53318
53428
  build: {
53319
53429
  ...defaultEnvironmentOptions.build,
53320
- createEnvironment: void 0
53430
+ createEnvironment: undefined
53321
53431
  }
53322
53432
  };
53323
53433
  for (const name of Object.keys(config.environments)) {
@@ -53352,13 +53462,13 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53352
53462
  const resolvedDevEnvironmentOptions = resolveDevEnvironmentOptions(
53353
53463
  config.dev,
53354
53464
  // default environment options
53355
- void 0,
53356
- void 0
53465
+ undefined,
53466
+ undefined
53357
53467
  );
53358
53468
  const resolvedBuildOptions = resolveBuildEnvironmentOptions(
53359
53469
  config.build ?? {},
53360
53470
  logger,
53361
- void 0
53471
+ undefined
53362
53472
  );
53363
53473
  const patchedConfigSsr = {
53364
53474
  ...config.ssr,
@@ -53458,7 +53568,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53458
53568
  };
53459
53569
  const base = withTrailingSlash(resolvedBase);
53460
53570
  resolved = {
53461
- configFile: configFile ? normalizePath$3(configFile) : void 0,
53571
+ configFile: configFile ? normalizePath$3(configFile) : undefined,
53462
53572
  configFileDependencies: configFileDependencies.map(
53463
53573
  (name) => normalizePath$3(path$d.resolve(name))
53464
53574
  ),
@@ -53513,8 +53623,8 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
53513
53623
  dev: resolvedDevEnvironmentOptions,
53514
53624
  build: resolvedBuildOptions,
53515
53625
  environments: resolvedEnvironments,
53516
- getSortedPlugins: void 0,
53517
- getSortedPluginHooks: void 0,
53626
+ getSortedPlugins: undefined,
53627
+ getSortedPluginHooks: undefined,
53518
53628
  /**
53519
53629
  * createResolver is deprecated. It only works for the client and ssr
53520
53630
  * environments. The `aliasOnly` option is also not being used any more
@@ -53841,7 +53951,7 @@ async function bundleConfigFile(fileName, isESM) {
53841
53951
  const _require = createRequire$1(import.meta.url);
53842
53952
  async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
53843
53953
  if (isESM) {
53844
- let nodeModulesDir = typeof process.versions.deno === "string" ? void 0 : findNearestNodeModules(path$d.dirname(fileName));
53954
+ let nodeModulesDir = typeof process.versions.deno === "string" ? undefined : findNearestNodeModules(path$d.dirname(fileName));
53845
53955
  if (nodeModulesDir) {
53846
53956
  try {
53847
53957
  await fsp.mkdir(path$d.resolve(nodeModulesDir, ".vite-temp/"), {
@@ -53849,7 +53959,7 @@ async function loadConfigFromBundledFile(fileName, bundledCode, isESM) {
53849
53959
  });
53850
53960
  } catch (e) {
53851
53961
  if (e.code === "EACCES") {
53852
- nodeModulesDir = void 0;
53962
+ nodeModulesDir = undefined;
53853
53963
  } else {
53854
53964
  throw e;
53855
53965
  }
@@ -53915,14 +54025,14 @@ async function runConfigEnvironmentHook(environments, plugins, configEnv, isSsrT
53915
54025
  }
53916
54026
  function optimizeDepsDisabledBackwardCompatibility(resolved, optimizeDeps, optimizeDepsPath = "") {
53917
54027
  const optimizeDepsDisabled = optimizeDeps.disabled;
53918
- if (optimizeDepsDisabled !== void 0) {
54028
+ if (optimizeDepsDisabled !== undefined) {
53919
54029
  if (optimizeDepsDisabled === true || optimizeDepsDisabled === "dev") {
53920
54030
  const commonjsOptionsInclude = resolved.build.commonjsOptions.include;
53921
54031
  const commonjsPluginDisabled = Array.isArray(commonjsOptionsInclude) && commonjsOptionsInclude.length === 0;
53922
54032
  optimizeDeps.noDiscovery = true;
53923
- optimizeDeps.include = void 0;
54033
+ optimizeDeps.include = undefined;
53924
54034
  if (commonjsPluginDisabled) {
53925
- resolved.build.commonjsOptions.include = void 0;
54035
+ resolved.build.commonjsOptions.include = undefined;
53926
54036
  }
53927
54037
  resolved.logger.warn(
53928
54038
  colors$1.yellow(`(!) Experimental ${optimizeDepsPath}optimizeDeps.disabled and deps pre-bundling during build were removed in Vite 5.1.