terser-webpack-plugin TypeError: Cannot read property ‘javascript‘ of undefined

VUE项目build报这个错的原因:
terser-webpack-plugin TypeError: Cannot read property ‘javascript‘ of undefined

terser-webpack-plugin与webpack版本不一致造成

比如,我得terser-webpack-plugin版本是5,而webpack版本是4

你可能感兴趣的:(terser-webpack-plugin TypeError: Cannot read property ‘javascript‘ of undefined)