vite 8.0.10 → 8.0.11

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.128.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.128.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.128.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.128.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;
@@ -10854,7 +10851,7 @@ var SSRCompatModuleRunner = class extends ModuleRunner {
10854
10851
  }
10855
10852
  };
10856
10853
  //#endregion
10857
- //#region ../../node_modules/.pnpm/periscopic@4.0.2/node_modules/periscopic/src/index.js
10854
+ //#region ../../node_modules/.pnpm/periscopic@4.0.3/node_modules/periscopic/src/index.js
10858
10855
  /**
10859
10856
  * @param {import('estree').Node} param
10860
10857
  * @returns {string[]}
@@ -11092,7 +11089,7 @@ async function ssrTransform(code, inMap, url, originalCode, options) {
11092
11089
  if (options?.json?.stringify && isJSONRequest(url)) return ssrTransformJSON(code, inMap);
11093
11090
  return ssrTransformScript(code, inMap, url, originalCode);
11094
11091
  }
11095
- async function ssrTransformJSON(code, inMap) {
11092
+ function ssrTransformJSON(code, inMap) {
11096
11093
  return {
11097
11094
  code: code.replace("export default", `${ssrModuleExportsKey}.default =`),
11098
11095
  map: inMap,
@@ -19553,7 +19550,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19553
19550
  };
19554
19551
  }));
19555
19552
  //#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
19553
+ //#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
19554
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19558
19555
  const { createRequire: createRequire$1 } = __require("node:module");
19559
19556
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
@@ -19595,7 +19592,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19595
19592
  module.exports = req;
19596
19593
  }));
19597
19594
  //#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
19595
+ //#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
19596
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19600
19597
  const req = require_req();
19601
19598
  /**
@@ -19629,7 +19626,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19629
19626
  module.exports = options;
19630
19627
  }));
19631
19628
  //#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
19629
+ //#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
19630
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19634
19631
  const req = require_req();
19635
19632
  /**
@@ -19683,7 +19680,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19683
19680
  module.exports = plugins;
19684
19681
  }));
19685
19682
  //#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
19683
+ //#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
19684
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19688
19685
  const { resolve: resolve$3 } = __require("node:path");
19689
19686
  const config = require_src$1();
@@ -20432,7 +20429,7 @@ function cssPlugin(config) {
20432
20429
  },
20433
20430
  load: {
20434
20431
  filter: { id: CSS_LANGS_RE },
20435
- async handler(id) {
20432
+ handler(id) {
20436
20433
  if (urlRE$1.test(id)) {
20437
20434
  if (isModuleCSSRequest(id)) throw new Error(`?url is not supported with CSS modules. (tried to import ${JSON.stringify(id)})`);
20438
20435
  if (isBuild) {
@@ -20816,7 +20813,7 @@ function cssAnalysisPlugin(config) {
20816
20813
  include: CSS_LANGS_RE,
20817
20814
  exclude: [commonjsProxyRE, SPECIAL_QUERY_RE]
20818
20815
  } },
20819
- async handler(_, id) {
20816
+ handler(_, id) {
20820
20817
  const { moduleGraph } = this.environment;
20821
20818
  const thisModule = moduleGraph.getModuleById(id);
20822
20819
  if (thisModule) {
@@ -21145,7 +21142,7 @@ function combineSourcemapsIfExists(filename, map1, map2) {
21145
21142
  const viteHashUpdateMarker = "/*$vite$:1*/";
21146
21143
  const viteHashUpdateMarkerRE = /\/\*\$vite\$:\d+\*\//;
21147
21144
  async function finalizeCss(css, config) {
21148
- if (css.includes("@import") || css.includes("@charset")) css = await hoistAtRules(css);
21145
+ if (css.includes("@import") || css.includes("@charset")) css = hoistAtRules(css);
21149
21146
  if (config.build.cssMinify) css = await minifyCSS(css, config, false);
21150
21147
  css += viteHashUpdateMarker;
21151
21148
  return css;
@@ -21353,7 +21350,7 @@ function resolveMinifyCssEsbuildOptions(options) {
21353
21350
  }
21354
21351
  const atImportRE = /@import(?:\s*(?:url\([^)]*\)|"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
21355
21352
  const atCharsetRE = /@charset(?:\s*(?:"(?:[^"]|(?<=\\)")*"|'(?:[^']|(?<=\\)')*').*?|[^;]*);/g;
