diff --git a/conf/rollup.config.js b/conf/rollup.config.js index e1ef84ef6c..08ce79039c 100644 --- a/conf/rollup.config.js +++ b/conf/rollup.config.js @@ -57,9 +57,10 @@ const configs = [ { ...common, output: { - file: `./packages/${pkg}/dist/nivo-${pkg}.esm.js`, - format: 'esm', + file: `./packages/${pkg}/dist/nivo-${pkg}.es.js`, + format: 'es', name: `@nivo/${pkg}`, + sourcemap: true, }, plugins: commonPlugins, } @@ -72,6 +73,7 @@ if (!isWatching) { file: `./packages/${pkg}/dist/nivo-${pkg}.cjs.js`, format: 'cjs', name: `@nivo/${pkg}`, + sourcemap: true, }, plugins: commonPlugins, }) @@ -83,6 +85,7 @@ if (!isWatching) { extend: true, name: 'nivo', globals: mapGlobal, + sourcemap: true, }, plugins: commonPlugins, })