vite 8.0.13 → 8.0.14

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.
@@ -8,7 +8,7 @@ let nanoid = (size = 21) => {
8
8
  return id;
9
9
  };
10
10
  //#endregion
11
- //#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
11
+ //#region \0@oxc-project+runtime@0.132.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.130.0/helpers/toPrimitive.js
21
+ //#region \0@oxc-project+runtime@0.132.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.130.0/helpers/toPropertyKey.js
33
+ //#region \0@oxc-project+runtime@0.132.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.130.0/helpers/defineProperty.js
39
+ //#region \0@oxc-project+runtime@0.132.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,
@@ -381,16 +381,22 @@ const normalizeModuleRunnerTransport = (transport) => {
381
381
  async send(data) {
382
382
  if (!invokeableTransport.send) return;
383
383
  if (!isConnected) if (connectingPromise) await connectingPromise;
384
- else throw new Error("send was called before connect");
384
+ else throw new SendBeforeConnectError("send was called before connect");
385
385
  await invokeableTransport.send(data);
386
386
  },
387
387
  async invoke(name, data) {
388
388
  if (!isConnected) if (connectingPromise) await connectingPromise;
389
- else throw new Error("invoke was called before connect");
389
+ else throw new SendBeforeConnectError("invoke was called before connect");
390
390
  return invokeableTransport.invoke(name, data);
391
391
  }
392
392
  };
393
393
  };
