Skip to content

Commit d5baad3

Browse files
committed
chore: update rollup to bundle for esm
1 parent 68ce5a3 commit d5baad3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

rollup.config.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,23 @@ const config = [
55
{
66
input: "./src/index.ts",
77
output: {
8-
file: "dist/now-playing.js",
8+
file: "dist/now-playing.cjs.js",
99
format: "cjs",
1010
sourcemap: true,
1111
},
1212
external: ["zod", "node-fetch"],
1313
plugins: [typescript()],
1414
},
15+
{
16+
input: "./src/index.ts",
17+
output: {
18+
file: "dist/now-playing.esm.js",
19+
format: "es",
20+
sourcemap: true,
21+
},
22+
external: ["zod", "node-fetch"],
23+
plugins: [typescript()],
24+
},
1525
{
1626
input: "./src/index.ts",
1727
output: {

0 commit comments

Comments
 (0)