import { defineConfig } from "tsup"; // tsup bundles the JavaScript; `tsc -p tsconfig.build.json` writes the // declarations, since tsup's own declaration build needs TypeScript's JS API, // which TypeScript 7 doesn't ship. export default defineConfig({ entry: { index: "src/index.ts", react: "src/react.tsx" }, format: ["esm"], dts: false, sourcemap: true, target: "es2022", clean: true, external: ["react", "react/jsx-runtime"], });