Skip to content

Commit

Permalink
Rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsturges committed Mar 17, 2022
1 parent ddd97ce commit 159bab4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ export default [
name: "LunarPhase",
file: pkg.browser,
format: "umd",
sourcemap: true,
},
plugins: [
resolve(),
resolve(), //
commonjs(),
],
},
Expand All @@ -21,8 +22,8 @@ export default [
{
input: "src/index.js",
output: [
{ file: pkg.main, format: "cjs" },
{ file: pkg.module, format: "es" },
]
{ file: pkg.main, format: "cjs", sourcemap: true },
{ file: pkg.module, format: "es", sourcemap: true },
],
},
];

0 comments on commit 159bab4

Please sign in to comment.