27 lines
617 B
TypeScript
27 lines
617 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
import { fileURLToPath } from "url";
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
tailwindcss(),
|
|
react({
|
|
babel: {
|
|
plugins: [["babel-plugin-react-compiler"]],
|
|
},
|
|
}),
|
|
],
|
|
|
|
base: "/",
|
|
resolve: {
|
|
alias: {
|
|
"@": fileURLToPath(new URL("./src", import.meta.url)),
|
|
"@core": fileURLToPath(new URL("./src/core", import.meta.url)),
|
|
"@modules": fileURLToPath(new URL("./src/modules", import.meta.url)),
|
|
},
|
|
},
|
|
});
|