394
+ var SendBeforeConnectError = class extends Error {
395
+ constructor(message) {
396
+ super(message);
397
+ this.name = "SendBeforeConnectError";
398
+ }
399
+ };
394
400
  const createWebSocketModuleRunnerTransport = (options) => {
395
401
  const pingInterval = options.pingInterval ?? 3e4;
396
402
  let ws;
@@ -474,10 +480,10 @@ var Queue = class {
474
480
  };
475
481
  //#endregion
476
482
  //#region src/shared/forwardConsole.ts
477
- function setupForwardConsoleHandler(transport, options) {
483
+ function setupForwardConsoleHandler(transport, options, console = globalThis.console) {
478
484
  if (!options.enabled) return;
479
- function sendError(type, error) {
480
- transport.send({
485
+ async function sendError(type, error) {
486
+ await transport.send({
481
487
  type: "custom",
482
488
  event: "vite:forward-console",
483
489
  data: {
@@ -490,19 +496,28 @@ function setupForwardConsoleHandler(transport, options) {
490
496
  }
491
497
  });
492
498
  }
493
- function sendLog(level, args) {
494
- transport.send({
495
- type: "custom",
496
- event: "vite:forward-console",
497
- data: {
498
- type: "log",
499
+ async function sendLog(level, args) {
500
+ try {
501
+ await transport.send({
502
+ type: "custom",
503
+ event: "vite:forward-console",
499
504
  data: {
500
- level,
501
- message: formatConsoleArgs(args)
505
+ type: "log",
506
+ data: {
507
+ level,
508
+ message: formatConsoleArgs(args)
509
+ }
502
510
  }
511
+ });
512
+ } catch (err) {
513
+ try {
514
+ await sendError("unhandled-rejection", err);
515
+ } catch (err) {
516
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
503
517
  }
504
- });
518
+ }
505
519
  }
520
+ const originalConsoleError = console.error;
506
521
  for (const level of options.logLevels) {
507
522
  const original = console[level];
508
523
  if (typeof original !== "function") continue;
@@ -512,11 +527,20 @@ function setupForwardConsoleHandler(transport, options) {
512
527
  };
513
528
  }
514
529
  if (options.unhandledErrors && typeof window !== "undefined") {
515
- window.addEventListener("error", (event) => {
516
- sendError("error", event.error ?? (event.message ? new Error(event.message) : event));
530
+ window.addEventListener("error", async (event) => {
531
+ const error = event.error ?? (event.message ? new Error(event.message) : event);
532
+ try {
533
+ await sendError("error", error);
534
+ } catch (err) {
535
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
536
+ }
517
537
  });
518
- window.addEventListener("unhandledrejection", (event) => {
519
- sendError("unhandled-rejection", event.reason);
538
+ window.addEventListener("unhandledrejection", async (event) => {
539
+ try {
540
+ await sendError("unhandled-rejection", event.reason);
541
+ } catch (err) {
542
+ if (!(err instanceof SendBeforeConnectError)) originalConsoleError("Failed to send error to Vite server:", err);
543
+ }
520
544
  });
521
545
  }
522
546
  }
@@ -1,6 +1,6 @@
1
1
  import { H as __require, z as __commonJSMin } from "./logger.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.14/node_modules/postcss-modules/build/fs.js
3
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/unquote.js
25
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/icss-utils/src/replaceValueSymbols.js
38
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.15/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.14/node_modules/icss-utils/src/replaceSymbols.js
55
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.15/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.14/node_modules/icss-utils/src/extractICSS.js
68
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.15/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.14/node_modules/icss-utils/src/createICSSRules.js
122
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.15/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.14/node_modules/icss-utils/src/index.js
166
+ //#region ../../node_modules/.pnpm/icss-utils@5.1.0_postcss@8.5.15/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.14/node_modules/postcss-modules/build/Parser.js
176
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/saveJSON.js
244
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/localsConvention.js
896
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/FileSystemLoader.js
936
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules-extract-imports/src/topologicalSort.js
1021
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.15/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.14/node_modules/postcss-modules-extract-imports/src/index.js
1060
+ //#region ../../node_modules/.pnpm/postcss-modules-extract-imports@3.1.0_postcss@8.5.15/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.14/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.15/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.14/node_modules/postcss-modules-scope/src/index.js
4964
+ //#region ../../node_modules/.pnpm/postcss-modules-scope@3.2.1_postcss@8.5.15/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.14/node_modules/postcss-modules-values/src/index.js
5144
+ //#region ../../node_modules/.pnpm/postcss-modules-values@4.0.0_postcss@8.5.15/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.14/node_modules/postcss-modules/build/scoping.js
5231
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/pluginFactory.js
5293
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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.14/node_modules/postcss-modules/build/index.js
5367
+ //#region ../../node_modules/.pnpm/postcss-modules@6.0.1_postcss@8.5.15/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();
@@ -1564,11 +1564,10 @@ const replaceNestedIdRE = /\s*>\s*/g;
1564
1564
  const flattenId = (id) => {
1565
1565
  return limitFlattenIdLength(id.replaceAll(/_+/g, "$&__").replaceAll("/", "_").replaceAll(".", "__").replace(replaceNestedIdRE, "_n_").replace(invalidUrlPathCharRE, (c) => "_0" + c.charCodeAt(0).toString(16) + "_"));
1566
1566
  };
1567
- const FLATTEN_ID_HASH_LENGTH = 8;
1568
1567
  const FLATTEN_ID_MAX_FILE_LENGTH = 170;
1569
1568
  const limitFlattenIdLength = (id, limit = FLATTEN_ID_MAX_FILE_LENGTH) => {
1570
1569
  if (id.length <= limit) return id;
1571
- return id.slice(0, limit - (FLATTEN_ID_HASH_LENGTH + 1)) + "_" + getHash(id);
1570
+ return id.slice(0, limit - 9) + "_" + getHash(id);
1572
1571
  };
1573
1572
  const normalizeId = (id) => id.replace(replaceNestedIdRE, " > ");
1574
1573
  const NODE_BUILTIN_NAMESPACE = "node:";
@@ -12516,7 +12515,7 @@ function checkPublicFile(url, config) {
12516
12515
  return tryStatSync(publicFile)?.isFile() ? publicFile : void 0;
12517
12516
  }
12518
12517
  //#endregion
12519
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/constants.js
12518
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/constants.js
12520
12519
  var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12521
12520
  const BINARY_TYPES = [
12522
12521
  "nodebuffer",
@@ -12539,7 +12538,7 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12539
12538
  };
12540
12539
  }));
12541
12540
  //#endregion
12542
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/buffer-util.js
12541
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/buffer-util.js
12543
12542
  var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12544
12543
  const { EMPTY_BUFFER } = require_constants();
12545
12544
  const FastBuffer = Buffer[Symbol.species];
@@ -12639,7 +12638,7 @@ var require_buffer_util = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12639
12638
  } catch (e) {}
12640
12639
  }));
12641
12640
  //#endregion
12642
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/limiter.js
12641
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/limiter.js
12643
12642
  var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12644
12643
  const kDone = Symbol("kDone");
12645
12644
  const kRun = Symbol("kRun");
@@ -12690,7 +12689,7 @@ var require_limiter = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12690
12689
  module.exports = Limiter;
12691
12690
  }));
12692
12691
  //#endregion
12693
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/permessage-deflate.js
12692
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/permessage-deflate.js
12694
12693
  var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12695
12694
  const zlib$1 = __require("zlib");
12696
12695
  const bufferUtil = require_buffer_util();
@@ -13023,7 +13022,7 @@ var require_permessage_deflate = /* @__PURE__ */ __commonJSMin(((exports, module
13023
13022
  }
13024
13023
  }));
13025
13024
  //#endregion
13026
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/validation.js
13025
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/validation.js
13027
13026
  var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13028
13027
  const { isUtf8 } = __require("buffer");
13029
13028
  const { hasBlob } = require_constants();
@@ -13219,7 +13218,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13219
13218
  } catch (e) {}
