keycloak-scim/js/apps/account-ui/vite.config.ts
Jon Koops 62d5eb0965
Include react and react-dom as external dependencies (#24843)
Signed-off-by: Jon Koops <jonkoops@gmail.com>
2023-11-20 16:34:03 +00:00

21 lines
498 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc";
import { checker } from "vite-plugin-checker";
// https://vitejs.dev/config/
export default defineConfig({
base: "",
server: {
port: 8080,
},
build: {
sourcemap: true,
target: "esnext",
modulePreload: false,
cssMinify: "lightningcss",
rollupOptions: {
external: ["react", "react/jsx-runtime", "react-dom"],
},
},
plugins: [react(), checker({ typescript: true })],
});