From e17d00d4cdb267297417d17362cb7244c04ea7b2 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 2 Dec 2018 10:17:15 -0800 Subject: [PATCH] fix: include sourcemaps --- web3.js/rollup.config.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/web3.js/rollup.config.js b/web3.js/rollup.config.js index a5bd751cf..200ec6e0f 100644 --- a/web3.js/rollup.config.js +++ b/web3.js/rollup.config.js @@ -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, }), ); } @@ -45,6 +41,7 @@ function generateConfig(configType) { file: 'lib/index.iife.js', format: 'iife', name: 'solanaWeb3', + sourcemap: true, }, ]; config.plugins.push(builtins()); @@ -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, }, ];