Skip to content

Commit

Permalink
feat: Generate source maps for client libraries (#1292)
Browse files Browse the repository at this point in the history
  • Loading branch information
ovr committed Nov 3, 2020
1 parent a979c02 commit cb64118
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion rollup.config.js
Expand Up @@ -69,6 +69,7 @@ const bundle = (name, globalName, { globals = {}, ...baseConfig }, umdConfig) =>
format: 'umd',
name: globalName,
exports: 'auto',
sourcemap: true,
},
],
},
Expand Down Expand Up @@ -112,7 +113,13 @@ const bundle = (name, globalName, { globals = {}, ...baseConfig }, umdConfig) =>
],
}),
],
output: [{ file: `packages/${name}/dist/${name}.js`, format: 'cjs' }],
output: [
{
file: `packages/${name}/dist/${name}.js`,
format: 'cjs',
sourcemap: true,
}
],
},
// // ES module (for bundlers) build.
{
Expand Down Expand Up @@ -150,6 +157,7 @@ const bundle = (name, globalName, { globals = {}, ...baseConfig }, umdConfig) =>
{
file: `packages/${name}/dist/${name}.esm.js`,
format: 'es',
sourcemap: true,
globals,
},
],
Expand Down

0 comments on commit cb64118

Please sign in to comment.