mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-03 04:11:34 -06:00
24 lines
578 B
TypeScript
24 lines
578 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig } from "vite";
|
|
import tsconfigPaths from "vite-tsconfig-paths";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
lib: {
|
|
entry: resolve(__dirname, "../../modules/api/v2/openapi-document.ts"),
|
|
name: "openapiDocument",
|
|
fileName: "openapi-document",
|
|
formats: ["cjs"],
|
|
},
|
|
rollupOptions: {
|
|
external: ["@prisma/client", "yaml", "zod", "zod-openapi"],
|
|
output: {
|
|
exports: "named",
|
|
},
|
|
},
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
},
|
|
plugins: [tsconfigPaths()],
|
|
});
|