We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2055a70 commit 6ddd08dCopy full SHA for 6ddd08d
tsup.config.ts
@@ -26,5 +26,9 @@ export default defineConfig({
26
minify: env === 'production',
27
watch: env === 'development',
28
sourcemap: env === 'development',
29
- tsconfig: path.resolve(__dirname, './tsconfig.json')
+ tsconfig: path.resolve(__dirname, './tsconfig.json'),
30
+ outExtension: ({ format }) =>
31
+ format === 'esm'
32
+ ? { js: '.js' }
33
+ : { js: '.cjs' }
34
});
0 commit comments