morphik-core/ee/ui-component/tsup.config.ts
2025-04-27 19:49:42 -07:00

25 lines
465 B
TypeScript

import { defineConfig } from 'tsup';
export default defineConfig({
entry: ['src/index.ts'],
format: ['cjs', 'esm'],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
tsconfig: './tsconfig.lib.json',
external: [
'react',
'react-dom',
'next',
'next/image',
'next/link',
'@radix-ui/*',
],
esbuildOptions(options) {
options.jsx = 'automatic';
options.jsxImportSource = 'react';
return options;
},
});