18 lines
429 B
TypeScript
18 lines
429 B
TypeScript
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
import { defineConfig, Options } from 'tsup';
|
|
|
|
// eslint-disable-next-line import/no-default-export
|
|
export default defineConfig((options: Options) => ({
|
|
entry: ['src/index.ts'],
|
|
format: ['esm', 'cjs'],
|
|
banner: {
|
|
js: "'use client'",
|
|
},
|
|
dts: true,
|
|
minify: true,
|
|
clean: true,
|
|
external: ['react', 'react-dom'],
|
|
injectStyle: true,
|
|
...options,
|
|
}));
|