24 lines
456 B
TypeScript
24 lines
456 B
TypeScript
import { defineConfig } from 'tsup';
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
'react/index': 'src/react/index.ts',
|
|
'nestjs/index': 'src/nestjs/index.ts',
|
|
},
|
|
format: ['esm'],
|
|
dts: true,
|
|
clean: true,
|
|
sourcemap: true,
|
|
external: [
|
|
'react',
|
|
'react-dom',
|
|
'react-router-dom',
|
|
'@nestjs/common',
|
|
'@nestjs/core',
|
|
'rxjs',
|
|
],
|
|
esbuildOptions(options) {
|
|
options.jsx = 'automatic';
|
|
},
|
|
});
|