import { defineConfig } from 'tsup'; export default defineConfig({ entry: { index: 'src/index.ts', sentry: 'src/sentry.ts' }, format: ['esm', 'cjs'], // tsup injects baseUrl for DTS; TS 6 treats that as an error until tsup stops // (https://github.com/egoist/tsup/issues/1388) dts: { compilerOptions: { ignoreDeprecations: '6.0', }, }, clean: true, target: 'es2022', sourcemap: true, });