@wroud/vite-plugin-ssg
Version:
A Vite plugin for static site generation (SSG) with React. Renders React applications to static HTML for faster load times and improved SEO.
12 lines • 347 B
JavaScript
import fs from "node:fs";
export function tryStatSync(file) {
try {
// The "throwIfNoEntry" is a performance optimization for cases where the file does not exist
return fs.statSync(file, { throwIfNoEntry: false });
}
catch {
// Ignore errors
}
return undefined;
}
//# sourceMappingURL=tryStatSync.js.map