From 63e0a0bdf45d1a754938d63e9c726f632a6d8237 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Tue, 28 Jul 2020 15:47:26 +0530 Subject: [PATCH] feat: generate sourcemaps inn build --- rollup.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index bfb5158..26ba66b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -13,6 +13,7 @@ export default [ { input: 'src/js/index.js', output: { + sourcemap: true, name: 'frappe-charts', file: pkg.browser, format: 'umd' @@ -32,8 +33,8 @@ export default [ { input: 'src/js/chart.js', output: [ - { file: pkg.common, format: 'cjs' }, - { file: pkg.module, format: 'es' } + { file: pkg.common, format: 'cjs', sourcemap: true }, + { file: pkg.module, format: 'es', sourcemap: true } ], plugins: [ babel({