Q-Apps-Utils/vite.config.ts

17 lines
380 B
TypeScript
Raw Permalink Normal View History

2023-10-11 22:41:55 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
import dts from "vite-plugin-dts";
2023-10-11 22:41:55 +00:00
// https://vitejs.dev/config/
export default defineConfig({
optimizeDeps: { include: ["src"] },
2023-10-11 22:41:55 +00:00
build: {
lib: {
2023-10-17 21:02:10 +00:00
entry: resolve(__dirname, "index.ts"),
formats: ["es"],
2023-10-11 22:41:55 +00:00
},
},
plugins: [react(), dts()],
2023-10-11 22:41:55 +00:00
});