13220
13219
  }));
13221
13220
  //#endregion
13222
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/receiver.js
13221
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/receiver.js
13223
13222
  var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13224
13223
  const { Writable: Writable$1 } = __require("stream");
13225
13224
  const PerMessageDeflate = require_permessage_deflate();
@@ -13666,10 +13665,11 @@ var require_receiver = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13666
13665
  module.exports = Receiver;
13667
13666
  }));
13668
13667
  //#endregion
13669
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/sender.js
13668
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/sender.js
13670
13669
  var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13671
13670
  const { Duplex: Duplex$3 } = __require("stream");
13672
13671
  const { randomFillSync } = __require("crypto");
13672
+ const { types: { isUint8Array } } = __require("util");
13673
13673
  const PerMessageDeflate = require_permessage_deflate();
13674
13674
  const { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
13675
13675
  const { isBlob, isValidStatusCode } = require_validation();
@@ -13813,7 +13813,8 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13813
13813
  buf = Buffer.allocUnsafe(2 + length);
13814
13814
  buf.writeUInt16BE(code, 0);
13815
13815
  if (typeof data === "string") buf.write(data, 2);
13816
- else buf.set(data, 2);
13816
+ else if (isUint8Array(data)) buf.set(data, 2);
13817
+ else throw new TypeError("Second argument must be a string or a Uint8Array");
13817
13818
  }
13818
13819
  const options = {
13819
13820
  [kByteLength]: buf.length,
@@ -14158,7 +14159,7 @@ var require_sender = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14158
14159
  }
14159
14160
  }));
14160
14161
  //#endregion
14161
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/event-target.js
14162
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/event-target.js
14162
14163
  var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14163
14164
  const { kForOnEventAttribute, kListener } = require_constants();
14164
14165
  const kCode = Symbol("kCode");
@@ -14389,7 +14390,7 @@ var require_event_target = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14389
14390
  }
14390
14391
  }));
14391
14392
  //#endregion
14392
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/extension.js
14393
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/extension.js
14393
14394
  var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14394
14395
  const { tokenChars } = require_validation();
