OpenPanel/packages/react-hook-form/tsup.config.ts
Stefan Pejcic 8595a9f4e5 back
2024-05-08 19:58:53 +02:00

18 lines
528 B
TypeScript

import { defineConfig } from "tsup";
import { lodashReplacePlugin } from "../shared/lodash-replace-plugin";
import { markAsExternalPlugin } from "../shared/mark-as-external-plugin";
export default defineConfig({
entry: ["src/index.ts"],
splitting: false,
sourcemap: true,
clean: false,
platform: "browser",
esbuildPlugins: [lodashReplacePlugin, markAsExternalPlugin],
esbuildOptions(options) {
options.keepNames = true;
},
onSuccess: "tsc --project tsconfig.declarations.json",
});