Skip to content

Commit

Permalink
feat(build): generate source maps for packages
Browse files Browse the repository at this point in the history
  • Loading branch information
plouc committed Jun 21, 2020
1 parent b08e791 commit 39a83fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conf/rollup.config.js
Expand Up @@ -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,
}
Expand All @@ -72,6 +73,7 @@ if (!isWatching) {
file: `./packages/${pkg}/dist/nivo-${pkg}.cjs.js`,
format: 'cjs',
name: `@nivo/${pkg}`,
sourcemap: true,
},
plugins: commonPlugins,
})
Expand All @@ -83,6 +85,7 @@ if (!isWatching) {
extend: true,
name: 'nivo',
globals: mapGlobal,
sourcemap: true,
},
plugins: commonPlugins,
})
Expand Down

0 comments on commit 39a83fd

Please sign in to comment.