14395
14396
  /**
@@ -14532,7 +14533,7 @@ var require_extension = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14532
14533
  };
14533
14534
  }));
14534
14535
  //#endregion
14535
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket.js
14536
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket.js
14536
14537
  var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
14537
14538
  const EventEmitter$2 = __require("events");
14538
14539
  const https$3 = __require("https");
@@ -15507,7 +15508,7 @@ var require_websocket = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15507
15508
  }
15508
15509
  }));
15509
15510
  //#endregion
15510
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/stream.js
15511
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/stream.js
15511
15512
  var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15512
15513
  require_websocket();
15513
15514
  const { Duplex: Duplex$1 } = __require("stream");
@@ -15623,7 +15624,7 @@ var require_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15623
15624
  module.exports = createWebSocketStream;
15624
15625
  }));
15625
15626
  //#endregion
15626
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/subprotocol.js
15627
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/subprotocol.js
15627
15628
  var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15628
15629
  const { tokenChars } = require_validation();
15629
15630
  /**
@@ -15662,7 +15663,7 @@ var require_subprotocol = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15662
15663
  module.exports = { parse };
15663
15664
  }));
15664
15665
  //#endregion
15665
- //#region ../../node_modules/.pnpm/ws@8.20.0/node_modules/ws/lib/websocket-server.js
15666
+ //#region ../../node_modules/.pnpm/ws@8.20.1/node_modules/ws/lib/websocket-server.js
15666
15667
  var require_websocket_server = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15667
15668
  const EventEmitter$1 = __require("events");
15668
15669
  const http$4 = __require("http");
@@ -19556,7 +19557,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19556
19557
  };
19557
19558
  }));
19558
19559
  //#endregion
19559
- //#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
19560
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.15_tsx@4.22.3_yaml@2.9.0/node_modules/postcss-load-config/src/req.js
19560
19561
  var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19561
19562
  const { createRequire: createRequire$1 } = __require("node:module");
19562
19563
  const { fileURLToPath: fileURLToPath$1, pathToFileURL: pathToFileURL$1 } = __require("node:url");
@@ -19598,7 +19599,7 @@ var require_req = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19598
19599
  module.exports = req;
19599
19600
  }));
19600
19601
  //#endregion
19601
- //#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
19602
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.15_tsx@4.22.3_yaml@2.9.0/node_modules/postcss-load-config/src/options.js
19602
19603
  var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19603
19604
  const req = require_req();
19604
19605
  /**
@@ -19632,7 +19633,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19632
19633
  module.exports = options;
19633
19634
  }));
19634
19635
  //#endregion
19635
- //#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
19636
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.15_tsx@4.22.3_yaml@2.9.0/node_modules/postcss-load-config/src/plugins.js
19636
19637
  var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19637
19638
  const req = require_req();
19638
19639
  /**
@@ -19686,7 +19687,7 @@ var require_plugins = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19686
19687
  module.exports = plugins;
19687
19688
  }));
19688
19689
  //#endregion
19689
- //#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
19690
+ //#region ../../node_modules/.pnpm/postcss-load-config@6.0.1_jiti@2.6.1_postcss@8.5.15_tsx@4.22.3_yaml@2.9.0/node_modules/postcss-load-config/src/index.js
19690
19691
  var require_src = /* @__PURE__ */ __commonJSMin(((exports, module) => {
19691
19692
  const { resolve: resolve$3 } = __require("node:path");
19692
19693
  const config = require_src$1();
@@ -21925,9 +21926,8 @@ async function compileLightningCSS(environment, id, src, deps, workerController,
21925
21926
  };
21926
21927
  }
21927
21928
  function getLightningCssErrorMessageForIeSyntaxes(code) {
21928
- const commonIeMessage = ", which was used in the past to support old Internet Explorer versions. This is not a valid CSS syntax and will be ignored by modern browsers. \nWhile this is not supported by LightningCSS, you can set `css.lightningcss.errorRecovery: true` to strip these codes.";
21929
- if (/[\s;{]\*[a-zA-Z-][\w-]+\s*:/.test(code)) return ".\nThis file contains star property hack (e.g. `*zoom`)" + commonIeMessage;
21930
- if (/min-width:\s*0\\0/.test(code)) return ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`)" + commonIeMessage;
21929
+ if (/[\s;{]\*[a-zA-Z-][\w-]+\s*:/.test(code)) return ".\nThis file contains star property hack (e.g. `*zoom`), which was used in the past to support old Internet Explorer versions. This is not a valid CSS syntax and will be ignored by modern browsers. \nWhile this is not supported by LightningCSS, you can set `css.lightningcss.errorRecovery: true` to strip these codes.";
21930
+ if (/min-width:\s*0\\0/.test(code)) return ".\nThis file contains @media zero hack (e.g. `@media (min-width: 0\\0)`), which was used in the past to support old Internet Explorer versions. This is not a valid CSS syntax and will be ignored by modern browsers. \nWhile this is not supported by LightningCSS, you can set `css.lightningcss.errorRecovery: true` to strip these codes.";
21931
21931
  }
21932
21932
  const map = {
21933
21933
  chrome: "chrome",
@@ -22077,7 +22077,7 @@ function resolveLibCssFilename(libOptions, root, packageCache) {
22077
22077
  //#endregion
22078
22078
  //#region src/node/plugins/modulePreloadPolyfill.ts
22079
22079
  const modulePreloadPolyfillId = "vite/modulepreload-polyfill";
22080
- const resolvedModulePreloadPolyfillId = "\0" + modulePreloadPolyfillId + ".js";
22080
+ const resolvedModulePreloadPolyfillId = "\0vite/modulepreload-polyfill.js";
22081
22081
  function modulePreloadPolyfillPlugin() {
22082
22082
  return {
22083
22083
  name: "vite:modulepreload-polyfill",
@@ -25259,13 +25259,16 @@ const wordCharRE = /\w/;
25259
25259
  function isBareRelative(url) {
25260
25260
  return wordCharRE.test(url[0]) && !url.includes(":");
25261
25261
  }
25262
+ function getHtmlDirnameForRelativeUrl(htmlPath) {
25263
+ return htmlPath.endsWith("/") ? htmlPath : path.posix.dirname(htmlPath);
25264
+ }
25262
25265
  const processNodeUrl = (url, useSrcSetReplacer, config, htmlPath, originalUrl, server, isClassicScriptLink) => {
25263
25266
  const replacer = (url) => {
25264
25267
  if (url[0] === "/" && url[1] !== "/" || (url[0] === "." || isBareRelative(url)) && originalUrl && originalUrl !== "/" && htmlPath === "/index.html") url = path.posix.join(config.base, url);
25265
25268
  let preTransformUrl;
25266
25269
  if (!isClassicScriptLink && shouldPreTransform(url, config)) {
25267
25270
  if (url[0] === "/" && url[1] !== "/") preTransformUrl = url;
25268
- else if (url[0] === "." || isBareRelative(url)) preTransformUrl = path.posix.join(config.base, path.posix.dirname(htmlPath), url);
25271
+ else if (url[0] === "." || isBareRelative(url)) preTransformUrl = path.posix.join(config.base, getHtmlDirnameForRelativeUrl(htmlPath), url);
25269
25272
  }
25270
25273
  if (server) {
25271
25274
  const mod = server.environments.client.moduleGraph.urlToModuleMap.get(preTransformUrl || url);
@@ -29071,7 +29074,6 @@ async function transformGlobImport(code, id, root, resolveId, restoreQueryExtens
29071
29074
  if (options.base) {
29072
29075
  filePath = relative$1(posix.join(options.base[0] === "/" ? root : dir, options.base), file);
29073
29076
  if (!filePath.startsWith("./") && !filePath.startsWith("../")) filePath = `./${filePath}`;
29074
- if (options.base[0] === "/") importPath = `/${relative$1(root, file)}`;
29075
29077
  } else if (isRelative) filePath = importPath;
29076
29078
  else {
29077
29079
  filePath = relative$1(root, file);
@@ -29256,7 +29258,7 @@ function createFilterForTransform(idFilter, codeFilter, moduleTypeFilter, cwd) {
29256
29258
  };
29257
29259
  }
29258
29260
  //#endregion
29259
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/helpers.js
29261
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/helpers.js
29260
29262
  function notNullish(v) {
29261
29263
  return v != null;
29262
29264
  }
@@ -29264,7 +29266,7 @@ function isPrimitive(value) {
29264
29266
  return value === null || typeof value !== "function" && typeof value !== "object";
29265
29267
  }
29266
29268
  //#endregion
29267
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29269
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/chunk-pathe.M-eThtNZ.js
29268
29270
  const _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
29269
29271
  function normalizeWindowsPath(input = "") {
29270
29272
  if (!input) return input;
@@ -29343,7 +29345,7 @@ const isAbsolute$2 = function(p) {
29343
29345
  return _IS_ABSOLUTE_RE.test(p);
29344
29346
  };
29345
29347
  //#endregion
29346
- //#region ../../node_modules/.pnpm/@vitest+utils@4.1.5/node_modules/@vitest/utils/dist/source-map.js
29348
+ //#region ../../node_modules/.pnpm/@vitest+utils@4.1.7/node_modules/@vitest/utils/dist/source-map.js
29347
29349
  var comma = ",".charCodeAt(0);
29348
29350
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
29349
29351
  var intToChar = new Uint8Array(64);
@@ -30816,12 +30818,13 @@ async function computeEntries(environment) {
30816
30818
  }
30817
30819
  async function prepareRolldownScanner(environment, entries, deps, missing) {
30818
30820
  const { plugins: pluginsFromConfig = [], ...rolldownOptions } = environment.config.optimizeDeps.rolldownOptions ?? {};
30819
- const plugins = await asyncFlatten(arraify(pluginsFromConfig));
30820
- plugins.push(...rolldownScanPlugin(environment, deps, missing, entries));
30821
30821
  const transformOptions = deepClone(rolldownOptions.transform) ?? {};
30822
30822
  if (transformOptions.jsx === void 0) transformOptions.jsx = {};
30823
30823
  else if (transformOptions.jsx === "react" || transformOptions.jsx === "react-jsx") transformOptions.jsx = getRollupJsxPresets(transformOptions.jsx);
30824
30824
  if (typeof transformOptions.jsx === "object") transformOptions.jsx.development ??= !environment.config.isProduction;
30825
+ const transformSyncJsxOptions = transformOptions.jsx === false ? void 0 : transformOptions.jsx;
30826
+ const plugins = await asyncFlatten(arraify(pluginsFromConfig));
30827
+ plugins.push(...rolldownScanPlugin(environment, deps, missing, entries, transformSyncJsxOptions));
30825
30828
  async function build() {
30826
30829
  await scan({
30827
30830
  ...rolldownOptions,
@@ -30860,7 +30863,7 @@ const typeRE = /\btype\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i;
30860
30863
  const langRE = /\blang\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i;
30861
30864
  const svelteScriptModuleRE = /\bcontext\s*=\s*(?:"([^"]+)"|'([^']+)'|([^\s'">]+))/i;
30862
30865
  const svelteModuleRE = /\smodule\b/i;
30863
- function rolldownScanPlugin(environment, depImports, missing, entries) {
30866
+ function rolldownScanPlugin(environment, depImports, missing, entries, jsxOptions) {
30864
30867
  const seen = /* @__PURE__ */ new Map();
30865
30868
  async function resolveId(id, importer, options) {
30866
30869
  return environment.pluginContainer.resolveId(id, importer && normalizePath(importer), {
@@ -30894,6 +30897,7 @@ function rolldownScanPlugin(environment, depImports, missing, entries) {
30894
30897
  let transpiledContents;
30895
30898
  if (loader !== "js") {
30896
30899
  const result = transformSync(id, contents, {
30900
+ ...jsxOptions !== void 0 ? { jsx: jsxOptions } : {},
30897
30901
  lang: loader,
30898
30902
  tsconfig: false
30899
30903
  });
@@ -1,6 +1,6 @@
1
1
  import { H as __require, z as __commonJSMin } from "./logger.js";
2
2
  import { t as require_lib } from "./lib.js";
3
- //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.14/node_modules/postcss-import/lib/format-import-prelude.js
3
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/base64-encoded-import.js
18
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-conditions.js
31
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-raws.js
106
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/apply-styles.js
120
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/data-url.js
140
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/parse-statements.js
159
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/process-content.js
284
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/lib/parse-styles.js
318
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.14/node_modules/postcss-import/index.js
421
+ //#region ../../node_modules/.pnpm/postcss-import@16.1.1_postcss@8.5.15/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.21_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.24_typescript@6.0.3_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,7 +41,7 @@ interface StartOptions {
41
41
  open?: boolean;
42
42
  }
43
43
  //#endregion
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
44
+ //#region ../../node_modules/.pnpm/@vitejs+devtools@0.1.24_typescript@6.0.3_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;
@@ -2999,6 +2999,14 @@ type PluginOption = Thenable<Plugin | {
2999
2999
  */
3000
3000
  declare function perEnvironmentPlugin(name: string, applyToEnvironment: (environment: PartialEnvironment) => boolean | Promise<boolean> | PluginOption): Plugin;
3001
3001
  //#endregion
3002
+ //#region src/node/idResolver.d.ts
3003
+ type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
3004
+ /**
3005
+ * Create an internal resolver to be used in special scenarios, e.g.
3006
+ * optimizer and handling css @imports
3007
+ */
3008
+ declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3009
+ //#endregion
3002
3010
  //#region src/node/plugins/css.d.ts
3003
3011
  interface CSSOptions {
3004
3012
  /**
@@ -3673,14 +3681,6 @@ declare function loadConfigFromFile(configEnv: ConfigEnv, configFile?: string, c
3673
3681
  dependencies: string[];
3674
3682
  } | null>;
3675
3683
  //#endregion
3676
- //#region src/node/idResolver.d.ts
3677
- type ResolveIdFn = (environment: PartialEnvironment, id: string, importer?: string, aliasOnly?: boolean) => Promise<string | undefined>;
3678
- /**
3679
- * Create an internal resolver to be used in special scenarios, e.g.
3680
- * optimizer and handling css @imports
3681
- */
3682
- declare function createIdResolver(config: ResolvedConfig, options?: Partial<InternalResolveOptions>): ResolveIdFn;
3683
- //#endregion
3684
3684
  //#region src/node/server/middlewares/error.d.ts
3685
3685
  declare function buildErrorMessage(err: RollupError, args?: string[], includeStack?: boolean): string;
3686
3686
  //#endregion
@@ -645,17 +645,23 @@ const createInvokeableTransport = (transport) => {
645
645
  async send(data) {
646
646
  if (invokeableTransport.send) {
647
647
  if (!isConnected) if (connectingPromise) await connectingPromise;
648
- else throw Error("send was called before connect");
648
+ else throw new SendBeforeConnectError("send was called before connect");
649
649
  await invokeableTransport.send(data);
650
650
  }
651
651
  },
652
652
  async invoke(name, data) {
653
653
  if (!isConnected) if (connectingPromise) await connectingPromise;
654
- else throw Error("invoke was called before connect");
654
+ else throw new SendBeforeConnectError("invoke was called before connect");
655
655
  return invokeableTransport.invoke(name, data);
656
656
  }
657
657
  };
658
- }, createWebSocketModuleRunnerTransport = (options) => {
658
+ };
659
+ var SendBeforeConnectError = class extends Error {
660
+ constructor(message) {
661
+ super(message), this.name = "SendBeforeConnectError";
662
+ }
663
+ };
664
+ const createWebSocketModuleRunnerTransport = (options) => {
659
665
  let pingInterval = options.pingInterval ?? 3e4, ws, pingIntervalId;
660
666
  return {
661
667
  async connect({ onMessage, onDisconnection }) {
@@ -1051,7 +1057,6 @@ function createImportMetaResolver() {
1051
1057
  function importMetaResolveWithCustomHook(specifier, importer) {
1052
1058
  return import.meta.resolve(`${customizationHookNamespace}${JSON.stringify([specifier, importer])}`);
1053
1059
  }
1054
- `${customizationHookNamespace}`;
1055
1060
  //#endregion
1056
1061
  //#region src/module-runner/createImportMeta.ts
1057
1062
  const envProxy = new Proxy({}, { get(_, p) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vite",
3
- "version": "8.0.13",
3
+ "version": "8.0.14",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "author": "Evan You",
@@ -62,8 +62,8 @@
62
62
  "dependencies": {
63
63
  "lightningcss": "^1.32.0",
64
64
  "picomatch": "^4.0.4",
65
- "postcss": "^8.5.14",
66
- "rolldown": "1.0.1",
65
+ "postcss": "^8.5.15",
66
+ "rolldown": "1.0.2",
67
67
  "tinyglobby": "^0.2.16"
68
68
  },
69
69
  "optionalDependencies": {
@@ -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.5",
84
- "@vitejs/devtools": "^0.1.21",
83
+ "@vitest/utils": "4.1.7",
84
+ "@vitejs/devtools": "^0.1.24",
85
85
  "artichokie": "^0.4.3",
86
- "baseline-browser-mapping": "^2.10.29",
86
+ "baseline-browser-mapping": "^2.10.31",
87
87
  "cac": "^7.0.0",
88
88
  "chokidar": "^3.6.0",
89
89
  "connect": "^3.7.0",
@@ -114,7 +114,7 @@
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.25.0",
117
+ "rolldown-plugin-dts": "^0.25.1",
118
118
  "rollup": "^4.59.0",
119
119
  "rollup-plugin-license": "^3.7.1",
120
120
  "sass": "^1.99.0",
@@ -123,7 +123,7 @@
123
123
  "strip-literal": "^3.1.0",
124
124
  "terser": "^5.47.1",
125
125
  "ufo": "^1.6.4",
126
- "ws": "^8.20.0"
126
+ "ws": "^8.20.1"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@types/node": "^20.19.0 || >=22.12.0",