vite 8.0.10 → 8.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import "@vite/env";
2
- //#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
2
+ //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/non-secure/index.js
3
3
  let urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
4
4
  let nanoid = (size = 21) => {
5
5
  let id = "";
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.127.0/helpers/typeof.js
11
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
12
12
  function _typeof(o) {
13
13
  "@babel/helpers - typeof";
14
14
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
@@ -18,7 +18,7 @@ function _typeof(o) {
18
18
  }, _typeof(o);
19
19
  }
20
20
  //#endregion
21
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPrimitive.js
21
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
22
22
  function toPrimitive(t, r) {
23
23
  if ("object" != _typeof(t) || !t) return t;
24
24
  var e = t[Symbol.toPrimitive];
@@ -30,13 +30,13 @@ function toPrimitive(t, r) {
30
30
  return ("string" === r ? String : Number)(t);
31
31
  }
32
32
  //#endregion
33
- //#region \0@oxc-project+runtime@0.127.0/helpers/toPropertyKey.js
33
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
34
34
  function toPropertyKey(t) {
35
35
  var i = toPrimitive(t, "string");
36
36
  return "symbol" == _typeof(i) ? i : i + "";
37
37
  }
38
38
  //#endregion
39
- //#region \0@oxc-project+runtime@0.127.0/helpers/defineProperty.js
39
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
40
40
  function _defineProperty(e, r, t) {
41
41
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
42
42
  value: t,
@@ -398,7 +398,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
398
398
  return {
399
399
  async connect({ onMessage, onDisconnection }) {
400
400
  const socket = options.createConnection();
401
- socket.addEventListener("message", async ({ data }) => {
401
+ socket.addEventListener("message", ({ data }) => {
402
402
  onMessage(JSON.parse(data));
403
403
  });
404
404
  let isOpened = socket.readyState === socket.OPEN;
@@ -407,7 +407,7 @@ const createWebSocketModuleRunnerTransport = (options) => {
407
407
  isOpened = true;
408
408
  resolve();
409
409
  }, { once: true });
410
- socket.addEventListener("close", async () => {
410
+ socket.addEventListener("close", () => {
411
411
  if (!isOpened) {
412
412
  reject(/* @__PURE__ */ new Error("WebSocket closed without opened."));
413
413
  return;
@@ -1,6 +1,6 @@
1
1
  import { i as __require, t as __commonJSMin } from "./chunk.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/fs.js
3
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/fs.js
4
4
  var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.getFileSystem = getFileSystem;
@@ -22,7 +22,7 @@ var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
22
22
  }
23
23
  }));
24
24
  //#endregion
25
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/unquote.js
25
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/unquote.js
26
26
  var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.default = unquote;
@@ -35,7 +35,7 @@ var require_unquote = /* @__PURE__ */ __commonJSMin(((exports) => {
35
35
  }
36
36
  }));
37
37
  //#endregion
38
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.10/node_modules/icss-utils/src/replaceValueSymbols.js
38
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/replaceValueSymbols.js
39
39
  var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40
40
  const matchValueName = /[$]?[\w-]+/g;
41
41
  const replaceValueSymbols = (value, replacements) => {
@@ -52,7 +52,7 @@ var require_replaceValueSymbols = /* @__PURE__ */ __commonJSMin(((exports, modul
52
52
  module.exports = replaceValueSymbols;
53
53
  }));
54
54
  //#endregion
55
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.10/node_modules/icss-utils/src/replaceSymbols.js
55
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/replaceSymbols.js
56
56
  var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
57
57
  const replaceValueSymbols = require_replaceValueSymbols();
58
58
  const replaceSymbols = (css, replacements) => {
@@ -65,7 +65,7 @@ var require_replaceSymbols = /* @__PURE__ */ __commonJSMin(((exports, module) =>
65
65
  module.exports = replaceSymbols;
66
66
  }));
67
67
  //#endregion
68
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.10/node_modules/icss-utils/src/extractICSS.js
68
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/extractICSS.js
69
69
  var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
70
70
  const importPattern = /^:import\(("[^"]*"|'[^']*'|[^"']+)\)$/;
71
71
  const balancedQuotes = /^("[^"]*"|'[^']*'|[^"']+)$/;
@@ -119,7 +119,7 @@ var require_extractICSS = /* @__PURE__ */ __commonJSMin(((exports, module) => {
119
119
  module.exports = extractICSS;
120
120
  }));
121
121
  //#endregion
122
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.10/node_modules/icss-utils/src/createICSSRules.js
122
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/createICSSRules.js
123
123
  var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) => {
124
124
  const createImports = (imports, postcss, mode = "rule") => {
125
125
  return Object.keys(imports).map((path) => {
@@ -163,7 +163,7 @@ var require_createICSSRules = /* @__PURE__ */ __commonJSMin(((exports, module) =
163
163
  module.exports = createICSSRules;
164
164
  }));
165
165
  //#endregion
166
- //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.10/node_modules/icss-utils/src/index.js
166
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.14/node_modules/icss-utils/src/index.js
167
167
  var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
168
168
  module.exports = {
169
169
  replaceValueSymbols: require_replaceValueSymbols(),
@@ -173,7 +173,7 @@ var require_src$4 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
173
173
  };
174
174
  }));
175
175
  //#endregion
176
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/Parser.js
176
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/Parser.js
177
177
  var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
178
178
  Object.defineProperty(exports, "__esModule", { value: true });
179
179
  exports.default = void 0;
@@ -241,7 +241,7 @@ var require_Parser = /* @__PURE__ */ __commonJSMin(((exports) => {
241
241
  exports.default = Parser;
242
242
  }));
243
243
  //#endregion
244
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/saveJSON.js
244
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/saveJSON.js
245
245
  var require_saveJSON = /* @__PURE__ */ __commonJSMin(((exports) => {
246
246
  Object.defineProperty(exports, "__esModule", { value: true });
247
247
  exports.default = saveJSON;
@@ -893,7 +893,7 @@ var require_lodash_camelcase = /* @__PURE__ */ __commonJSMin(((exports, module)
893
893
  module.exports = camelCase;
894
894
  }));
895
895
  //#endregion
896
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/localsConvention.js
896
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/localsConvention.js
897
897
  var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
898
898
  Object.defineProperty(exports, "__esModule", { value: true });
899
899
  exports.makeLocalsConventionReducer = makeLocalsConventionReducer;
@@ -933,7 +933,7 @@ var require_localsConvention = /* @__PURE__ */ __commonJSMin(((exports) => {
933
933
  }
934
934
  }));
935
935
  //#endregion
936
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/FileSystemLoader.js
936
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/FileSystemLoader.js
937
937
  var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
938
938
  Object.defineProperty(exports, "__esModule", { value: true });
939
939
  exports.default = void 0;
@@ -1018,7 +1018,7 @@ var require_FileSystemLoader = /* @__PURE__ */ __commonJSMin(((exports) => {
1018
1018
  exports.default = FileSystemLoader;
1019
1019
  }));
1020
1020
  //#endregion
1021
- //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.10/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1021
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1022
1022
  var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1023
1023
  const PERMANENT_MARKER = 2;
1024
1024
  const TEMPORARY_MARKER = 1;
@@ -1057,7 +1057,7 @@ var require_topologicalSort = /* @__PURE__ */ __commonJSMin(((exports, module) =
1057
1057
  module.exports = topologicalSort;
1058
1058
  }));
1059
1059
  //#endregion
1060
- //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.10/node_modules/postcss-modules-extract-imports/src/index.js
1060
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.14/node_modules/postcss-modules-extract-imports/src/index.js
1061
1061
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
1062
1062
  const topologicalSort = require_topologicalSort();
1063
1063
  const matchImports = /^(.+?)\s+from\s+(?:"([^"]+)"|'([^']+)'|(global))$/;
@@ -4563,7 +4563,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4563
4563
  module.exports = exports.default;
4564
4564
  }));
4565
4565
  //#endregion
4566
- //#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.10/node_modules/postcss-modules-local-by-default/src/index.js
4566
+ //#region ../../node_modules/.pnpm/postcss-modules-local-by-default@4.2.0_postcss@8.5.14/node_modules/postcss-modules-local-by-default/src/index.js
4567
4567
  var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4568
4568
  const selectorParser = require_dist();
4569
4569
  const valueParser = require_lib();
@@ -4961,7 +4961,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4961
4961
  module.exports.postcss = true;
4962
4962
  }));
