umami/tsup.config.js
Mike Cao dc1736458b
Some checks failed
Node.js CI / build (postgresql, 18.18) (push) Has been cancelled
Export metrics components.
2025-09-03 17:16:03 -07:00

15 lines
351 B
JavaScript

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';
},
});