2022-12-13 22:19:07 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react-swc";
|
2023-01-07 20:36:18 +00:00
|
|
|
import loadVersion from "vite-plugin-package-version";
|
2023-02-19 14:55:09 +00:00
|
|
|
import checker from 'vite-plugin-checker'
|
2022-12-13 22:19:07 +00:00
|
|
|
import path from "path";
|
|
|
|
|
|
|
|
export default defineConfig({
|
2023-02-19 14:55:09 +00:00
|
|
|
plugins: [
|
|
|
|
react(),
|
|
|
|
loadVersion(),
|
|
|
|
checker({
|
|
|
|
typescript: true, // check typescript build errors in dev server
|
|
|
|
})
|
|
|
|
],
|
2022-12-13 22:19:07 +00:00
|
|
|
resolve: {
|
|
|
|
alias: {
|
2022-12-13 22:50:13 +00:00
|
|
|
"@": path.resolve(__dirname, "./src"),
|
2022-12-13 22:19:07 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|