certd/packages/plugins/plugin-cert/vite.config.ts

25 lines
566 B
TypeScript
Raw Normal View History

2022-11-08 14:10:42 +00:00
import { defineConfig } from "vite";
// https://vitejs.dev/config/
export default defineConfig({
plugins: [],
build: {
lib: {
entry: "src/index.ts",
name: "pipeline",
},
rollupOptions: {
2023-05-09 01:49:42 +00:00
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
2022-11-08 14:10:42 +00:00
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: "Vue",
2023-05-09 01:49:42 +00:00
"lodash": "_",
2022-11-08 14:10:42 +00:00
dayjs: "dayjs",
"@fast-crud/fast-crud": "FastCrud",
},
},
},
},
});