2022-10-10 10:14:19 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
2022-11-18 16:13:39 +00:00
|
|
|
import { checker } from "vite-plugin-checker";
|
2022-10-10 10:14:19 +00:00
|
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
|
|
|
base: "",
|
|
|
|
server: {
|
|
|
|
port: 8080,
|
|
|
|
},
|
2022-10-17 12:46:07 +00:00
|
|
|
build: {
|
|
|
|
target: "ES2022",
|
|
|
|
},
|
2022-10-10 10:14:19 +00:00
|
|
|
resolve: {
|
|
|
|
// Resolve the 'module' entrypoint at all times (not the default due to Node.js compatibility issues).
|
|
|
|
mainFields: ["module"],
|
|
|
|
dedupe: ["react", "react-dom"],
|
|
|
|
},
|
|
|
|
plugins: [react(), checker({ typescript: true })],
|
|
|
|
});
|