mirror of
https://github.com/formbricks/formbricks.git
synced 2025-12-30 18:30:32 -06:00
Co-authored-by: tykerr <tykerr@gmail.com> Co-authored-by: Dhruwang <dhruwangjariwala18@gmail.com> Co-authored-by: Dhruwang Jariwala <67850763+Dhruwang@users.noreply.github.com> Co-authored-by: pandeymangg <anshuman.pandey9999@gmail.com> Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
29 lines
730 B
TypeScript
29 lines
730 B
TypeScript
import { resolve } from "node:path";
|
|
import { defineConfig } from "vite";
|
|
import dts from "vite-plugin-dts";
|
|
|
|
const config = () => {
|
|
return defineConfig({
|
|
optimizeDeps: {
|
|
exclude: ["react-native"],
|
|
},
|
|
build: {
|
|
emptyOutDir: false,
|
|
minify: "terser",
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
external: ["react", "react-native", "react-dom", "react-native-webview"],
|
|
},
|
|
lib: {
|
|
entry: resolve(__dirname, "src/index.ts"),
|
|
name: "formbricksReactNative",
|
|
formats: ["es", "cjs"],
|
|
fileName: "index",
|
|
},
|
|
},
|
|
plugins: [dts({ rollupTypes: true, bundledPackages: ["@formbricks/api", "@formbricks/types"] })],
|
|
});
|
|
};
|
|
|
|
export default config;
|