Skip to content

Commit 6ddd08d

Browse files
fix
Signed-off-by: Rajesh-Nagarajan-11 <rajeshnagarajan36@gmail.com>
1 parent 2055a70 commit 6ddd08d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tsup.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,9 @@ export default defineConfig({
2626
minify: env === 'production',
2727
watch: env === 'development',
2828
sourcemap: env === 'development',
29-
tsconfig: path.resolve(__dirname, './tsconfig.json')
29+
tsconfig: path.resolve(__dirname, './tsconfig.json'),
30+
outExtension: ({ format }) =>
31+
format === 'esm'
32+
? { js: '.js' }
33+
: { js: '.cjs' }
3034
});

0 commit comments

Comments
 (0)