🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
import { defineConfig } from 'tsup'
export default defineConfig({
entry: ['src/index.ts'],
sourcemap: true,
clean: true,
format: ['esm'],
dts: true,
outDir: 'build',
outExtension({ format }) {
return format === 'esm' ? { js: '.mjs' } : { js: '.js' }
},
})