Skip to content

Commit

Permalink
fix: include sourcemaps
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines authored and mergify[bot] committed Dec 2, 2018
1 parent 1983f8a commit 0889162
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,8 @@ function generateConfig(configType) {
if (env === 'production') {
config.plugins.push(
uglify({
compress: {
pure_getters: true,
unsafe: true,
unsafe_comps: true,
warnings: false,
},
mangle: false,
compress: false,
}),
);
}
Expand All @@ -45,6 +41,7 @@ function generateConfig(configType) {
file: 'lib/index.iife.js',
format: 'iife',
name: 'solanaWeb3',
sourcemap: true,
},
];
config.plugins.push(builtins());
Expand All @@ -60,10 +57,12 @@ function generateConfig(configType) {
{
file: 'lib/index.cjs.js',
format: 'cjs',
sourcemap: true,
},
{
file: 'lib/index.esm.js',
format: 'es',
sourcemap: true,
},
];

Expand Down

0 comments on commit 0889162

Please sign in to comment.