4963
4963
  //#endregion
4964
- //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.10/node_modules/postcss-modules-scope/src/index.js
4964
+ //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.14/node_modules/postcss-modules-scope/src/index.js
4965
4965
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
4966
4966
  const selectorParser = require_dist();
4967
4967
  const hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -5141,7 +5141,7 @@ var require_string_hash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5141
5141
  module.exports = hash;
5142
5142
  }));
5143
5143
  //#endregion
5144
- //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.10/node_modules/postcss-modules-values/src/index.js
5144
+ //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.14/node_modules/postcss-modules-values/src/index.js
5145
5145
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5146
5146
  const ICSSUtils = require_src$4();
5147
5147
  const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
@@ -5228,7 +5228,7 @@ var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5228
5228
  module.exports.postcss = true;
5229
5229
  }));
5230
5230
  //#endregion
5231
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/scoping.js
5231
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/scoping.js
5232
5232
  var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5233
5233
  Object.defineProperty(exports, "__esModule", { value: true });
5234
5234
  exports.behaviours = void 0;
@@ -5290,7 +5290,7 @@ var require_scoping = /* @__PURE__ */ __commonJSMin(((exports) => {
5290
5290
  }
5291
5291
  }));
5292
5292
  //#endregion
5293
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/pluginFactory.js
5293
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/pluginFactory.js
5294
5294
  var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5295
5295
  Object.defineProperty(exports, "__esModule", { value: true });
5296
5296
  exports.makePlugin = makePlugin;
@@ -5364,7 +5364,7 @@ var require_pluginFactory = /* @__PURE__ */ __commonJSMin(((exports) => {
5364
5364
  }
5365
5365
  }));
5366
5366
  //#endregion
5367
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.10/node_modules/postcss-modules/build/index.js
5367
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/index.js
5368
5368
  var require_build = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5369
5369
  var _fs = __require("fs");
5370
5370
  var _fs2 = require_fs();
@@ -757,8 +757,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
757
757
  if (skipable && skipSourceless(line, index)) return;
758
758
  return insert(line, index, [genColumn]);
759
759
  }
760
- assert$2(sourceLine);
761
- assert$2(sourceColumn);
762
760
  const sourcesIndex = put(sources, source);
763
761
  const namesIndex = name ? put(names, name) : NO_NAME;
764
762
  if (sourcesIndex === sourcesContent.length) sourcesContent[sourcesIndex] = content != null ? content : null;
@@ -776,7 +774,6 @@ function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLin
776
774
  sourceColumn
777
775
  ]);
778
776
  }