21356
- async function hoistAtRules(css) {
21353
+ function hoistAtRules(css) {
21357
21354
  const s = new MagicString(css);
21358
21355
  const cleanCss = emptyCssComments(css);
21359
21356
  let match;
@@ -22920,18 +22917,18 @@ function definePlugin(config) {
22920
22917
  };
22921
22918
  return {
22922
22919
  name: "vite:define",
22923
- transform: { async handler(code, id) {
22920
+ transform: { handler(code, id) {
22924
22921
  if (this.environment.config.consumer === "client") return;
22925
22922
  if (isHTMLRequest(id) || isCSSRequest(id) || isNonJsRequest(id) || config.assetsInclude(id)) return;
22926
22923
  const [define, pattern] = getPattern(this.environment);
22927
22924
  if (!pattern) return;
22928
22925
  pattern.lastIndex = 0;
22929
22926
  if (!pattern.test(code)) return;
22930
- return await replaceDefine(this.environment, code, id, define);
22927
+ return replaceDefine(this.environment, code, id, define);
22931
22928
  } }
22932
22929
  };
22933
22930
  }
22934
- async function replaceDefine(environment, code, id, define) {
22931
+ function replaceDefine(environment, code, id, define) {
22935
22932
  const result = transformSync(id, code, {
22936
22933
  lang: "js",
22937
22934
  sourceType: "module",
@@ -22988,13 +22985,13 @@ function clientInjectionsPlugin(config) {
22988
22985
  async buildStart() {
22989
22986
  injectConfigValues = await createClientConfigValueReplacer(config);
22990
22987
  },
22991
- async transform(code, id) {
22988
+ transform(code, id) {
22992
22989
  const ssr = this.environment.config.consumer === "server";
22993
22990
  const cleanId = cleanUrl(id);
22994
22991
  if (cleanId === normalizedClientEntry$1 || cleanId === normalizedEnvEntry$1) return getDefineReplacer(this)(injectConfigValues(code));
22995
22992
  else if (!ssr && code.includes("process.env.NODE_ENV")) {
22996
22993
  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, {
22994
+ return replaceDefine(this.environment, code, id, {
22998
22995
  "process.env.NODE_ENV": nodeEnv,
22999
22996
  "global.process.env.NODE_ENV": nodeEnv,
23000
22997
  "globalThis.process.env.NODE_ENV": nodeEnv
@@ -23369,7 +23366,7 @@ function createDepsOptimizer(environment) {
23369
23366
  path: "*"
23370
23367
  });
23371
23368
  }
23372
- async function rerun() {
23369
+ function rerun() {
23373
23370
  const depsString = depsLogString(Object.keys(metadata.discovered));
23374
23371
  debug$9?.(import_picocolors.default.green(`new dependencies found: ${depsString}`));
23375
23372
  runOptimizer();
@@ -24738,7 +24735,7 @@ var DevEnvironment = class extends BaseEnvironment {
24738
24735
  });
24739
24736
  }
24740
24737
  });
24741
- this.hot.on("vite:invalidate", async ({ path, message, firstInvalidatedBy }, client) => {
24738
+ this.hot.on("vite:invalidate", ({ path, message, firstInvalidatedBy }, client) => {
24742
24739
  this.invalidateModule({
24743
24740
  path,
24744
24741
  message,
@@ -24869,7 +24866,7 @@ function setupOnCrawlEnd() {
24869
24866
  if (timeoutHandle) clearTimeout(timeoutHandle);
24870
24867
  timeoutHandle = setTimeout(callOnCrawlEndWhenIdle, callCrawlEndIfIdleAfterMs);
24871
24868
  }
24872
- async function callOnCrawlEndWhenIdle() {
24869
+ function callOnCrawlEndWhenIdle() {
24873
24870
  if (cancelled || registeredIds.size > 0) return;
24874
24871
  onCrawlEndPromiseWithResolvers.resolve();
24875
24872
  }
@@ -27360,7 +27357,7 @@ function webWorkerPlugin(config) {
27360
27357
  },
27361
27358
  transform: {
27362
27359
  filter: { id: workerFileRE },
27363
- async handler(raw, id) {
27360
+ handler(raw, id) {
27364
27361
  const workerFileMatch = workerFileRE.exec(id);
27365
27362
  if (workerFileMatch) {
27366
27363
  const workerType = workerFileMatch[1];
@@ -27995,7 +27992,7 @@ export default ${wasmHelperCode}
27995
27992
  },
27996
27993
  renderChunk: env.config.consumer === "server" ? {
27997
27994
  filter: { code: wasmInitUrlRE },
27998
- async handler(code, chunk, opts, meta) {
27995
+ handler(code, chunk, opts, meta) {
27999
27996
  const toRelativeRuntime = createToImportMetaURLBasedRelativeRuntime(opts.format, this.environment.config.isWorker);
28000
27997
  let match;
28001
27998
  let s;
@@ -28778,15 +28775,22 @@ function importGlobPlugin(config) {
28778
28775
  async handler(code, id) {
28779
28776
  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
28777
  if (result) {
28781
- const allGlobs = result.matches.map((i) => i.globsResolved);
28782
28778
  if (!importGlobMaps.has(this.environment)) importGlobMaps.set(this.environment, /* @__PURE__ */ new Map());
28783
- const globMatchers = allGlobs.map((globs) => {
28779
+ const globMatchers = result.matches.map((i) => {
28784
28780
  const affirmed = [];
28785
28781
  const negated = [];
28786
- for (const glob of globs) if (glob[0] === "!") negated.push(glob.slice(1));
28782
+ for (const glob of i.globsResolved) if (glob[0] === "!") negated.push(glob.slice(1));
28787
28783
  else affirmed.push(glob);
28788
- const affirmedMatcher = picomatch(affirmed);
28789
- const negatedMatcher = picomatch(negated);
28784
+ const affirmedMatcher = picomatch(affirmed, {
28785
+ noextglob: true,
28786
+ dot: !!i.options.exhaustive,
28787
+ ignore: i.options.exhaustive ? [] : ["**/node_modules/**"]
28788
+ });
28789
+ const negatedMatcher = picomatch(negated, {
28790
+ noextglob: true,
28791
+ dot: !!i.options.exhaustive,
28792
+ ignore: i.options.exhaustive ? [] : ["**/node_modules/**"]
28793
+ });
28790
28794
  return (file) => {
28791
28795
  return (affirmed.length === 0 || affirmedMatcher(file)) && !(negated.length > 0 && negatedMatcher(file));
28792
28796
  };
@@ -29172,7 +29176,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
29172
29176
  };
29173
29177
  }
29174
29178
  //#endregion
29175
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/helpers.js
29179
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/helpers.js
29176
29180
  function notNullish(v) {
29177
29181
  return v != null;
29178
29182
  }
@@ -29180,7 +29184,7 @@ function isPrimitive(value) {
29180
29184
  return value === null || typeof value !== "function" && typeof value !== "object";
29181
29185
  }
29182
29186
  //#endregion
29183
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29187
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29184
29188
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
29185
29189
  function normalizeWindowsPath(input = "") {
29186
29190
  if (!input) return input;
@@ -29259,7 +29263,7 @@ const isAbsolute$2 = function(p) {
29259
29263
  return _IS_ABSOLUTE_RE.test(p);
29260
29264
  };
29261
29265
  //#endregion
29262
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.4/node_modules/@vitest/utils/dist/source-map.js
29266
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/source-map.js
29263
29267
  var comma = ",".charCodeAt(0);
29264
29268
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29265
29269
  var intToChar = new Uint8Array(64);
@@ -29546,7 +29550,7 @@ function parseSingleV8Stack(raw) {
29546
29550
  function parseStacktrace(stack, options = {}) {
29547
29551
  const { ignoreStackEntries = stackIgnorePatterns } = options;
29548
29552
  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__");
29553
+ const helperIndex = stacks.findLastIndex((s) => s.method.includes("__VITEST_HELPER__"));
29550
29554
  if (helperIndex >= 0) stacks = stacks.slice(helperIndex + 1);
29551
29555
  return stacks.map((stack) => {
29552
29556
  if (options.getUrlId) stack.file = options.getUrlId(stack.file);
@@ -29732,10 +29736,11 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29732
29736
  const isBuild = config.command === "build";
29733
29737
  const isBundled = config.isBundled;
29734
29738
  const isWorker = config.isWorker;
29735
- const buildPlugins = isBundled ? await (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
29739
+ const buildPlugins = isBundled ? (await Promise.resolve().then(() => build_exports)).resolveBuildPlugins(config) : {
29736
29740
  pre: [],
29737
29741
  post: []
29738
29742
  };
29743
+ const devtoolsIntegrationPlugin = config.devtools.enabled && !isWorker ? await loadDevToolsIntegrationPlugin(config) : null;
29739
29744
  const { modulePreload } = config.build;
29740
29745
  return [
29741
29746
  !isBundled ? optimizedDepsPlugin() : null,
@@ -29791,6 +29796,7 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29791
29796
  importGlobPlugin(config),
29792
29797
  ...postPlugins,
29793
29798
  ...buildPlugins.post,
29799
+ devtoolsIntegrationPlugin,
29794
29800
  ...isBundled ? [] : [
29795
29801
  clientInjectionsPlugin(config),
29796
29802
  cssAnalysisPlugin(config),
@@ -29798,6 +29804,15 @@ async function resolvePlugins(config, prePlugins, normalPlugins, postPlugins) {
29798
29804
  ]
29799
29805
  ].filter(Boolean);
29800
29806
  }
29807
+ async function loadDevToolsIntegrationPlugin(config) {
29808
+ try {
29809
+ const { DevToolsIntegration } = await import("@vitejs/devtools/integration");
29810
+ return DevToolsIntegration({ config });
29811
+ } catch (error) {
29812
+ config.logger.error(import_picocolors.default.red(`Failed to load Vite DevTools integration: ${error?.message || error?.stack}`), { error });
29813
+ return null;
29814
+ }
29815
+ }
29801
29816
  function createPluginHookUtils(plugins) {
29802
29817
  const sortedPluginsCache = /* @__PURE__ */ new Map();
29803
29818
  function getSortedPlugins(hookName) {
@@ -31218,7 +31233,7 @@ function rolldownDepPlugin(environment, qualified, external) {
31218
31233
  },
31219
31234
  transform: {
31220
31235
  filter: { code: assetImportMetaUrlRE },
31221
- async handler(code, id) {
31236
+ handler(code, id) {
31222
31237
  let s;
31223
31238
  const re = new RegExp(assetImportMetaUrlRE);
31224
31239
  const cleanString = stripLiteral(code);
@@ -32650,7 +32665,7 @@ const licenseFiles = [
32650
32665
  function licensePlugin() {
32651
32666
  return {
32652
32667
  name: "vite:license",
32653
- async generateBundle(_, bundle) {
32668
+ generateBundle(_, bundle) {
32654
32669
  const licenseOption = this.environment.config.build.license;
32655
32670
  if (licenseOption === false) return;
32656
32671
  const packageCache = /* @__PURE__ */ new Map();
@@ -32852,7 +32867,7 @@ function resolveBuildEnvironmentOptions(raw, logger, consumer, isBundledDev, isS
32852
32867
  }
32853
32868
  };
32854
32869
  }
32855
- async function resolveBuildPlugins(config) {
32870
+ function resolveBuildPlugins(config) {
32856
32871
  const isBuild = config.command === "build";
32857
32872
  return {
32858
32873
  pre: [
@@ -33442,12 +33457,11 @@ async function createBuilder(inlineConfig = {}, useLegacyBuilder = false) {
33442
33457
  return output;
33443
33458
  },
33444
33459
  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);
33460
+ if (config.devtools.enabled) try {
33461
+ const { runDevTools } = await import("@vitejs/devtools/integration");
33462
+ await runDevTools(builder);
33449
33463
  } catch (e) {
33450
- config.logger.error(import_picocolors.default.red(`Failed to run Vite DevTools: ${e.message || e.stack}`), { error: e });
33464
+ config.logger.error(import_picocolors.default.red(`Failed to run Vite DevTools: ${e?.message || e?.stack}`), { error: e });
33451
33465
  }
33452
33466
  }
33453
33467
  };
@@ -34096,14 +34110,14 @@ function getDefaultEnvironmentOptions(config) {
34096
34110
  * Check and warn if `path` includes characters that don't work well in Vite,
34097
34111
  * such as `#` and `?` and `*`.
34098
34112
  */
34099
- function checkBadCharactersInPath(name, path, logger) {
34113
+ function checkBadCharactersInPath(name, type, path, logger) {
34100
34114
  const badChars = [];
34101
34115
  if (path.includes("#")) badChars.push("#");
34102
34116
  if (path.includes("?")) badChars.push("?");
34103
34117
  if (path.includes("*")) badChars.push("*");
34104
34118
  if (badChars.length > 0) {
34105
34119
  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.`));
34120
+ 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
34121
  }
34108
34122
  }
34109
34123
  const clientAlias = [{
@@ -34262,7 +34276,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34262
34276
  const tsconfigPathsPlugin = userPlugins.find((p) => p.name === "vite-tsconfig-paths" || p.name === "vite-plugin-tsconfig-paths");
34263
34277
  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
34278
  const resolvedRoot = normalizePath(config.root ? path.resolve(config.root) : process.cwd());
34265
- checkBadCharactersInPath("The project root", resolvedRoot, logger);
34279
+ checkBadCharactersInPath("The project root", "directory", resolvedRoot, logger);
34266
34280
  const configEnvironmentsClient = config.environments.client;
34267
34281
  configEnvironmentsClient.dev ??= {};
34268
34282
  const deprecatedSsrOptimizeDepsConfig = config.ssr?.optimizeDeps ?? {};
@@ -34308,7 +34322,7 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34308
34322
  createEnvironment: void 0
34309
34323
  }
34310
34324
  };
34311
- for (const name of Object.keys(config.environments)) config.environments[name] = mergeConfig(name === "client" ? defaultClientEnvironmentOptions : defaultNonClientEnvironmentOptions, config.environments[name]);
34325
+ for (const name of Object.keys(config.environments)) config.environments[name] = mergeConfig(name === "client" ? defaultClientEnvironmentOptions : deepClone(defaultNonClientEnvironmentOptions), config.environments[name]);
34312
34326
  await runConfigEnvironmentHook(config.environments, userPlugins, logger, configEnv, config.ssr?.target === "webworker");
34313
34327
  const isBundledDev = command === "serve" && !!config.experimental?.bundledDev;
34314
34328
  config.resolve ??= {};
@@ -34509,7 +34523,6 @@ async function resolveConfig(inlineConfig, command, defaultMode = "development",
34509
34523
  optimizeDepsDisabledBackwardCompatibility(resolved, resolved.optimizeDeps);
34510
34524
  optimizeDepsDisabledBackwardCompatibility(resolved, resolved.ssr.optimizeDeps, "ssr.");
34511
34525
  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
34526
  applyDepOptimizationOptionCompat(resolved);
34514
34527
  await setOptimizeDepsPluginNames(resolved);
34515
34528
  debug?.(`using resolved config: %O`, {
@@ -34607,7 +34620,7 @@ async function loadConfigFromFile(configEnv, configFile, configRoot = process.cw
34607
34620
  };
34608
34621
  } catch (e) {
34609
34622
  const logger = createLogger(logLevel, { customLogger });
34610
- checkBadCharactersInPath("The config path", resolvedPath, logger);
34623
+ checkBadCharactersInPath("The config path", "file", resolvedPath, logger);
34611
34624
  logger.error(import_picocolors.default.red(`failed to load config from ${resolvedPath}`), { error: e });
34612
34625
  throw e;
34613
34626
  }
@@ -34660,7 +34673,7 @@ async function bundleConfigFile(fileName, isESM) {
34660
34673
  name: "externalize-deps",
34661
34674
  resolveId: {
34662
34675
  filter: { id: /^[^.#].*/ },
34663
- async handler(id, importer, { kind }) {
34676
+ handler(id, importer, { kind }) {
34664
34677
  if (!importer || path.isAbsolute(id) || isNodeBuiltin(id)) return;
34665
34678
  if (isNodeLikeBuiltin(id) || id.startsWith("npm:")) return {
34666
34679
  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.19_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.19_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
  *
@@ -526,7 +526,7 @@ const {${missingBindings.join(", ")}} = pkg;
526
526
  }
527
527
  }
528
528
  //#endregion
529
- //#region ../../node_modules/.pnpm/nanoid@5.1.9/node_modules/nanoid/non-secure/index.js
529
+ //#region ../../node_modules/.pnpm/nanoid@5.1.11/node_modules/nanoid/non-secure/index.js
530
530
  let nanoid = (size = 21) => {
531
531
  let id = "", i = size | 0;
532
532
  for (; i--;) id += "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[Math.random() * 64 | 0];
@@ -652,14 +652,14 @@ const createInvokeableTransport = (transport) => {
652
652
  return {
653
653
  async connect({ onMessage, onDisconnection }) {
654
654
  let socket = options.createConnection();
655
- socket.addEventListener("message", async ({ data }) => {
655
+ socket.addEventListener("message", ({ data }) => {
656
656
  onMessage(JSON.parse(data));
657
657
  });
658
658
  let isOpened = socket.readyState === socket.OPEN;
659
659
  isOpened || await new Promise((resolve, reject) => {
660
660
  socket.addEventListener("open", () => {
661
661
  isOpened = !0, resolve();
662
- }, { once: !0 }), socket.addEventListener("close", async () => {
662
+ }, { once: !0 }), socket.addEventListener("close", () => {
663
663
  if (!isOpened) {
664
664
  reject(/* @__PURE__ */ Error("WebSocket closed without opened."));
665
665
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.10",
3
+ "version": "8.0.11",
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-rc.18",
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.19",
85
85
  "artichokie": "^0.4.3",
86
- "baseline-browser-mapping": "^2.10.20",
86
+ "baseline-browser-mapping": "^2.10.27",
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.24.1",
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.46.2",
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",