Skip to content

Commit 55c0f73

Browse files
committed
Update tsup.config.ts
1 parent 41341ba commit 55c0f73

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tsup.config.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
1-
import { defineConfig } from 'tsup'
1+
import { defineConfig } from "tsup";
22

33
export default defineConfig({
4-
entry: ['src/index.ts'],
4+
entry: ["src/index.ts"],
55
splitting: false,
66
clean: true,
77
dts: true,
88
format: ["cjs", "esm"],
9-
})
9+
outExtension({ format }) {
10+
return {
11+
js: format === "esm" ? ".esm.js" : ".cjs",
12+
};
13+
},
14+
});

0 commit comments

Comments
 (0)