Files
ox_lib/web/vite.config.ts
masonschafercodes 8c560b5f87 chore(web): migrate to vite v4 (#214)
Updated vite to v4 and update the react-plugin to support the v4 changes. Made sure dev port was stays consistent and manually set it to :3000
2023-02-02 10:33:36 +01:00

19 lines
349 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "./",
server: {
port: 3000,
},
build: {
outDir: "build",
target: "esnext",
},
esbuild: {
logOverride: { "this-is-undefined-in-esm": "silent" },
},
});