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' },