certd/packages/core/pipeline/vite.config.js

36 lines
900 B
JavaScript
Raw Normal View History

2022-10-26 01:02:47 +00:00
import { defineConfig } from "vite";
import typescript from "@rollup/plugin-typescript";
2022-10-26 01:02:47 +00:00
// https://vitejs.dev/config/
export default defineConfig({
plugins: [],
build: {
lib: {
entry: "src/index.ts",
name: "pipeline",
},
2022-10-31 13:27:32 +00:00
rollupOptions: {
plugins: [
typescript({
target: "esnext",
rootDir: "src",
declaration: true,
declarationDir: "dist/d",
exclude: ["./node_modules/**", "./src/**/*.vue"],
allowSyntheticDefaultImports: true,
}),
],
2023-05-09 01:49:42 +00:00
external: ["vue", "lodash", "dayjs", "@fast-crud/fast-crud"],
2022-10-31 13:27:32 +00:00
output: {
// Provide global variables to use in the UMD build
// for externalized deps
globals: {
vue: "Vue",
lodash: "_",
2022-10-31 13:27:32 +00:00
dayjs: "dayjs",
"@fast-crud/fast-crud": "FastCrud",
},
},
},
2022-10-26 01:02:47 +00:00
},
});