21 lines
518 B
TypeScript
21 lines
518 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", "@vueuse/core"],
|
|
},
|
|
},
|
|
});
|