fix: include sourcemaps

This commit is contained in:
Michael Vines
2018-12-02 10:17:15 -08:00
parent cd4da00a68
commit e17d00d4cd

View File

@ -28,12 +28,8 @@ function generateConfig(configType) {
if (env === 'production') { if (env === 'production') {
config.plugins.push( config.plugins.push(
uglify({ uglify({
compress: { mangle: false,
pure_getters: true, compress: false,
unsafe: true,
unsafe_comps: true,
warnings: false,
},
}), }),
); );
} }
@ -45,6 +41,7 @@ function generateConfig(configType) {
file: 'lib/index.iife.js', file: 'lib/index.iife.js',
format: 'iife', format: 'iife',
name: 'solanaWeb3', name: 'solanaWeb3',
sourcemap: true,
}, },
]; ];
config.plugins.push(builtins()); config.plugins.push(builtins());
@ -60,10 +57,12 @@ function generateConfig(configType) {
{ {
file: 'lib/index.cjs.js', file: 'lib/index.cjs.js',
format: 'cjs', format: 'cjs',
sourcemap: true,
}, },
{ {
file: 'lib/index.esm.js', file: 'lib/index.esm.js',
format: 'es', format: 'es',
sourcemap: true,
}, },
]; ];