fix: include sourcemaps

This commit is contained in:
Michael Vines 2018-12-02 10:17:15 -08:00
parent cd4da00a68
commit e17d00d4cd
1 changed files with 5 additions and 6 deletions

View File

@ -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,
},
];