keycloak-scim/apps/account-ui/vite.config.ts
Jon Koops bd356b62ab
Run CI jobs for the Account UI (#3549)
* Run CI jobs for the Account UI

* Add JavaScript edition to build
2022-10-17 08:46:07 -04:00

20 lines
512 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import checker from "vite-plugin-checker";
// https://vitejs.dev/config/
export default defineConfig({
base: "",
server: {
port: 8080,
},
build: {
target: "ES2022",
},
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 })],
});