Keycloak
29 строк · 690.0 Байт
1import react from "@vitejs/plugin-react-swc";
2import path from "node:path";
3import peerDepsExternal from "rollup-plugin-peer-deps-external";
4import { defineConfig } from "vite";
5import { checker } from "vite-plugin-checker";
6import dts from "vite-plugin-dts";
7
8// https://vitejs.dev/config/
9export default defineConfig({
10build: {
11target: "esnext",
12lib: {
13entry: path.resolve(__dirname, "src/main.ts"),
14formats: ["es"],
15},
16rollupOptions: {
17plugins: [
18peerDepsExternal({
19includeDependencies: true,
20}),
21],
22},
23},
24plugins: [
25react(),
26checker({ typescript: true }),
27dts({ insertTypesEntry: true }),
28],
29});
30