19 lines
491 B
TypeScript
19 lines
491 B
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import dts from "vite-plugin-dts";
|
|
export default defineConfig({
|
|
plugins: [
|
|
vue(),
|
|
dts({
|
|
tsconfigPath: "../../tsconfig.json",
|
|
include: ["src"],
|
|
entryRoot: "src",
|
|
aliasesExclude: ["@heroui-vue/styles"],
|
|
}),
|
|
],
|
|
build: {
|
|
lib: { entry: "src/index.ts", formats: ["es"], fileName: "index" },
|
|
rollupOptions: { external: ["vue", "reka-ui", "@heroui-vue/styles"] },
|
|
},
|
|
});
|