From 1fff0a240d31712798f926813182d549e7d4aaab Mon Sep 17 00:00:00 2001 From: Dominik Moritz Date: Fri, 18 Nov 2022 17:36:34 -0500 Subject: [PATCH] feat: add sourcemaps (#707) --- rollup.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rollup.config.js b/rollup.config.js index a41c69b7..bdd70dd7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -25,7 +25,8 @@ const outputs = [ input: 'src/index.ts', output: { file: pkg.module, - format: 'esm' + format: 'esm', + sourcemap: true }, plugins: plugins(undefined, true), external: [...Object.keys(pkg.dependencies)] @@ -37,6 +38,7 @@ const outputs = [ format: 'umd', name: 'vegaTooltip', exports: 'named', + sourcemap: true, globals: { 'vega-util': 'vega' }, @@ -46,6 +48,7 @@ const outputs = [ format: 'umd', name: 'vegaTooltip', exports: 'named', + sourcemap: true, globals: { 'vega-util': 'vega' },