旧版报表、仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
497 B

import uglify from 'rollup-plugin-uglify';
const umdConfig = {
output: {
format: 'umd',
name: 'Promise',
},
plugins: []
};
if (process.env.NODE_ENV === 'production') {
umdConfig.plugins.push(
uglify({
compress: {
pure_getters: true,
unsafe: true,
unsafe_comps: true,
warnings: false,
ie8: true
},
mangle: {
ie8: true
},
output: {
ie8: true
}
})
);
}
export default umdConfig;