Migrate to Vite / Vite+

Modernize building and such
This commit is contained in:
2026-04-03 21:12:56 -07:00
parent 445f95340a
commit f04fd0fada
26 changed files with 8080 additions and 4180 deletions

26
vite.config.ts Normal file
View File

@@ -0,0 +1,26 @@
import { defineConfig } from "vite-plus";
import react from "@vitejs/plugin-react";
import path from "node:path";
import { fileURLToPath } from "node:url";
const rootDir = path.dirname(fileURLToPath(import.meta.url));
export default defineConfig({
staged: {
"*": "vp check --fix",
},
fmt: {},
plugins: [
react({
babel: {
// React Compiler must run first in the Babel pipeline.
plugins: ["babel-plugin-react-compiler"],
},
}),
],
resolve: {
alias: {
"@": path.resolve(rootDir, "src"),
},
},
});