I currently have this
ready : function(){
bus.$on('a-data', (param) => {
this.name = param.name;
this.age = param.age;
})
},
While this particular code run when uglifyjs
is disabled, when enabled it throws the following error
SyntaxError: Unexpected token: operator (>)
Here's my uglify config
new webpack.optimize.UglifyJsPlugin({
minimize: true,
sourceMap: false,
compress: {
warnings: false,
sequences: true,
dead_code: true,
conditionals: true,
booleans: true,
unused: true,
if_return: true,
join_vars: true,
drop_console: true
}
}))
I can't seem to understand why it's not working. Any ideas?