-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.lib.config.js
More file actions
26 lines (25 loc) · 601 Bytes
/
Copy pathvite.lib.config.js
File metadata and controls
26 lines (25 loc) · 601 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import { resolve } from "node:path";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
export default defineConfig({
plugins: [vue()],
build: {
copyPublicDir: false,
lib: {
entry: resolve(import.meta.dirname, "src/index.js"),
name: "NestOrb",
fileName: (format) => format === "es" ? "nest-orb.js" : "nest-orb.cjs",
cssFileName: "style",
formats: ["es", "cjs"],
},
rollupOptions: {
external: ["vue"],
output: {
exports: "named",
globals: {
vue: "Vue",
},
},
},
},
});