vite 6.1.1 → 6.2.0-beta.0
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.
- package/dist/client/client.mjs +5 -5
- package/dist/node/chunks/{dep-B42HB7IL.js → dep-8m3w9g5k.js} +254 -140
- package/dist/node/chunks/{dep-Cg8OuIew.js → dep-C6SLLVWG.js} +762 -1551
- package/dist/node/chunks/{dep-CJRd4GTw.js → dep-CtqJUVir.js} +1 -1
- package/dist/node/chunks/{dep-DcIXjcop.js → dep-CvfTChi5.js} +18 -21
- package/dist/node/cli.js +19 -18
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.js +2 -2
- package/dist/node/module-runner.d.ts +1 -1
- package/dist/node-cjs/publicUtils.cjs +31 -98
- package/package.json +2 -2
package/dist/client/client.mjs
CHANGED
@@ -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 ===
|
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 :
|
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 =
|
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 :
|
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 =
|
1060
|
+
lastInsertedStyle = void 0;
|
1061
1061
|
}, 0);
|
1062
1062
|
} else {
|
1063
1063
|
lastInsertedStyle.insertAdjacentElement("afterend", style);
|