aboutsummaryrefslogtreecommitdiff
path: root/tsup.config.js
blob: 41db7d4a10e73dd5b1cc385d164f89acbf2e5b44 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { defineConfig } from 'tsup';

export default defineConfig({
  entry: { index: 'src/index.ts' },
  format: ['esm'],
  outDir: 'dist',
  dts: true,
  splitting: false,
  sourcemap: false,
  clean: false,
  external: ['react', 'react-dom', 'react/jsx-runtime', '@swc/helpers'],
  esbuildOptions(options) {
    options.jsx = 'automatic';
  },
});