2023-10-11 22:41:55 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
import { resolve } from "path";
|
2023-11-27 19:51:16 +00:00
|
|
|
import dts from "vite-plugin-dts";
|
2023-10-25 21:34:13 +00:00
|
|
|
|
2023-10-11 22:41:55 +00:00
|
|
|
// https://vitejs.dev/config/
|
|
|
|
export default defineConfig({
|
2023-11-27 19:51:16 +00:00
|
|
|
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"),
|
2023-11-27 19:51:16 +00:00
|
|
|
formats: ["es"],
|
2023-10-11 22:41:55 +00:00
|
|
|
},
|
|
|
|
},
|
2023-11-27 19:51:16 +00:00
|
|
|
plugins: [react(), dts()],
|
2023-10-11 22:41:55 +00:00
|
|
|
});
|