OpenPanel/packages/react-hook-form/tsup.config.ts
2024-02-05 10:23:04 +01: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",
});