vite 6.0.6 → 6.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of vite might be problematic. Click here for more details.

@@ -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 === void 0) {
83
+ if (existing === undefined) {
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 : void 0)
209
+ deps.map((dep) => dep === acceptedPath ? fetchedModule : undefined)
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 = void 0;
382
+ connectingPromise = undefined;
383
383
  }
384
384
  isConnected = true;
385
385
  }
@@ -1036,7 +1036,7 @@ if ("document" in globalThis) {
1036
1036
  sheetsMap.set(el.getAttribute("data-vite-dev-id"), el);
1037
1037
  });
1038
1038
  }
1039
- const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : void 0;
1039
+ const cspNonce = "document" in globalThis ? document.querySelector("meta[property=csp-nonce]")?.nonce : undefined;
1040
1040
  let lastInsertedStyle;
1041
1041
  function updateStyle(id, content) {
1042
1042
  let style = sheetsMap.get(id);
@@ -1051,7 +1051,7 @@ function updateStyle(id, content) {
1051
1051
  if (!lastInsertedStyle) {
1052
1052
  document.head.appendChild(style);
1053
1053
  setTimeout(() => {
1054
- lastInsertedStyle = void 0;
1054
+ lastInsertedStyle = undefined;
1055
1055
  }, 0);
1056
1056
  } else {
1057
1057
  lastInsertedStyle.insertAdjacentElement("afterend", style);