You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
480 B

import { defineConfig } from "vite";
import reactRefresh from "@vitejs/plugin-react-refresh";
import svgr from "@svgr/rollup";
import reactJsx from "vite-react-jsx";
// https://vitejs.dev/config/
export default defineConfig({
server: {
port: 10000,
hmr: {
port: 10000,
},
},
plugins: [
reactJsx(),
reactRefresh(),
Object.assign(
svgr({
// memo: true,
// icon: true,
ref: true,
svgo: false,
}),
{ enforce: "pre" } as const,
),
],
});