We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68ce5a3 commit d5baad3Copy full SHA for d5baad3
rollup.config.js
@@ -5,13 +5,23 @@ const config = [
5
{
6
input: "./src/index.ts",
7
output: {
8
- file: "dist/now-playing.js",
+ file: "dist/now-playing.cjs.js",
9
format: "cjs",
10
sourcemap: true,
11
},
12
external: ["zod", "node-fetch"],
13
plugins: [typescript()],
14
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
25
26
27
0 commit comments