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

36 lines
900 B
JavaScript
Raw Normal View History

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