mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
25 lines
465 B
TypeScript
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;
|
|
},
|
|
});
|