You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
380 B

11 months ago
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { resolve } from "path";
import dts from "vite-plugin-dts";
11 months ago
// https://vitejs.dev/config/
export default defineConfig({
optimizeDeps: { include: ["src"] },
11 months ago
build: {
lib: {
11 months ago
entry: resolve(__dirname, "index.ts"),
formats: ["es"],
11 months ago
},
},
plugins: [react(), dts()],
11 months ago
});