Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

tsup.config.ts

13 lines277 Bytes

1import { defineConfig } from 'tsup'
2​
3export default defineConfig({
4 entry: ['src/index.ts'],
5 sourcemap: true,
6 clean: true,
7 format: ['esm'],
8 dts: true,
9 outDir: 'build',
10 outExtension({ format }) {
11 return format === 'esm' ? { js: '.mjs' } : { js: '.js' }
12 },
13})