vite 6.1.1 → 6.2.0-beta.1

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.
@@ -80,7 +80,7 @@ class HMRContext {
80
80
  off(event, cb) {
81
81
  const removeFromMap = (map) => {
82
82
  const existing = map.get(event);
83
- if (existing === undefined) {
83
+ if (existing === void 0) {
84
84
  return;
85
85
  }
86
86
  const pruned = existing.filter((l) => l !== cb);
@@ -206,7 +206,7 @@ class HMRClient {
206
206
  return () => {
207
207
  for (const { deps, fn } of qualifiedCallbacks) {
208
208
  fn(
209
- deps.map((dep) => dep === acceptedPath ? fetchedModule : undefined)
209
+ deps.map((dep) => dep === acceptedPath ? fetchedModule : void 0)
210
210
  );
211
211
  }
212
212
  const loggedPath = isSelfUpdate ? path : `${acceptedPath} via ${path}`;
@@ -379,7 +379,7 @@ const normalizeModuleRunnerTransport = (transport) => {
379
379
  if (maybePromise) {
380
380
  connectingPromise = maybePromise;
381
381
  await connectingPromise;
382
- connectingPromise = undefined;
382
+ connectingPromise = void 0;
383
383
  }
384
384
  isConnected = true;
385
385
  }
@@ -1042,7 +1042,7 @@ if ("document" in globalThis) {
1042
1042
  sheetsMap.set(el.getAttribute("data-vite-dev-id"), el);
1043
1043
  });
1044
1044
  }
1045
- const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : undefined;
1045
+ const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0;
1046
1046
  let lastInsertedStyle;
1047
1047
  function updateStyle(id, content) {
1048
1048
  let style = sheetsMap.get(id);
@@ -1057,7 +1057,7 @@ function updateStyle(id, content) {
1057
1057
  if (!lastInsertedStyle) {
1058
1058
  document.head.appendChild(style);
1059
1059
  setTimeout(() => {
1060
- lastInsertedStyle = undefined;
1060
+ lastInsertedStyle = void 0;
1061
1061
  }, 0);
1062
1062
  } else {
1063
1063
  lastInsertedStyle.insertAdjacentElement("afterend", style);
@@ -1,4 +1,4 @@
1
- import { P as getDefaultExportFromCjs } from './dep-Cg8OuIew.js';
1
+ import { P as getDefaultExportFromCjs } from './dep-CuXbLJyX.js';
2
2
  import require$$0 from 'path';
3
3
  import { l as lib } from './dep-3RmXg9uo.js';
4
4