Skip to content

Commit

Permalink
chore: update rollup to bundle for esm
Browse files Browse the repository at this point in the history
  • Loading branch information
lilpolymath committed Jun 14, 2024
1 parent 68ce5a3 commit d5baad3
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,23 @@ const config = [
{
input: "./src/index.ts",
output: {
file: "dist/now-playing.js",
file: "dist/now-playing.cjs.js",
format: "cjs",
sourcemap: true,
},
external: ["zod", "node-fetch"],
plugins: [typescript()],
},
{
input: "./src/index.ts",
output: {
file: "dist/now-playing.esm.js",
format: "es",
sourcemap: true,
},
external: ["zod", "node-fetch"],
plugins: [typescript()],
},
{
input: "./src/index.ts",
output: {
Expand Down

0 comments on commit d5baad3

Please sign in to comment.