import path from "path"; import { defineConfig } from "tsup"; export default defineConfig((options) => ({ entry: ["components/index.ts"], splitting: true, treeshake: true, clean: true, dts: true, format: ["esm"], external: ["react", "react-dom", "realgrid", "realgrid-react"], platform: "browser", target: ["es2020"], tsconfig: path.resolve(__dirname, "tsconfig.build.json"), sourcemap: !options.watch, minify: !options.watch, }));