vite8.3.81.3 MB
Shown as plain text from the published tarball, after apm checked it against the version's checksum. Nothing in it runs on this page.
return (await Promise.all(dirents.map((dirent) => {
const res = path.resolve(dir, dirent.name);
return dirent.isDirectory() ? recursiveReaddir(res) : normalizePath(res);
}))).flat(1);
}
let safeRealpathSync = isWindows$1 ? windowsSafeRealPathSync : fs.realpathSync.native;
const windowsNetworkMap = /* @__PURE__ */ new Map();
function windowsMappedRealpathSync(path) {
const realPath = fs.realpathSync.native(path);
if (!realPath.startsWith("\\\\")) return realPath;
for (const [network, volume] of windowsNetworkMap) if (realPath.startsWith(network)) return realPath.replace(network, volume);
return realPath;
}
let windowsNetUseStarted = false;
const parseNetUseRE = /^\w* +(\w:) +([^ ]+)\s/;
function windowsLazyRealpathSync(path) {
const realPath = fs.realpathSync.native(path);
if (!realPath.startsWith("\\\\")) return realPath;
if (!windowsNetUseStarted) {
windowsNetUseStarted = true;
exec("net use", { windowsHide: true }, (error, stdout) => {
if (error) {
safeRealpathSync = fs.realpathSync;
return;
}
const lines = stdout.split("\n");
for (const line of lines) {
const m = parseNetUseRE.exec(line);
if (m) windowsNetworkMap.set(m[2], m[1]);
}
safeRealpathSync = windowsNetworkMap.size > 0 ? windowsMappedRealpathSync : fs.realpathSync.native;
});
}
return fs.realpathSync(path);
}
function windowsSafeRealPathSync(input) {
try {
fs.realpathSync.native(path.resolve("./"));
} catch (error) {
if (error.message.includes("EISDIR: illegal operation on a directory")) {
safeRealpathSync = fs.realpathSync;
This file is 1.3 MB, over the 1.0 MB the full view shows, so apm shows the lines around the cited one. Lines longer than 4 kB are cut.