keycloak-scim/js/apps/admin-ui/vite.config.ts
2023-10-09 16:59:32 +01:00

30 lines
773 B
TypeScript

import { defineConfig } from "vitest/config";
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",
},
plugins: [react(), checker({ typescript: true })],
resolve: {
// Resolve the 'module' entrypoint at all times (not the default due to Node.js compatibility issues).
mainFields: ["module"],
},
test: {
setupFiles: "vitest.setup.ts",
watch: false,
deps: {
// Ensure '.mjs' files are used for '@patternfly/react-styles'.
inline: [/@patternfly\/react-styles/],
},
},
});