mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 20:07:34 +00:00
19 lines
390 B
TypeScript
19 lines
390 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: ['src/index.ts'],
|
|
format: ['cjs', 'esm'],
|
|
dts: true,
|
|
clean: true,
|
|
external: ['react', 'react-dom'],
|
|
minify: false,
|
|
sourcemap: true,
|
|
splitting: false,
|
|
treeshake: true,
|
|
tsconfig: 'tsconfig.json',
|
|
outExtension({ format }) {
|
|
return {
|
|
js: `.${format === 'cjs' ? 'js' : 'mjs'}`
|
|
}
|
|
}
|
|
}) |