779
- function assert$2(_val) {}
780
777
  function getIndex(arr, index) {
781
778
  for (let i = arr.length; i <= index; i++) arr[i] = [];
782
779
  return arr[index];
@@ -1088,11 +1085,11 @@ function getDate() {
1088
1085
  function init$1(debug) {
1089
1086
  debug.inspectOpts = Object.assign({}, inspectOpts);
1090
1087
  }
1091
- var require$1, colors$37, inspectOpts, humanize$1, createDebug, node_default;
1088
+ var require$1, colors$38, inspectOpts, humanize$1, createDebug, node_default;
1092
1089
  var init_node = __esmMin((() => {
1093
1090
  init_core();
1094
1091
  require$1 = createRequire(import.meta.url);
1095
- colors$37 = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
1092
+ colors$38 = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
1096
1093
  20,
1097
1094
  21,
1098
1095
  26,
@@ -1194,7 +1191,7 @@ var init_node = __esmMin((() => {
1194
1191
  } catch (_unused) {
1195
1192
  humanize$1 = humanize;
1196
1193
  }
1197
- createDebug = setup(useColors(), colors$37, log, load, save, formatArgs, init$1);
1194
+ createDebug = setup(useColors(), colors$38, log, load, save, formatArgs, init$1);
1198
1195
  createDebug.inspectOpts = inspectOpts;
1199
1196
  createDebug.formatters.o = function(v) {
1200
1197
  this.inspectOpts.colors = this.useColors;
@@ -2799,7 +2796,7 @@ function getTSConfigResolutionCache(config) {
2799
2796
  }
2800
2797
  return cache;
2801
2798
  }
2802
- async function reloadOnTsconfigChange(server, changedFile) {
2799
+ function reloadOnTsconfigChange(server, changedFile) {
2803
2800
  if (changedFile.endsWith(".json")) {
2804
2801
  const cache = getTSConfigResolutionCache(server.config);
2805
2802
  if (changedFile.endsWith("/tsconfig.json")) {
@@ -4510,7 +4507,7 @@ function throwFileNotFoundInOptimizedDep(id) {
4510
4507
  throw err;
4511
4508
  }
4512
4509
  //#endregion
4513
- //#region ../../node_modules/.pnpm/ufo@1.6.3/node_modules/ufo/dist/index.mjs
4510
+ //#region ../../node_modules/.pnpm/ufo@1.6.4/node_modules/ufo/dist/index.mjs
4514
4511
  const HASH_RE = /#/g;
4515
4512
  const AMPERSAND_RE = /&/g;
4516
4513
  const SLASH_RE = /\//g;
@@ -10829,6 +10826,7 @@ async function instantiateModule(url, runner, environment, fixStacktrace) {
10829
10826
  }
10830
10827
  }
10831
10828
  var SSRCompatModuleRunner = class extends ModuleRunner {
10829
+ environment;
10832
10830
  constructor(environment) {
10833
10831
  super({
10834
10832
  transport: createServerModuleRunnerTransport({ channel: environment.hot }),
@@ -10854,7 +10852,7 @@ var SSRCompatModuleRunner = class extends ModuleRunner {
10854
10852
  }
10855
10853
  };
10856
10854
  //#endregion
10857
- //#region ../../node_modules/.pnpm/periscopic@4.0.2/node_modules/periscopic/src/index.js
10855
+ //#region ../../node_modules/.pnpm/periscopic@4.0.3/node_modules/periscopic/src/index.js
10858
10856
  /**
10859
10857
  * @param {import('estree').Node} param
10860
10858
  * @returns {string[]}
@@ -11092,7 +11090,7 @@ async function ssrTransform(code, inMap, url, originalCode, options) {
11092
11090
  if (options?.json?.stringify && isJSONRequest(url)) return ssrTransformJSON(code, inMap);
11093
11091
  return ssrTransformScript(code, inMap, url, originalCode);
11094
11092
  }
11095
- async function ssrTransformJSON(code, inMap) {
11093
+ function ssrTransformJSON(code, inMap) {
11096
11094
  return {
11097
11095
  code: code.replace("export default", `${ssrModuleExportsKey}.default =`),
11098
11096
  map: inMap,
@@ -12460,6 +12458,7 @@ function convertToWatcherOptions(options) {
12460
12458
  };
12461
12459
  }
12462
12460
  var NoopWatcher = class extends EventEmitter {
12461
+ options;
12463
12462
  constructor(options) {
12464
12463
  super();
12465
12464
  this.options = options;
@@ -19553,7 +19552,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19553
19552
  };
19554
19553
  }));
19555
19554
  //#endregion
19556
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
19555
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.14_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/req.js
19557
19556
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19558
19557
  const { createRequire: createRequire$1 } = __require("node:module");
19559
19558
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
@@ -19595,7 +19594,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19595
19594
  module.exports = req;
19596
19595
  }));
19597
19596
  //#endregion
19598
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
19597
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.14_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/options.js
19599
19598
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19600
19599
  const req = require_req();
19601
19600
  /**
@@ -19629,7 +19628,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19629
19628
  module.exports = options;
19630
19629
  }));
19631
19630
  //#endregion
19632
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
19631
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.14_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/plugins.js
19633
19632
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19634
19633
  const req = require_req();
19635
19634
  /**
@@ -19683,7 +19682,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19683
19682
  module.exports = plugins;
19684
19683
  }));
19685
19684
  //#endregion
19686
- //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.10_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
19685
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.14_tsx@4.21.0_yaml@2.8.2/node_modules/postcss-load-config/src/index.js
19687
19686
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19688
19687
  const { resolve: resolve$3 } = __require("node:path");
19689
19688
  const config = require_src$1();
@@ -20432,7 +20431,7 @@ function cssPlugin(config) {
20432
20431
  },
20433
20432
  load: {
20434
20433
  filter: { id: CSS_LANGS_RE },
20435
- async handler(id) {
20434
+ handler(id) {
20436
20435
  if (urlRE$1.test(id)) {
20437
20436
  if (isModuleCSSRequest(id)) throw new Error(`?url is not supported with CSS modules. (tried to import ${JSON.stringify(id)})`);
20438
20437
  if (isBuild) {
@@ -20816,7 +20815,7 @@ function cssAnalysisPlugin(config) {
20816
20815
  include: CSS_LANGS_RE,
20817
20816
  exclude: [commonjsProxyRE, SPECIAL_QUERY_RE]
20818
20817
  } },
20819
- async handler(_, id) {
20818
+ handler(_, id) {
20820
20819
  const { moduleGraph } = this.environment;
20821
20820
  const thisModule = moduleGraph.getModuleById(id);
20822
20821
  if (thisModule) {
@@ -21145,7 +21144,7 @@ function combineSourcemapsIfExists(filename, map1, map2) {
21145
21144
  const viteHashUpdateMarker = "/*$vite$:1*/";
21146
21145
  const viteHashUpdateMarkerRE = /\/\*\$vite\$:\d+\*\//;
21147
21146
  async function finalizeCss(css, config) {
21148
- if (css.includes("@import") || css.includes("@charset")) css = await hoistAtRules(css);
21147
+ if (css.includes("@import") || css.includes("@charset")) css = hoistAtRules(css);
21149
21148
  if (config.build.cssMinify) css = await minifyCSS(css, config, false);
21150
21149
  css += viteHashUpdateMarker;
21151
21150
  return css;
@@ -21353,7 +21352,7 @@ function resolveMinifyCssEsbuildOptions(options) {
21353
21352
  }
21354
21353
  const atImportRE = /@import(?:\s*(?:url\([^)]*\)|"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
21355
21354
  const atCharsetRE = /@charset(?:\s*(?:"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
21356
- async function hoistAtRules(css) {
21355
+ function hoistAtRules(css) {
21357
21356
  const s = new MagicString(css);
21358
21357
  const cleanCss = emptyCssComments(css);
21359
21358
  let match;
@@ -22920,18 +22919,18 @@ function definePlugin(config) {
22920
22919
  };
22921
22920
  return {
22922
22921
  name: "vite:define",
22923
- transform: { async handler(code, id) {
22922
+ transform: { handler(code, id) {
22924
22923
  if (this.environment.config.consumer === "client") return;
22925
22924
  if (isHTMLRequest(id) || isCSSRequest(id) || isNonJsRequest(id) || config.assetsInclude(id)) return;
22926
22925
  const [define, pattern] = getPattern(this.environment);
22927
22926
  if (!pattern) return;
22928
22927
  pattern.lastIndex = 0;
22929
22928
  if (!pattern.test(code)) return;
22930
- return await replaceDefine(this.environment, code, id, define);
22929
+ return replaceDefine(this.environment, code, id, define);
22931
22930
  } }
22932
22931
  };
22933
22932
  }
22934
- async function replaceDefine(environment, code, id, define) {
22933
+ function replaceDefine(environment, code, id, define) {
22935
22934
  const result = transformSync(id, code, {
22936
22935
  lang: "js",
22937
22936
  sourceType: "module",
@@ -22988,13 +22987,13 @@ function clientInjectionsPlugin(config) {
22988
22987
  async buildStart() {
22989
22988
  injectConfigValues = await createClientConfigValueReplacer(config);
22990
22989
  },
22991
- async transform(code, id) {
22990
+ transform(code, id) {
22992
22991
  const ssr = this.environment.config.consumer === "server";
22993
22992
  const cleanId = cleanUrl(id);
22994
22993
  if (cleanId === normalizedClientEntry$1 || cleanId === normalizedEnvEntry$1) return getDefineReplacer(this)(injectConfigValues(code));
22995
22994
  else if (!ssr && code.includes("process.env.NODE_ENV")) {
22996
22995
  const nodeEnv = this.environment.config.define?.["process.env.NODE_ENV"] || JSON.stringify(process.env.NODE_ENV || config.mode);
22997
- return await replaceDefine(this.environment, code, id, {
22996
+ return replaceDefine(this.environment, code, id, {
22998
22997
  "process.env.NODE_ENV": nodeEnv,
22999
22998
  "global.process.env.NODE_ENV": nodeEnv,
23000
22999
  "globalThis.process.env.NODE_ENV": nodeEnv
@@ -23369,7 +23368,7 @@ function createDepsOptimizer(environment) {
23369
23368
  path: "*"
23370
23369
  });
23371
23370
  }
23372
- async function rerun() {
23371
+ function rerun() {
23373
23372
  const depsString = depsLogString(Object.keys(metadata.discovered));
23374
23373
  debug$9?.(import_picocolors.default.green(`new dependencies found: ${depsString}`));
23375
23374
  runOptimizer();
@@ -24738,7 +24737,7 @@ var DevEnvironment = class extends BaseEnvironment {
24738
24737
  });
24739
24738
  }
24740
24739
  });
24741
- this.hot.on("vite:invalidate", async ({ path, message, firstInvalidatedBy }, client) => {
24740
+ this.hot.on("vite:invalidate", ({ path, message, firstInvalidatedBy }, client) => {
24742
24741
  this.invalidateModule({
24743
24742
  path,
24744
24743
  message,
@@ -24869,7 +24868,7 @@ function setupOnCrawlEnd() {
24869
24868
  if (timeoutHandle) clearTimeout(timeoutHandle);
24870
24869
  timeoutHandle = setTimeout(callOnCrawlEndWhenIdle, callCrawlEndIfIdleAfterMs);
24871
24870
  }
24872
- async function callOnCrawlEndWhenIdle() {
24871
+ function callOnCrawlEndWhenIdle() {
24873
24872
  if (cancelled || registeredIds.size > 0) return;
24874
24873
  onCrawlEndPromiseWithResolvers.resolve();
24875
24874
  }
@@ -27163,6 +27162,7 @@ async function bundleWorkerEntry(config, id) {
27163
27162
  const workerEnvironment = new BuildEnvironment("client", await plugins(newBundleChain));
27164
27163
  await workerEnvironment.init();
27165
27164
  const chunkMetadataMap = new ChunkMetadataMap();
27165
+ const workerBuildTarget = workerEnvironment.config.build.target;
27166
27166
  const bundle = await rolldown({
27167
27167
  ...rollupOptions,
27168
27168
  input,
@@ -27170,6 +27170,14 @@ async function bundleWorkerEntry(config, id) {
27170
27170
  onLog(level, log) {
27171
27171
  onRollupLog(level, log, workerEnvironment);
27172
27172
  },
27173
+ transform: {
27174
+ target: workerBuildTarget === false ? void 0 : workerBuildTarget,
27175
+ ...rollupOptions.transform,
27176
+ define: {
27177
+ ...rollupOptions.transform?.define,
27178
+ "process.env.NODE_ENV": "process.env.NODE_ENV"
27179
+ }
27180
+ },
27173
27181
  moduleTypes: {
27174
27182
  ".css": "js",
27175
27183
  ...rollupOptions.moduleTypes
@@ -27360,7 +27368,7 @@ function webWorkerPlugin(config) {
27360
27368
  },
27361
27369
  transform: {
27362
27370
  filter: { id: workerFileRE },
27363
- async handler(raw, id) {
27371
+ handler(raw, id) {
27364
27372
  const workerFileMatch = workerFileRE.exec(id);
27365
27373
  if (workerFileMatch) {
27366
27374
  const workerType = workerFileMatch[1];
@@ -27995,7 +28003,7 @@ export default ${wasmHelperCode}
27995
28003
  },
27996
28004
  renderChunk: env.config.consumer === "server" ? {
27997
28005
  filter: { code: wasmInitUrlRE },
27998
- async handler(code, chunk, opts, meta) {
28006
+ handler(code, chunk, opts, meta) {
27999
28007
  const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, this.environment.config.isWorker);
28000
28008
  let match;
28001
28009
  let s;
@@ -28778,15 +28786,22 @@ function importGlobPlugin(config) {
28778
28786
  async handler(code, id) {
28779
28787
  const result = await transformGlobImport(code, id, config.root, (im, _, options) => this.resolve(im, id, options).then((i) => i?.id || im), config.experimental.importGlobRestoreExtension, config.logger);
28780
28788
  if (result) {
28781
- const allGlobs = result.matches.map((i) => i.globsResolved);
28782
28789
  if (!importGlobMaps.has(this.environment)) importGlobMaps.set(this.environment, /* @__PURE__ */ new Map());
28783
- const globMatchers = allGlobs.map((globs) => {
28790
+ const globMatchers = result.matches.map((i) => {
28784
28791
  const affirmed = [];
28785
28792
  const negated = [];
28786
- for (const glob of globs) if (glob[0] === "!") negated.push(glob.slice(1));
28793
+ for (const glob of i.globsResolved) if (glob[0] === "!") negated.push(glob.slice(1));
28787
28794
  else affirmed.push(glob);
28788
- const affirmedMatcher = picomatch(affirmed);
28789
- const negatedMatcher = picomatch(negated);
28795
+ const affirmedMatcher = picomatch(affirmed, {
28796
+ noextglob: true,
28797
+ dot: !!i.options.exhaustive,
28798
+ ignore: i.options.exhaustive ? [] : ["**/node_modules/**"]
28799
+ });
28800
+ const negatedMatcher = picomatch(negated, {
28801
+ noextglob: true,
28802
+ dot: !!i.options.exhaustive,
28803
+ ignore: i.options.exhaustive ? [] : ["**/node_modules/**"]
28804
+ });
28790
28805
  return (file) => {
28791
28806
  return (affirmed.length === 0 || affirmedMatcher(file)) && !(negated.length > 0 && negatedMatcher(file));
28792
28807
  };
@@ -29172,7 +29187,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
29172
29187
  };
29173
29188
  }
29174
29189
  //#endregion
29175
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/helpers.js
29190
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/helpers.js
29176
29191
  function notNullish(v) {
29177
29192
  return v != null;
29178
29193
  }
@@ -29180,7 +29195,7 @@ function isPrimitive(value) {
29180
29195
  return value === null || typeof value !== "function" && typeof value !== "object";
29181
29196
  }
29182
29197
  //#endregion
29183
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29198
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29184
29199
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
29185
29200
  function normalizeWindowsPath(input = "") {
29186
29201
  if (!input) return input;
@@ -29259,7 +29274,7 @@ const isAbsolute$2 = function(p) {
29259
29274
  return _IS_ABSOLUTE_RE.test(p);
29260
29275
  };
29261
29276
  //#endregion
29262
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/source-map.js
29277
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/source-map.js
29263
29278
  var comma = ",".charCodeAt(0);
29264
29279
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29265
29280
  var intToChar = new Uint8Array(64);
@@ -29546,7 +29561,7 @@ function parseSingleV8Stack(raw) {
29546
29561
  function parseStacktrace(stack, options = {}) {
29547
29562
  const { ignoreStackEntries = stackIgnorePatterns } = options;
29548
29563
  let stacks = !CHROME_IE_STACK_REGEXP.test(stack) ? parseFFOrSafariStackTrace(stack) : parseV8Stacktrace(stack);
29549
- const helperIndex = stacks.findLastIndex((s) => s.method === "__VITEST_HELPER__" || s.method === "async*__VITEST_HELPER__" || s.method === "async __VITEST_HELPER__");
29564
+ const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
29550
29565
  if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
29551
29566
  return stacks.map((stack) => {
29552
29567
  if (options.getUrlId) stack.file = options.getUrlId(stack.file);
@@ -29732,10 +29747,11 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29732
29747
  const isBuild = config.command === "build";
29733
29748
  const isBundled = config.isBundled;
29734
29749
  const isWorker = config.isWorker;
29735
- const buildPlugins = isBundled ? await (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
29750
+ const buildPlugins = isBundled ? (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
29736
29751
  pre: [],
29737
29752
  post: []
29738
29753
  };
29754
+ const devtoolsIntegrationPlugin = config.devtools.enabled && !isWorker ? await loadDevToolsIntegrationPlugin(config) : null;
29739
29755
  const { modulePreload } = config.build;
29740
29756
  return [
29741
29757
  !isBundled ? optimizedDepsPlugin() : null,
@@ -29791,6 +29807,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29791
29807
  importGlobPlugin(config),
29792
29808
  ...postPlugins,
29793
29809
  ...buildPlugins.post,
29810
+ devtoolsIntegrationPlugin,
29794
29811
  ...isBundled ? [] : [
29795
29812
  clientInjectionsPlugin(config),
29796
29813
  cssAnalysisPlugin(config),
@@ -29798,6 +29815,15 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29798
29815
  ]
29799
29816
  ].filter(Boolean);
29800
29817
  }
29818
+ async function loadDevToolsIntegrationPlugin(config) {
29819
+ try {
29820
+ const { DevToolsIntegration } = await import("@vitejs/devtools/integration");
29821
+ return DevToolsIntegration({ config });
29822
+ } catch (error) {
29823
+ config.logger.error(import_picocolors.default.red(`Failed to load Vite DevTools integration: ${error?.message || error?.stack}`), { error });
29824
+ return null;
29825
+ }
29826
+ }
29801
29827
  function createPluginHookUtils(plugins) {
29802
29828
  const sortedPluginsCache = /* @__PURE__ */ new Map();
29803
29829
  function getSortedPlugins(hookName) {
@@ -29933,6 +29959,9 @@ async function createEnvironmentPluginContainer(environment, plugins, watcher, a
29933
29959
  return container;
29934
29960
  }
29935
29961
  var EnvironmentPluginContainer = class {
29962
+ environment;
29963
+ plugins;
29964
+ watcher;
29936
29965
  _pluginContextMap = /* @__PURE__ */ new Map();
29937
29966
  _resolvedRollupOptions;
29938
29967
  _processesing = /* @__PURE__ */ new Set();
@@ -30204,6 +30233,8 @@ const basePluginContextMeta = {
30204
30233
  rolldownVersion
30205
30234
  };
30206
30235
  var BasicMinimalPluginContext = class {
30236
+ meta;
30237
+ _logger;
30207
30238
  constructor(meta, _logger) {
30208
30239
  this.meta = meta;
30209
30240
  this._logger = _logger;
@@ -30263,6 +30294,8 @@ const fsModule = {
30263
30294
  writeFile: fsp.writeFile
30264
30295
  };
30265
30296
  var PluginContext = class extends MinimalPluginContext {
30297
+ _plugin;
30298
+ _container;
30266
30299
  ssr = false;
30267
30300
  _scan = false;
30268
30301
  _activeId = null;
@@ -30532,6 +30565,7 @@ var TransformPluginContext = class extends LoadPluginContext {
30532
30565
  }
30533
30566
  };
30534
30567
  var PluginContainer = class {
30568
+ environments;
30535
30569
  constructor(environments) {
30536
30570
  this.environments = environments;
30537
30571
  }
@@ -30646,7 +30680,7 @@ function scanImports(environment) {
30646
30680
  async function scan() {
30647
30681
  const entries = await computeEntries(environment);
30648
30682
  if (!entries.length) {
30649
- if (!config.optimizeDeps.entries && !config.optimizeDeps.include) environment.logger.warn(import_picocolors.default.yellow("(!) Could not auto-determine entry point from rollupOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling."));
30683
+ if (!config.optimizeDeps.entries && !config.optimizeDeps.include) environment.logger.warn(import_picocolors.default.yellow("(!) Could not auto-determine entry point from rolldownOptions or html files and there are no explicit optimizeDeps.include patterns. Skipping dependency pre-bundling."));
30650
30684
  return;
30651
30685
  }
30652
30686
  if (scanContext.cancelled) return;
@@ -30691,13 +30725,13 @@ async function computeEntries(environment) {
30691
30725
  isEntry: true,
30692
30726
  scan: true
30693
30727
  }))?.id;
30694
- if (id === void 0) throw new Error(`failed to resolve rollupOptions.input value: ${JSON.stringify(p)}.`);
30728
+ if (id === void 0) throw new Error(`failed to resolve rolldownOptions.input value: ${JSON.stringify(p)}.`);
30695
30729
  return id;
30696
30730
  };
30697
30731
  if (typeof buildInput === "string") entries = [await resolvePath(buildInput)];
30698
30732
  else if (Array.isArray(buildInput)) entries = await Promise.all(buildInput.map(resolvePath));
30699
30733
  else if (isObject$1(buildInput)) entries = await Promise.all(Object.values(buildInput).map(resolvePath));
30700
- else throw new Error("invalid rollupOptions.input value.");
30734
+ else throw new Error("invalid rolldownOptions.input value.");
30701
30735
  } else entries = await globEntries("**/*.html", environment);
30702
30736
  entries = entries.filter((entry) => isScannable(entry, environment.config.optimizeDeps.extensions) && fs.existsSync(entry));
30703
30737
  return entries;
@@ -31218,7 +31252,7 @@ function rolldownDepPlugin(environment, qualified, external) {
31218
31252
  },
31219
31253
  transform: {
31220
31254
  filter: { code: assetImportMetaUrlRE },
31221
- async handler(code, id) {
31255
+ handler(code, id) {
31222
31256
  let s;
31223
31257
  const re = new RegExp(assetImportMetaUrlRE);
31224
31258
  const cleanString = stripLiteral(code);
@@ -32650,7 +32684,7 @@ const licenseFiles = [
32650
32684
  function licensePlugin() {
32651
32685
  return {
32652
32686
  name: "vite:license",
32653
- async generateBundle(_, bundle) {
32687
+ generateBundle(_, bundle) {
32654
32688
  const licenseOption = this.environment.config.build.license;
32655
32689
  if (licenseOption === false) return;
32656
32690
  const packageCache = /* @__PURE__ */ new Map();
@@ -32852,7 +32886,7 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer, isBundledDev, isS
32852
32886
  }
32853
32887
  };
32854
32888
  }
32855
- async function resolveBuildPlugins(config) {
32889
+ function resolveBuildPlugins(config) {
32856
32890
  const isBuild = config.command === "build";
32857
32891
  return {
32858
32892
  pre: [
@@ -32930,9 +32964,9 @@ function resolveRolldownOptions(environment, chunkMetadataMap) {
32930
32964
  const isSsrTargetWebworkerEnvironment = environment.name === "ssr" && environment.getTopLevelConfig().ssr?.target === "webworker";
32931
32965
  if (isSsrTargetWebworkerEnvironment) plugins.push(esmExternalRequirePlugin());
32932
32966
  const buildOutputOptions = (output = {}) => {
32933
- if (output.output) logger.warn("You've set \"rollupOptions.output.output\" in your config. This is deprecated and will override all Vite.js default output options. Please use \"rollupOptions.output\" instead.");
32934
- if (output.file) throw new Error("Vite does not support \"rollupOptions.output.file\". Please use \"rollupOptions.output.dir\" and \"rollupOptions.output.entryFileNames\" instead.");
32935
- if (output.sourcemap) logger.warnOnce(import_picocolors.default.yellow("Vite does not support \"rollupOptions.output.sourcemap\". Please use \"build.sourcemap\" instead."));
32967
+ if (output.output) logger.warn("You've set \"rolldownOptions.output.output\" in your config. This is deprecated and will override all Vite.js default output options. Please use \"rolldownOptions.output\" instead.");
32968
+ if (output.file) throw new Error("Vite does not support \"rolldownOptions.output.file\". Please use \"rolldownOptions.output.dir\" and \"rolldownOptions.output.entryFileNames\" instead.");
32969
+ if (output.sourcemap) logger.warnOnce(import_picocolors.default.yellow("Vite does not support \"rolldownOptions.output.sourcemap\". Please use \"build.sourcemap\" instead."));
32936
32970
  const format = output.format || "es";
32937
32971
  const jsExt = ssr && !isSsrTargetWebworkerEnvironment || libOptions ? resolveOutputJsExtension(format, findNearestPackageData(root, packageCache)?.data.type) : "js";
32938
32972
  return {
@@ -33086,9 +33120,9 @@ function resolveBuildOutputs(outputs, libOptions, logger) {
33086
33120
  format
33087
33121
  }));
33088
33122
  }
33089
- if (libOptions.formats) logger.warn(import_picocolors.default.yellow("\"build.lib.formats\" will be ignored because \"build.rollupOptions.output\" is already an array format."));
33123
+ if (libOptions.formats) logger.warn(import_picocolors.default.yellow("\"build.lib.formats\" will be ignored because \"build.rolldownOptions.output\" is already an array format."));
33090
33124
  outputs.forEach((output) => {
33091
- if ((output.format === "umd" || output.format === "iife") && !output.name) throw new Error("Entries in \"build.rollupOptions.output\" must specify \"name\" when the format is \"umd\" or \"iife\".");
33125
+ if ((output.format === "umd" || output.format === "iife") && !output.name) throw new Error("Entries in \"build.rolldownOptions.output\" must specify \"name\" when the format is \"umd\" or \"iife\".");
33092
33126
  });
33093
33127
  }
33094
33128
  return outputs;
@@ -33108,7 +33142,7 @@ function onRollupLog(level, log, environment) {
33108
33142
  if (logging.code === "UNRESOLVED_IMPORT") {
33109
33143
  const id = logging.id;
33110
33144
  const exporter = logging.exporter;
33111
- if (!id || !id.endsWith("?commonjs-external")) throw new Error(`[vite]: Rolldown failed to resolve import "${exporter}" from "${id}".\nThis is most likely unintended because it can break your application at runtime.\nIf you do want to externalize this module explicitly add it to\n\`build.rollupOptions.external\``);
33145
+ if (!id || !id.endsWith("?commonjs-external")) throw new Error(`[vite]: Rolldown failed to resolve import "${exporter}" from "${id}".\nThis is most likely unintended because it can break your application at runtime.\nIf you do want to externalize this module explicitly add it to\n\`build.rolldownOptions.external\``);
33112
33146
  }
33113
33147
  if (logLeveling === "warn") {
33114
33148
  if (logging.plugin === "rollup-plugin-dynamic-import-variables" && dynamicImportWarningIgnoreList.some((msg) => logging.message.includes(msg))) return;
@@ -33442,12 +33476,11 @@ async function createBuilder(inlineConfig = {}, useLegacyBuilder = false) {
33442
33476
  return output;
33443
33477
  },
33444
33478
  async runDevTools() {
33445
- const devtoolsConfig = config.devtools;
33446
- if (devtoolsConfig.enabled) try {
33447
- const { start } = await import(`@vitejs/devtools/cli-commands`);
33448
- await start(devtoolsConfig.config);
33479
+ if (config.devtools.enabled) try {
33480
+ const { runDevTools } = await import("@vitejs/devtools/integration");
33481
+ await runDevTools(builder);
33449
33482
  } catch (e) {
33450
- config.logger.error(import_picocolors.default.red(`Failed to run Vite DevTools: ${e.message || e.stack}`), { error: e });
33483
+ config.logger.error(import_picocolors.default.red(`Failed to run Vite DevTools: ${e?.message || e?.stack}`), { error: e });
33451
33484
  }
33452
33485
  }
33453
33486
  };
@@ -34096,14 +34129,14 @@ function getDefaultEnvironmentOptions(config) {
34096
34129
  * Check and warn if `path` includes characters that don't work well in Vite,
34097
34130
  * such as `#` and `?` and `*`.
34098
34131
  */
34099
- function checkBadCharactersInPath(name, path, logger) {
34132
+ function checkBadCharactersInPath(name, type, path, logger) {
34100
34133
  const badChars = [];
34101
34134
  if (path.includes("#")) badChars.push("#");
34102
34135
  if (path.includes("?")) badChars.push("?");
34103
34136
  if (path.includes("*")) badChars.push("*");
34104
34137
  if (badChars.length > 0) {
34105
34138
  const charString = badChars.map((c) => `"${c}"`).join(" and ");
34106
- logger.warn(import_picocolors.default.yellow(`${name} contains the ${charString} ${badChars.length > 1 ? "characters" : "character"} (${import_picocolors.default.cyan(path)}), which may not work when running Vite. Consider renaming the directory / file to remove the characters.`));
34139
+ logger.warn(import_picocolors.default.yellow(`${name} contains the ${charString} ${badChars.length > 1 ? "characters" : "character"} (${import_picocolors.default.cyan(path)}), which may not work when running Vite. Consider renaming the ${type} without the characters.`));
34107
34140
  }
34108
34141
  }
34109
34142
  const clientAlias = [{
@@ -34262,7 +34295,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34262
34295
  const tsconfigPathsPlugin = userPlugins.find((p) => p.name === "vite-tsconfig-paths" || p.name === "vite-plugin-tsconfig-paths");
34263
34296
  if (tsconfigPathsPlugin) logger.warnOnce(import_picocolors.default.yellow(`The plugin ${JSON.stringify(tsconfigPathsPlugin.name)} is detected. Vite now supports tsconfig paths resolution natively via the ${import_picocolors.default.bold("resolve.tsconfigPaths")} option. You can remove the plugin and set ${import_picocolors.default.bold("resolve.tsconfigPaths: true")} in your Vite config instead.`));
34264
34297
  const resolvedRoot = normalizePath(config.root ? path.resolve(config.root) : process.cwd());
34265
- checkBadCharactersInPath("The project root", resolvedRoot, logger);
34298
+ checkBadCharactersInPath("The project root", "directory", resolvedRoot, logger);
34266
34299
  const configEnvironmentsClient = config.environments.client;
34267
34300
  configEnvironmentsClient.dev ??= {};
34268
34301
  const deprecatedSsrOptimizeDepsConfig = config.ssr?.optimizeDeps ?? {};
@@ -34308,7 +34341,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34308
34341
  createEnvironment: void 0
34309
34342
  }
34310
34343
  };
34311
- for (const name of Object.keys(config.environments)) config.environments[name] = mergeConfig(name === "client" ? defaultClientEnvironmentOptions : defaultNonClientEnvironmentOptions, config.environments[name]);
34344
+ for (const name of Object.keys(config.environments)) config.environments[name] = mergeConfig(name === "client" ? defaultClientEnvironmentOptions : deepClone(defaultNonClientEnvironmentOptions), config.environments[name]);
34312
34345
  await runConfigEnvironmentHook(config.environments, userPlugins, logger, configEnv, config.ssr?.target === "webworker");
34313
34346
  const isBundledDev = command === "serve" && !!config.experimental?.bundledDev;
34314
34347
  config.resolve ??= {};
@@ -34509,7 +34542,6 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34509
34542
  optimizeDepsDisabledBackwardCompatibility(resolved, resolved.optimizeDeps);
34510
34543
  optimizeDepsDisabledBackwardCompatibility(resolved, resolved.ssr.optimizeDeps, "ssr.");
34511
34544
  if (!resolved.builder?.sharedConfigBuild && resolved.environments.ssr) resolved.environments.ssr.build.emitAssets = resolved.build.ssrEmitAssets || resolved.build.emitAssets;
34512
- if (resolved.devtools.enabled) resolved.build.rolldownOptions.devtools ??= {};
34513
34545
  applyDepOptimizationOptionCompat(resolved);
34514
34546
  await setOptimizeDepsPluginNames(resolved);
34515
34547
  debug?.(`using resolved config: %O`, {
@@ -34526,7 +34558,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34526
34558
  if (assetFileNamesList.length > 1) {
34527
34559
  const firstAssetFileNames = assetFileNamesList[0];
34528
34560
  if (assetFileNamesList.some((assetFileNames) => assetFileNames !== firstAssetFileNames)) resolved.logger.warn(import_picocolors.default.yellow(`
34529
- assetFileNames isn't equal for every build.rollupOptions.output. A single pattern across all outputs is supported by Vite.
34561
+ assetFileNames isn't equal for every build.rolldownOptions.output. A single pattern across all outputs is supported by Vite.
34530
34562
  `));
34531
34563
  }
34532
34564
  }
@@ -34607,7 +34639,7 @@ async function loadConfigFromFile(configEnv, configFile, configRoot = process.cw
34607
34639
  };
34608
34640
  } catch (e) {
34609
34641
  const logger = createLogger(logLevel, { customLogger });
34610
- checkBadCharactersInPath("The config path", resolvedPath, logger);
34642
+ checkBadCharactersInPath("The config path", "file", resolvedPath, logger);
34611
34643
  logger.error(import_picocolors.default.red(`failed to load config from ${resolvedPath}`), { error: e });
34612
34644
  throw e;
34613
34645
  }
@@ -34660,7 +34692,7 @@ async function bundleConfigFile(fileName, isESM) {
34660
34692
  name: "externalize-deps",
34661
34693
  resolveId: {
34662
34694
  filter: { id: /^[^.#].*/ },
34663
- async handler(id, importer, { kind }) {
34695
+ handler(id, importer, { kind }) {
34664
34696
  if (!importer || path.isAbsolute(id) || isNodeBuiltin(id)) return;
34665
34697
  if (isNodeLikeBuiltin(id) || id.startsWith("npm:")) return {
34666
34698
  id,
@@ -1,6 +1,6 @@
1
1
  import { i as __require, t as __commonJSMin } from "./chunk.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/format-import-prelude.js
4
4
  var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
5
  module.exports = function formatImportPrelude(layer, media, supports) {
6
6
  const parts = [];
@@ -15,7 +15,7 @@ var require_format_import_prelude = /* @__PURE__ */ __commonJSMin(((exports, mod
15
15
  };
16
16
  }));
17
17
  //#endregion
18
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/base64-encoded-import.js
19
19
  var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
20
20
  const formatImportPrelude = require_format_import_prelude();
21
21
  module.exports = function base64EncodedConditionalImport(prelude, conditions) {
@@ -28,7 +28,7 @@ var require_base64_encoded_import = /* @__PURE__ */ __commonJSMin(((exports, mod
28
28
  };
29
29
  }));
30
30
  //#endregion
31
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-conditions.js
32
32
  var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
33
33
  const base64EncodedConditionalImport = require_base64_encoded_import();
34
34
  module.exports = function applyConditions(bundle, atRule) {
@@ -103,7 +103,7 @@ var require_apply_conditions = /* @__PURE__ */ __commonJSMin(((exports, module)
103
103
  };
104
104
  }));
105
105
  //#endregion
106
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-raws.js
107
107
  var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
108
108
  module.exports = function applyRaws(bundle) {
109
109
  bundle.forEach((stmt, index) => {
@@ -117,7 +117,7 @@ var require_apply_raws = /* @__PURE__ */ __commonJSMin(((exports, module) => {
117
117
  };
118
118
  }));
119
119
  //#endregion
120
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/apply-styles.js
121
121
  var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
122
122
  module.exports = function applyStyles(bundle, styles) {
123
123
  styles.nodes = [];
@@ -137,7 +137,7 @@ var require_apply_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
137
137
  };
138
138
  }));
139
139
  //#endregion
140
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/data-url.js
141
141
  var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
142
142
  const anyDataURLRegexp = /^data:text\/css(?:;(base64|plain))?,/i;
143
143
  const base64DataURLRegexp = /^data:text\/css;base64,/i;
@@ -156,7 +156,7 @@ var require_data_url = /* @__PURE__ */ __commonJSMin(((exports, module) => {
156
156
  };
157
157
  }));
158
158
  //#endregion
159
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/parse-statements.js
160
160
  var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module) => {
161
161
  const valueParser = require_lib();
162
162
  const { stringify } = valueParser;
@@ -281,7 +281,7 @@ var require_parse_statements = /* @__PURE__ */ __commonJSMin(((exports, module)
281
281
  }
282
282
  }));
283
283
  //#endregion
284
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/process-content.js
285
285
  var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) => {
286
286
  const path$2 = __require("path");
287
287
  let sugarss;
@@ -315,7 +315,7 @@ var require_process_content = /* @__PURE__ */ __commonJSMin(((exports, module) =
315
315
  }
316
316
  }));
317
317
  //#endregion
318
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/parse-styles.js
319
319
  var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
320
320
  const path$1 = __require("path");
321
321
  const dataURL = require_data_url();
@@ -418,7 +418,7 @@ var require_parse_styles = /* @__PURE__ */ __commonJSMin(((exports, module) => {
418
418
  module.exports = parseStyles;
419
419
  }));
420
420
  //#endregion
421
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.10/node_modules/postcss-import/index.js
421
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/index.js
422
422
  var require_postcss_import = /* @__PURE__ */ __commonJSMin(((exports, module) => {
423
423
  const path = __require("path");
424
424
  const applyConditions = require_apply_conditions();
@@ -31,7 +31,7 @@ import { GeneralImportGlobOptions, ImportGlobFunction, ImportGlobOptions, KnownA
31
31
 
32
32
  //#region \0rolldown/runtime.js
33
33
  //#endregion
34
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
34
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.21_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/cli-commands.d.ts
35
35
  //#region src/node/cli-commands.d.ts
36
36
  interface StartOptions {
37
37
  root?: string;
@@ -41,10 +41,14 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
44
- //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.14_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
44
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.21_typescript@6.0.2_vite@packages+vite/node_modules/@vitejs/devtools/dist/config.d.ts
45
45
  //#region src/node/config.d.ts
46
46
  interface DevToolsConfig extends Partial<StartOptions> {
47
47
  enabled: boolean;
48
+ /**
49
+ * Vite environments to enable DevTools for. Defaults to all environments.
50
+ */
51
+ environments?: string[];
48
52
  /**
49
53
  * Disable client authentication.
50
54
  *
@@ -921,7 +925,7 @@ interface DepOptimizationConfig {
921
925
  type DepOptimizationOptions = DepOptimizationConfig & {
922
926
  /**
923
927
  * By default, Vite will crawl your `index.html` to detect dependencies that
924
- * need to be pre-bundled. If `build.rollupOptions.input` is specified, Vite
928
+ * need to be pre-bundled. If `build.rolldownOptions.input` is specified, Vite
925
929
  * will crawl those entry points instead.
926
930
  *
927
931
  * If neither of these fit your needs, you can specify custom entries using
@@ -131,8 +131,7 @@ declare class ModuleRunner {
131
131
  */
132
132
  isClosed(): boolean;
133
133
  private processImport;
134
- private isCircularModule;
135
- private isCircularImport;
134
+ private isCircularRequest;
136
135
  private cachedRequest;
137
136
  private cachedModule;
138
137
  private ensureBuiltins;
@@ -225,6 +225,7 @@ function traceSegmentInternal(segments, memo, line, column, bias) {
225
225
  //#endregion
226
226
  //#region src/module-runner/sourcemap/decoder.ts
227
227
  var DecodedMap = class {
228
+ map;
228
229
  _encoded;
229
230
  _decoded;
230
231
  _decodedMemo;
@@ -256,6 +257,8 @@ function getOriginalPosition(map, needle) {
256
257
  //#region src/module-runner/evaluatedModules.ts
257
258
  const MODULE_RUNNER_SOURCEMAPPING_REGEXP = RegExp(`//# ${SOURCEMAPPING_URL}=data:application/json;base64,(.+)`);
258
259
  var EvaluatedModuleNode = class {
260
+ id;
261
+ url;
259
262
  importers = /* @__PURE__ */ new Set();
260
263
  imports = /* @__PURE__ */ new Set();
261
264
  evaluated = !1;
@@ -349,6 +352,8 @@ function normalizeModuleId(file) {
349
352
  //#endregion
350
353
  //#region src/shared/hmr.ts
351
354
  var HMRContext = class {
355
+ hmrClient;
356
+ ownerPath;
352
357
  newListeners;
353
358
  constructor(hmrClient, ownerPath) {
354
359
  this.hmrClient = hmrClient, this.ownerPath = ownerPath, hmrClient.dataMap.has(ownerPath) || hmrClient.dataMap.set(ownerPath, {});
@@ -430,6 +435,9 @@ var HMRContext = class {
430
435
  }), this.hmrClient.hotModulesMap.set(this.ownerPath, mod);
431
436
  }
432
437
  }, HMRClient = class {
438
+ logger;
439
+ transport;
440
+ importUpdatedModule;
433
441
  hotModulesMap = /* @__PURE__ */ new Map();
434
442
  disposeMap = /* @__PURE__ */ new Map();
435
443
  pruneMap = /* @__PURE__ */ new Map();
@@ -526,7 +534,7 @@ const {${missingBindings.join(", ")}} = pkg;
526
534
  }
527
535
  }
528
536
  //#endregion
529
- //#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
537
+ //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/non-secure/index.js
530
538
  let nanoid = (size = 21) => {
531
539
  let id = "", i = size | 0;
532
540
  for (; i--;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
@@ -652,14 +660,14 @@ const createInvokeableTransport = (transport) => {
652
660
  return {
653
661
  async connect({ onMessage, onDisconnection }) {
654
662
  let socket = options.createConnection();
655
- socket.addEventListener("message", async ({ data }) => {
663
+ socket.addEventListener("message", ({ data }) => {
656
664
  onMessage(JSON.parse(data));
657
665
  });
658
666
  let isOpened = socket.readyState === socket.OPEN;
659
667
  isOpened || await new Promise((resolve, reject) => {
660
668
  socket.addEventListener("open", () => {
661
669
  isOpened = !0, resolve();
662
- }, { once: !0 }), socket.addEventListener("close", async () => {
670
+ }, { once: !0 }), socket.addEventListener("close", () => {
663
671
  if (!isOpened) {
664
672
  reject(/* @__PURE__ */ Error("WebSocket closed without opened."));
665
673
  return;
@@ -1080,6 +1088,9 @@ function createNodeImportMeta(modulePath) {
1080
1088
  //#endregion
1081
1089
  //#region src/module-runner/runner.ts
1082
1090
  var ModuleRunner = class {
1091
+ options;
1092
+ evaluator;
1093
+ debug;
1083
1094
  evaluatedModules;
1084
1095
  hmrClient;
1085
1096
  transport;
@@ -1127,29 +1138,25 @@ var ModuleRunner = class {
1127
1138
  let { url, type } = fetchResult;
1128
1139
  return type !== "module" && type !== "commonjs" || analyzeImportedModDifference(exports, url, type, metadata), exports;
1129
1140
  }
1130
- isCircularModule(mod) {
1131
- for (let importedFile of mod.imports) if (mod.importers.has(importedFile)) return !0;
1132
- return !1;
1133
- }
1134
- isCircularImport(importers, moduleUrl, visited = /* @__PURE__ */ new Set()) {
1135
- for (let importer of importers) {
1136
- if (visited.has(importer)) continue;
1137
- if (visited.add(importer), importer === moduleUrl) return !0;
1138
- let mod = this.evaluatedModules.getModuleById(importer);
1139
- if (mod && mod.importers.size && this.isCircularImport(mod.importers, moduleUrl, visited)) return !0;
1141
+ isCircularRequest(mod, callstack, visited = /* @__PURE__ */ new Set()) {
1142
+ if (visited.has(mod.id)) return !1;
1143
+ visited.add(mod.id);
1144
+ for (let importedModuleId of mod.imports) {
1145
+ if (callstack.includes(importedModuleId)) return !0;
1146
+ let importedModule = this.evaluatedModules.getModuleById(importedModuleId);
1147
+ if (importedModule?.promise && !importedModule.evaluated && this.isCircularRequest(importedModule, callstack, visited)) return !0;
1140
1148
  }
1141
1149
  return !1;
1142
1150
  }
1143
1151
  async cachedRequest(url, mod, callstack = [], metadata) {
1144
- let meta = mod.meta, moduleId = meta.id, { importers } = mod, importee = callstack[callstack.length - 1];
1145
- if (importee && importers.add(importee), mod.evaluated && mod.promise) return this.processImport(await mod.promise, meta, metadata);
1146
- if ((callstack.includes(moduleId) || this.isCircularModule(mod) || this.isCircularImport(importers, moduleId)) && mod.exports) return this.processImport(mod.exports, meta, metadata);
1152
+ let meta = mod.meta, moduleId = meta.id, importee = callstack[callstack.length - 1];
1153
+ if (importee && mod.importers.add(importee), mod.evaluated && mod.promise) return this.processImport(await mod.promise, meta, metadata);
1154
+ if (mod.promise) return mod.exports && (callstack.includes(moduleId) || this.isCircularRequest(mod, callstack)) ? this.processImport(mod.exports, meta, metadata) : this.processImport(await mod.promise, meta, metadata);
1147
1155
  let debugTimer;
1148
1156
  this.debug && (debugTimer = setTimeout(() => {
1149
1157
  this.debug(`[module runner] module ${moduleId} takes over 2s to load.\n${`stack:\n${[...callstack, moduleId].reverse().map((p) => ` - ${p}`).join("\n")}`}`);
1150
1158
  }, 2e3));
1151
1159
  try {
1152
- if (mod.promise) return this.processImport(await mod.promise, meta, metadata);
1153
1160
  let promise = this.directRequest(url, mod, callstack);
1154
1161
  return mod.promise = promise, mod.evaluated = !1, this.processImport(await promise, meta, metadata);
1155
1162
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.10",
3
+ "version": "8.0.12",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -62,15 +62,15 @@
62
62
  "dependencies": {
63
63
  "lightningcss": "^1.32.0",
64
64
  "picomatch": "^4.0.4",
65
- "postcss": "^8.5.10",
66
- "rolldown": "1.0.0-rc.17",
65
+ "postcss": "^8.5.14",
66
+ "rolldown": "1.0.0",
67
67
  "tinyglobby": "^0.2.16"
68
68
  },
69
69
  "optionalDependencies": {
70
70
  "fsevents": "~2.3.3"
71
71
  },
72
72
  "devDependencies": {
73
- "@babel/parser": "^7.29.2",
73
+ "@babel/parser": "^7.29.3",
74
74
  "@jridgewell/remapping": "^2.3.5",
75
75
  "@jridgewell/trace-mapping": "^0.3.31",
76
76
  "@polka/compression": "^1.0.0-next.25",
@@ -80,10 +80,10 @@
80
80
  "@vercel/detect-agent": "^1.2.3",
81
81
  "@types/escape-html": "^1.0.4",
82
82
  "@types/pnpapi": "^0.0.5",
83
- "@vitest/utils": "4.1.4",
84
- "@vitejs/devtools": "^0.1.14",
83
+ "@vitest/utils": "4.1.5",
84
+ "@vitejs/devtools": "^0.1.21",
85
85
  "artichokie": "^0.4.3",
86
- "baseline-browser-mapping": "^2.10.20",
86
+ "baseline-browser-mapping": "^2.10.29",
87
87
  "cac": "^7.0.0",
88
88
  "chokidar": "^3.6.0",
89
89
  "connect": "^3.7.0",
@@ -102,32 +102,32 @@
102
102
  "magic-string": "^0.30.21",
103
103
  "mlly": "^1.8.2",
104
104
  "mrmime": "^2.0.1",
105
- "nanoid": "^5.1.9",
105
+ "nanoid": "^5.1.11",
106
106
  "obug": "^1.0.2",
107
107
  "open": "^10.2.0",
108
108
  "parse5": "^8.0.1",
109
109
  "pathe": "^2.0.3",
110
- "periscopic": "^4.0.2",
110
+ "periscopic": "^4.0.3",
111
111
  "picocolors": "^1.1.1",
112
112
  "postcss-import": "^16.1.1",
113
113
  "postcss-load-config": "^6.0.1",
114
114
  "postcss-modules": "^6.0.1",
115
115
  "premove": "^4.0.0",
116
116
  "resolve.exports": "^2.0.3",
117
- "rolldown-plugin-dts": "^0.23.2",
117
+ "rolldown-plugin-dts": "^0.25.0",
118
118
  "rollup": "^4.59.0",
119
119
  "rollup-plugin-license": "^3.7.1",
120
120
  "sass": "^1.99.0",
121
121
  "sass-embedded": "^1.99.0",
122
122
  "sirv": "^3.0.2",
123
123
  "strip-literal": "^3.1.0",
124
- "terser": "^5.46.1",
125
- "ufo": "^1.6.3",
124
+ "terser": "^5.47.1",
125
+ "ufo": "^1.6.4",
126
126
  "ws": "^8.20.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@types/node": "^20.19.0 || >=22.12.0",
130
- "@vitejs/devtools": "^0.1.0",
130
+ "@vitejs/devtools": "^0.1.18",
131
131
  "esbuild": "^0.27.0 || ^0.28.0",
132
132
  "jiti": ">=1.21.0",
133
133
  "less": "^4.0.0",