vite 7.0.6 → 7.1.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/LICENSE.md +53 -79
- package/bin/openChrome.js +68 -0
- package/dist/client/client.mjs +107 -18
- package/dist/node/chunks/{dep-Ctugieod.js → dep-BDCsDwBr.js} +2 -1
- package/dist/node/chunks/{dep-BO5GbxpL.js → dep-BeiFehmI.js} +14 -14
- package/dist/node/chunks/{dep-Ck0J6tA7.js → dep-C3Gi22Hg.js} +2 -2
- package/dist/node/chunks/{dep-CmzxWWz4.js → dep-CVQJZ3QI.js} +2 -2
- package/dist/node/chunks/{dep-BHkUv4Z8.js → dep-CYKWp2mZ.js} +2451 -2224
- package/dist/node/chunks/{dep-Bg9-PZ8I.js → dep-DQ3EcyiN.js} +2 -2
- package/dist/node/chunks/{dep-PzytSxfE.js → dep-KxHho39H.js} +2 -2
- package/dist/node/cli.js +6 -6
- package/dist/node/constants.js +2 -2
- package/dist/node/index.d.ts +216 -171
- package/dist/node/index.js +3 -3
- package/dist/node/module-runner.d.ts +14 -2
- package/dist/node/module-runner.js +67 -17
- package/package.json +7 -6
- package/types/metadata.d.ts +0 -2
- package/bin/openChrome.applescript +0 -95
package/LICENSE.md
CHANGED
@@ -360,6 +360,38 @@ Repository: lukeed/polka
|
|
360
360
|
|
361
361
|
---------------------------------------
|
362
362
|
|
363
|
+
## @rolldown/pluginutils
|
364
|
+
License: MIT
|
365
|
+
Repository: git+https://github.com/rolldown/rolldown.git
|
366
|
+
|
367
|
+
> MIT License
|
368
|
+
>
|
369
|
+
> Copyright (c) 2024-present VoidZero Inc. & Contributors
|
370
|
+
>
|
371
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
372
|
+
> of this software and associated documentation files (the "Software"), to deal
|
373
|
+
> in the Software without restriction, including without limitation the rights
|
374
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
375
|
+
> copies of the Software, and to permit persons to whom the Software is
|
376
|
+
> furnished to do so, subject to the following conditions:
|
377
|
+
>
|
378
|
+
> The above copyright notice and this permission notice shall be included in all
|
379
|
+
> copies or substantial portions of the Software.
|
380
|
+
>
|
381
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
382
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
383
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
384
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
385
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
386
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
387
|
+
> SOFTWARE.
|
388
|
+
>
|
389
|
+
> end of terms and conditions
|
390
|
+
>
|
391
|
+
> The licenses of externally maintained libraries from which parts of the Software is derived are listed [here](https://github.com/rolldown/rolldown/blob/main/THIRD-PARTY-LICENSE).
|
392
|
+
|
393
|
+
---------------------------------------
|
394
|
+
|
363
395
|
## @rollup/plugin-alias, @rollup/plugin-commonjs, @rollup/plugin-dynamic-import-vars, @rollup/pluginutils
|
364
396
|
License: MIT
|
365
397
|
By: Johannes Stein
|
@@ -1027,35 +1059,6 @@ Repository: jshttp/etag
|
|
1027
1059
|
|
1028
1060
|
---------------------------------------
|
1029
1061
|
|
1030
|
-
## eventemitter3
|
1031
|
-
License: MIT
|
1032
|
-
By: Arnout Kazemier
|
1033
|
-
Repository: git://github.com/primus/eventemitter3.git
|
1034
|
-
|
1035
|
-
> The MIT License (MIT)
|
1036
|
-
>
|
1037
|
-
> Copyright (c) 2014 Arnout Kazemier
|
1038
|
-
>
|
1039
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
1040
|
-
> of this software and associated documentation files (the "Software"), to deal
|
1041
|
-
> in the Software without restriction, including without limitation the rights
|
1042
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
1043
|
-
> copies of the Software, and to permit persons to whom the Software is
|
1044
|
-
> furnished to do so, subject to the following conditions:
|
1045
|
-
>
|
1046
|
-
> The above copyright notice and this permission notice shall be included in all
|
1047
|
-
> copies or substantial portions of the Software.
|
1048
|
-
>
|
1049
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
1050
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
1051
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
1052
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
1053
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
1054
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
1055
|
-
> SOFTWARE.
|
1056
|
-
|
1057
|
-
---------------------------------------
|
1058
|
-
|
1059
1062
|
## finalhandler
|
1060
1063
|
License: MIT
|
1061
1064
|
By: Douglas Christopher Wilson
|
@@ -1193,33 +1196,33 @@ Repository: git+https://github.com/sapphi-red/host-validation-middleware.git
|
|
1193
1196
|
|
1194
1197
|
---------------------------------------
|
1195
1198
|
|
1196
|
-
## http-proxy
|
1199
|
+
## http-proxy-3
|
1197
1200
|
License: MIT
|
1198
|
-
By: Charlie Robbins,
|
1199
|
-
Repository: https://github.com/
|
1201
|
+
By: William Stein, Charlie Robbins, Jimb Esser, jcrugzz
|
1202
|
+
Repository: https://github.com/sagemathinc/http-proxy-3.git
|
1200
1203
|
|
1201
|
-
> node-http-
|
1204
|
+
> node-http-3
|
1202
1205
|
>
|
1203
|
-
>
|
1206
|
+
> Copyright (c) 2010-2025 William Stein, Charlie Robbins, Jarrett Cruger & the Contributors.
|
1204
1207
|
>
|
1205
|
-
>
|
1206
|
-
>
|
1207
|
-
>
|
1208
|
-
>
|
1209
|
-
>
|
1210
|
-
>
|
1211
|
-
>
|
1208
|
+
> Permission is hereby granted, free of charge, to any person obtaining
|
1209
|
+
> a copy of this software and associated documentation files (the
|
1210
|
+
> "Software"), to deal in the Software without restriction, including
|
1211
|
+
> without limitation the rights to use, copy, modify, merge, publish,
|
1212
|
+
> distribute, sublicense, and/or sell copies of the Software, and to
|
1213
|
+
> permit persons to whom the Software is furnished to do so, subject to
|
1214
|
+
> the following conditions:
|
1212
1215
|
>
|
1213
|
-
>
|
1214
|
-
>
|
1216
|
+
> The above copyright notice and this permission notice shall be
|
1217
|
+
> included in all copies or substantial portions of the Software.
|
1215
1218
|
>
|
1216
|
-
>
|
1217
|
-
>
|
1218
|
-
>
|
1219
|
-
>
|
1220
|
-
>
|
1221
|
-
>
|
1222
|
-
>
|
1219
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
1220
|
+
> EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
1221
|
+
> MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
1222
|
+
> NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
1223
|
+
> LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
1224
|
+
> OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
1225
|
+
> WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
1223
1226
|
|
1224
1227
|
---------------------------------------
|
1225
1228
|
|
@@ -2057,35 +2060,6 @@ Repository: git://github.com/paulmillr/readdirp.git
|
|
2057
2060
|
|
2058
2061
|
---------------------------------------
|
2059
2062
|
|
2060
|
-
## requires-port
|
2061
|
-
License: MIT
|
2062
|
-
By: Arnout Kazemier
|
2063
|
-
Repository: https://github.com/unshiftio/requires-port
|
2064
|
-
|
2065
|
-
> The MIT License (MIT)
|
2066
|
-
>
|
2067
|
-
> Copyright (c) 2015 Unshift.io, Arnout Kazemier, the Contributors.
|
2068
|
-
>
|
2069
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
2070
|
-
> of this software and associated documentation files (the "Software"), to deal
|
2071
|
-
> in the Software without restriction, including without limitation the rights
|
2072
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
2073
|
-
> copies of the Software, and to permit persons to whom the Software is
|
2074
|
-
> furnished to do so, subject to the following conditions:
|
2075
|
-
>
|
2076
|
-
> The above copyright notice and this permission notice shall be included in all
|
2077
|
-
> copies or substantial portions of the Software.
|
2078
|
-
>
|
2079
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
2080
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
2081
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2082
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
2083
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
2084
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
2085
|
-
> SOFTWARE.
|
2086
|
-
|
2087
|
-
---------------------------------------
|
2088
|
-
|
2089
2063
|
## resolve.exports, totalist
|
2090
2064
|
License: MIT
|
2091
2065
|
By: Luke Edwards
|
@@ -0,0 +1,68 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2015-present, Facebook, Inc.
|
3
|
+
|
4
|
+
This source code is licensed under the MIT license found in the
|
5
|
+
LICENSE file at
|
6
|
+
https://github.com/facebookincubator/create-react-app/blob/master/LICENSE
|
7
|
+
*/
|
8
|
+
|
9
|
+
/* global Application */
|
10
|
+
|
11
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
12
|
+
function run(argv) {
|
13
|
+
const urlToOpen = argv[0]
|
14
|
+
// Allow requested program to be optional, default to Google Chrome
|
15
|
+
const programName = argv[1] ?? 'Google Chrome'
|
16
|
+
|
17
|
+
const app = Application(programName)
|
18
|
+
|
19
|
+
if (app.windows.length === 0) {
|
20
|
+
app.Window().make()
|
21
|
+
}
|
22
|
+
|
23
|
+
// 1: Looking for tab running debugger then,
|
24
|
+
// Reload debugging tab if found, then return
|
25
|
+
const found = lookupTabWithUrl(urlToOpen, app)
|
26
|
+
if (found) {
|
27
|
+
found.targetWindow.activeTabIndex = found.targetTabIndex
|
28
|
+
found.targetTab.reload()
|
29
|
+
found.targetWindow.index = 1
|
30
|
+
app.activate()
|
31
|
+
return
|
32
|
+
}
|
33
|
+
|
34
|
+
// 2: Looking for Empty tab
|
35
|
+
// In case debugging tab was not found
|
36
|
+
// We try to find an empty tab instead
|
37
|
+
const emptyTabFound = lookupTabWithUrl('chrome://newtab/', app)
|
38
|
+
if (emptyTabFound) {
|
39
|
+
emptyTabFound.targetWindow.activeTabIndex = emptyTabFound.targetTabIndex
|
40
|
+
emptyTabFound.targetTab.url = urlToOpen
|
41
|
+
app.activate()
|
42
|
+
return
|
43
|
+
}
|
44
|
+
|
45
|
+
// 3: Create new tab
|
46
|
+
// both debugging and empty tab were not found make a new tab with url
|
47
|
+
const firstWindow = app.windows[0]
|
48
|
+
firstWindow.tabs.push(app.Tab({ url: urlToOpen }))
|
49
|
+
app.activate()
|
50
|
+
}
|
51
|
+
|
52
|
+
/**
|
53
|
+
* Lookup tab with given url
|
54
|
+
*/
|
55
|
+
function lookupTabWithUrl(lookupUrl, app) {
|
56
|
+
const windows = app.windows()
|
57
|
+
for (const window of windows) {
|
58
|
+
for (const [tabIndex, tab] of window.tabs().entries()) {
|
59
|
+
if (tab.url().includes(lookupUrl)) {
|
60
|
+
return {
|
61
|
+
targetTab: tab,
|
62
|
+
targetTabIndex: tabIndex + 1,
|
63
|
+
targetWindow: window,
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
package/dist/client/client.mjs
CHANGED
@@ -804,7 +804,7 @@ const debounceReload = (time) => {
|
|
804
804
|
}, time);
|
805
805
|
};
|
806
806
|
};
|
807
|
-
const pageReload = debounceReload(
|
807
|
+
const pageReload = debounceReload(20);
|
808
808
|
const hmrClient = new HMRClient({
|
809
809
|
error: (err) => console.error("[vite]", err),
|
810
810
|
debug: (...msg) => console.debug("[vite]", ...msg)
|
@@ -917,7 +917,99 @@ function clearErrorOverlay() {
|
|
917
917
|
function hasErrorOverlay() {
|
918
918
|
return document.querySelectorAll(overlayId).length;
|
919
919
|
}
|
920
|
-
|
920
|
+
function waitForSuccessfulPing(socketUrl) {
|
921
|
+
if (typeof SharedWorker === "undefined") {
|
922
|
+
const visibilityManager = {
|
923
|
+
currentState: document.visibilityState,
|
924
|
+
listeners: /* @__PURE__ */ new Set()
|
925
|
+
};
|
926
|
+
const onVisibilityChange = () => {
|
927
|
+
visibilityManager.currentState = document.visibilityState;
|
928
|
+
for (const listener of visibilityManager.listeners) listener(visibilityManager.currentState);
|
929
|
+
};
|
930
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
931
|
+
return waitForSuccessfulPingInternal(socketUrl, visibilityManager);
|
932
|
+
}
|
933
|
+
const blob = new Blob([
|
934
|
+
"\"use strict\";",
|
935
|
+
`const waitForSuccessfulPingInternal = ${waitForSuccessfulPingInternal.toString()};`,
|
936
|
+
`const fn = ${pingWorkerContentMain.toString()};`,
|
937
|
+
`fn(${JSON.stringify(socketUrl)})`
|
938
|
+
], { type: "application/javascript" });
|
939
|
+
const objURL = URL.createObjectURL(blob);
|
940
|
+
const sharedWorker = new SharedWorker(objURL);
|
941
|
+
return new Promise((resolve, reject) => {
|
942
|
+
const onVisibilityChange = () => {
|
943
|
+
sharedWorker.port.postMessage({ visibility: document.visibilityState });
|
944
|
+
};
|
945
|
+
document.addEventListener("visibilitychange", onVisibilityChange);
|
946
|
+
sharedWorker.port.addEventListener("message", (event) => {
|
947
|
+
document.removeEventListener("visibilitychange", onVisibilityChange);
|
948
|
+
sharedWorker.port.close();
|
949
|
+
const data = event.data;
|
950
|
+
if (data.type === "error") {
|
951
|
+
reject(data.error);
|
952
|
+
return;
|
953
|
+
}
|
954
|
+
resolve();
|
955
|
+
});
|
956
|
+
onVisibilityChange();
|
957
|
+
sharedWorker.port.start();
|
958
|
+
});
|
959
|
+
}
|
960
|
+
function pingWorkerContentMain(socketUrl) {
|
961
|
+
self.addEventListener("connect", (_event) => {
|
962
|
+
const event = _event;
|
963
|
+
const port = event.ports[0];
|
964
|
+
if (!socketUrl) {
|
965
|
+
port.postMessage({
|
966
|
+
type: "error",
|
967
|
+
error: /* @__PURE__ */ new Error("socketUrl not found")
|
968
|
+
});
|
969
|
+
return;
|
970
|
+
}
|
971
|
+
const visibilityManager = {
|
972
|
+
currentState: "visible",
|
973
|
+
listeners: /* @__PURE__ */ new Set()
|
974
|
+
};
|
975
|
+
port.addEventListener("message", (event$1) => {
|
976
|
+
const { visibility } = event$1.data;
|
977
|
+
visibilityManager.currentState = visibility;
|
978
|
+
console.debug("new window visibility", visibility);
|
979
|
+
for (const listener of visibilityManager.listeners) listener(visibility);
|
980
|
+
});
|
981
|
+
port.start();
|
982
|
+
console.debug("connected from window");
|
983
|
+
waitForSuccessfulPingInternal(socketUrl, visibilityManager).then(() => {
|
984
|
+
console.debug("ping successful");
|
985
|
+
try {
|
986
|
+
port.postMessage({ type: "success" });
|
987
|
+
} catch (error) {
|
988
|
+
port.postMessage({
|
989
|
+
type: "error",
|
990
|
+
error
|
991
|
+
});
|
992
|
+
}
|
993
|
+
}, (error) => {
|
994
|
+
console.debug("error happened", error);
|
995
|
+
try {
|
996
|
+
port.postMessage({
|
997
|
+
type: "error",
|
998
|
+
error
|
999
|
+
});
|
1000
|
+
} catch (error$1) {
|
1001
|
+
port.postMessage({
|
1002
|
+
type: "error",
|
1003
|
+
error: error$1
|
1004
|
+
});
|
1005
|
+
}
|
1006
|
+
});
|
1007
|
+
});
|
1008
|
+
}
|
1009
|
+
async function waitForSuccessfulPingInternal(socketUrl, visibilityManager, ms = 1e3) {
|
1010
|
+
function wait(ms$1) {
|
1011
|
+
return new Promise((resolve) => setTimeout(resolve, ms$1));
|
1012
|
+
}
|
921
1013
|
async function ping() {
|
922
1014
|
const socket = new WebSocket(socketUrl, "vite-ping");
|
923
1015
|
return new Promise((resolve) => {
|
@@ -938,26 +1030,23 @@ async function waitForSuccessfulPing(socketUrl, ms = 1e3) {
|
|
938
1030
|
socket.addEventListener("error", onError);
|
939
1031
|
});
|
940
1032
|
}
|
1033
|
+
function waitForWindowShow(visibilityManager$1) {
|
1034
|
+
return new Promise((resolve) => {
|
1035
|
+
const onChange = (newVisibility) => {
|
1036
|
+
if (newVisibility === "visible") {
|
1037
|
+
resolve();
|
1038
|
+
visibilityManager$1.listeners.delete(onChange);
|
1039
|
+
}
|
1040
|
+
};
|
1041
|
+
visibilityManager$1.listeners.add(onChange);
|
1042
|
+
});
|
1043
|
+
}
|
941
1044
|
if (await ping()) return;
|
942
1045
|
await wait(ms);
|
943
|
-
while (true) if (
|
1046
|
+
while (true) if (visibilityManager.currentState === "visible") {
|
944
1047
|
if (await ping()) break;
|
945
1048
|
await wait(ms);
|
946
|
-
} else await waitForWindowShow();
|
947
|
-
}
|
948
|
-
function wait(ms) {
|
949
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
950
|
-
}
|
951
|
-
function waitForWindowShow() {
|
952
|
-
return new Promise((resolve) => {
|
953
|
-
const onChange = async () => {
|
954
|
-
if (document.visibilityState === "visible") {
|
955
|
-
resolve();
|
956
|
-
document.removeEventListener("visibilitychange", onChange);
|
957
|
-
}
|
958
|
-
};
|
959
|
-
document.addEventListener("visibilitychange", onChange);
|
960
|
-
});
|
1049
|
+
} else await waitForWindowShow(visibilityManager);
|
961
1050
|
}
|
962
1051
|
const sheetsMap = /* @__PURE__ */ new Map();
|
963
1052
|
if ("document" in globalThis) document.querySelectorAll("style[data-vite-dev-id]").forEach((el) => {
|
@@ -56,6 +56,7 @@ const DEFAULT_CONDITIONS = [
|
|
56
56
|
];
|
57
57
|
const DEFAULT_CLIENT_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "node"));
|
58
58
|
const DEFAULT_SERVER_CONDITIONS = Object.freeze(DEFAULT_CONDITIONS.filter((c) => c !== "browser"));
|
59
|
+
const DEFAULT_EXTERNAL_CONDITIONS = Object.freeze(["node", "module-sync"]);
|
59
60
|
/**
|
60
61
|
* The browser versions that are included in the Baseline Widely Available on 2025-05-01.
|
61
62
|
*
|
@@ -147,4 +148,4 @@ const ERR_OPTIMIZE_DEPS_PROCESSING_ERROR = "ERR_OPTIMIZE_DEPS_PROCESSING_ERROR";
|
|
147
148
|
const ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR = "ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR";
|
148
149
|
|
149
150
|
//#endregion
|
150
|
-
export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, defaultAllowedOrigins, loopbackHosts, wildcardHosts };
|
151
|
+
export { CLIENT_DIR, CLIENT_ENTRY, CLIENT_PUBLIC_PATH, CSS_LANGS_RE, DEFAULT_ASSETS_INLINE_LIMIT, DEFAULT_ASSETS_RE, DEFAULT_CLIENT_CONDITIONS, DEFAULT_CLIENT_MAIN_FIELDS, DEFAULT_CONFIG_FILES, DEFAULT_DEV_PORT, DEFAULT_EXTERNAL_CONDITIONS, DEFAULT_PREVIEW_PORT, DEFAULT_SERVER_CONDITIONS, DEFAULT_SERVER_MAIN_FIELDS, DEP_VERSION_RE, DEV_PROD_CONDITION, ENV_ENTRY, ENV_PUBLIC_PATH, ERR_FILE_NOT_FOUND_IN_OPTIMIZED_DEP_DIR, ERR_OPTIMIZE_DEPS_PROCESSING_ERROR, ESBUILD_BASELINE_WIDELY_AVAILABLE_TARGET, FS_PREFIX, JS_TYPES_RE, KNOWN_ASSET_TYPES, METADATA_FILENAME, OPTIMIZABLE_ENTRY_RE, ROLLUP_HOOKS, SPECIAL_QUERY_RE, VERSION, VITE_PACKAGE_DIR, defaultAllowedOrigins, loopbackHosts, wildcardHosts };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
//#region ../../node_modules/.pnpm/parse5@
|
2
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/unicode.js
|
3
3
|
const UNDEFINED_CODE_POINTS = new Set([
|
4
4
|
65534,
|
5
5
|
65535,
|
@@ -91,7 +91,7 @@ function isUndefinedCodePoint(cp) {
|
|
91
91
|
}
|
92
92
|
|
93
93
|
//#endregion
|
94
|
-
//#region ../../node_modules/.pnpm/parse5@
|
94
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/error-codes.js
|
95
95
|
var ERR;
|
96
96
|
(function(ERR$1) {
|
97
97
|
ERR$1["controlCharacterInInputStream"] = "control-character-in-input-stream";
|
@@ -157,7 +157,7 @@ var ERR;
|
|
157
157
|
})(ERR || (ERR = {}));
|
158
158
|
|
159
159
|
//#endregion
|
160
|
-
//#region ../../node_modules/.pnpm/parse5@
|
160
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/preprocessor.js
|
161
161
|
const DEFAULT_BUFFER_WATERLINE = 65536;
|
162
162
|
var Preprocessor = class {
|
163
163
|
constructor(handler) {
|
@@ -313,7 +313,7 @@ var Preprocessor = class {
|
|
313
313
|
};
|
314
314
|
|
315
315
|
//#endregion
|
316
|
-
//#region ../../node_modules/.pnpm/parse5@
|
316
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/token.js
|
317
317
|
var TokenType;
|
318
318
|
(function(TokenType$1) {
|
319
319
|
TokenType$1[TokenType$1["CHARACTER"] = 0] = "CHARACTER";
|
@@ -723,7 +723,7 @@ function determineBranch(decodeTree, current, nodeIndex, char) {
|
|
723
723
|
}
|
724
724
|
|
725
725
|
//#endregion
|
726
|
-
//#region ../../node_modules/.pnpm/parse5@
|
726
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/html.js
|
727
727
|
/** All valid namespaces in HTML. */
|
728
728
|
var NS;
|
729
729
|
(function(NS$1) {
|
@@ -1264,7 +1264,7 @@ const UNESCAPED_TEXT = new Set([
|
|
1264
1264
|
]);
|
1265
1265
|
|
1266
1266
|
//#endregion
|
1267
|
-
//#region ../../node_modules/.pnpm/parse5@
|
1267
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tokenizer/index.js
|
1268
1268
|
var State;
|
1269
1269
|
(function(State$1) {
|
1270
1270
|
State$1[State$1["DATA"] = 0] = "DATA";
|
@@ -3601,7 +3601,7 @@ var Tokenizer = class {
|
|
3601
3601
|
};
|
3602
3602
|
|
3603
3603
|
//#endregion
|
3604
|
-
//#region ../../node_modules/.pnpm/parse5@
|
3604
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/open-element-stack.js
|
3605
3605
|
const IMPLICIT_END_TAG_REQUIRED = new Set([
|
3606
3606
|
TAG_ID.DD,
|
3607
3607
|
TAG_ID.DT,
|
@@ -3900,7 +3900,7 @@ var OpenElementStack = class {
|
|
3900
3900
|
};
|
3901
3901
|
|
3902
3902
|
//#endregion
|
3903
|
-
//#region ../../node_modules/.pnpm/parse5@
|
3903
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/formatting-element-list.js
|
3904
3904
|
const NOAH_ARK_CAPACITY = 3;
|
3905
3905
|
var EntryType;
|
3906
3906
|
(function(EntryType$1) {
|
@@ -3991,7 +3991,7 @@ var FormattingElementList = class {
|
|
3991
3991
|
};
|
3992
3992
|
|
3993
3993
|
//#endregion
|
3994
|
-
//#region ../../node_modules/.pnpm/parse5@
|
3994
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/tree-adapters/default.js
|
3995
3995
|
const defaultTreeAdapter = {
|
3996
3996
|
createDocument() {
|
3997
3997
|
return {
|
@@ -4154,7 +4154,7 @@ const defaultTreeAdapter = {
|
|
4154
4154
|
};
|
4155
4155
|
|
4156
4156
|
//#endregion
|
4157
|
-
//#region ../../node_modules/.pnpm/parse5@
|
4157
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/doctype.js
|
4158
4158
|
const VALID_DOCTYPE_NAME = "html";
|
4159
4159
|
const VALID_SYSTEM_ID = "about:legacy-compat";
|
4160
4160
|
const QUIRKS_MODE_SYSTEM_ID = "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd";
|
@@ -4254,7 +4254,7 @@ function getDocumentMode(token) {
|
|
4254
4254
|
}
|
4255
4255
|
|
4256
4256
|
//#endregion
|
4257
|
-
//#region ../../node_modules/.pnpm/parse5@
|
4257
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/common/foreign-content.js
|
4258
4258
|
const MIME_TYPES = {
|
4259
4259
|
TEXT_HTML: "text/html",
|
4260
4260
|
APPLICATION_XML: "application/xhtml+xml"
|
@@ -4513,7 +4513,7 @@ function isIntegrationPoint(tn, ns, attrs, foreignNS) {
|
|
4513
4513
|
}
|
4514
4514
|
|
4515
4515
|
//#endregion
|
4516
|
-
//#region ../../node_modules/.pnpm/parse5@
|
4516
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/parser/index.js
|
4517
4517
|
const HIDDEN_INPUT_TYPE = "hidden";
|
4518
4518
|
const AA_OUTER_LOOP_ITER = 8;
|
4519
4519
|
const AA_INNER_LOOP_ITER = 3;
|
@@ -7296,7 +7296,7 @@ function endTagInForeignContent(p, token) {
|
|
7296
7296
|
}
|
7297
7297
|
|
7298
7298
|
//#endregion
|
7299
|
-
//#region ../../node_modules/.pnpm/parse5@
|
7299
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/serializer/index.js
|
7300
7300
|
const VOID_ELEMENTS = new Set([
|
7301
7301
|
TAG_NAMES.AREA,
|
7302
7302
|
TAG_NAMES.BASE,
|
@@ -7319,7 +7319,7 @@ const VOID_ELEMENTS = new Set([
|
|
7319
7319
|
]);
|
7320
7320
|
|
7321
7321
|
//#endregion
|
7322
|
-
//#region ../../node_modules/.pnpm/parse5@
|
7322
|
+
//#region ../../node_modules/.pnpm/parse5@8.0.0/node_modules/parse5/dist/index.js
|
7323
7323
|
/**
|
7324
7324
|
* Parses an HTML string.
|
7325
7325
|
*
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-
|
3
|
-
import "./dep-
|
2
|
+
import { _createServer, createServer, createServerCloseFn, resolveServerOptions, restartServerWithUrls, serverConfigDefaults } from "./dep-CYKWp2mZ.js";
|
3
|
+
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createServer };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { createRequire as ___createRequire } from 'module'; const require = ___createRequire(import.meta.url);
|
2
|
-
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-
|
3
|
-
import "./dep-
|
2
|
+
import { BuildEnvironment, build, buildEnvironmentOptionsDefaults, builderOptionsDefaults, createBuilder, createToImportMetaURLBasedRelativeRuntime, injectEnvironmentToHooks, onRollupLog, resolveBuildEnvironmentOptions, resolveBuildOutputs, resolveBuildPlugins, resolveBuilderOptions, resolveLibFilename, resolveUserExternal, toOutputFilePathInCss, toOutputFilePathInHtml, toOutputFilePathInJS, toOutputFilePathWithoutRuntime } from "./dep-CYKWp2mZ.js";
|
3
|
+
import "./dep-BDCsDwBr.js";
|
4
4
|
|
5
5
|
export { createBuilder, resolveBuildPlugins };
|