mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com> Co-authored-by: Anshuman Pandey <54475686+pandeymangg@users.noreply.github.com>
21 lines
617 B
JavaScript
21 lines
617 B
JavaScript
import { resolve } from "path";
|
|
import { defineConfig } from "vite";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
export default defineConfig({
|
|
build: {
|
|
emptyOutDir: false, // keep the dist folder to avoid errors with pnpm go when folder is empty during build
|
|
minify: "terser",
|
|
sourcemap: true,
|
|
lib: {
|
|
// Could also be a dictionary or array of multiple entry points
|
|
entry: resolve(__dirname, "src/index.ts"),
|
|
name: "formbricks-api",
|
|
formats: ["es", "umd"],
|
|
// the proper extensions will be added
|
|
fileName: "index",
|
|
},
|
|
},
|
|
plugins: [dts({ rollupTypes: true })],
|
|
});
|