From 159bab40a4cf75548a915d64f3b8237a08314ef1 Mon Sep 17 00:00:00 2001 From: Jason Sturges Date: Thu, 17 Mar 2022 00:50:33 -0500 Subject: [PATCH] Rollup config --- rollup.config.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 259b58f..f563bba 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -10,9 +10,10 @@ export default [ name: "LunarPhase", file: pkg.browser, format: "umd", + sourcemap: true, }, plugins: [ - resolve(), + resolve(), // commonjs(), ], }, @@ -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 }, + ], }, ];