我正在尝试使用UglifyJS来破坏我的代码 我包括的库是(某些)Ramda,React,Underscore,react-select ......
然而,当我破坏代码时,在RamdaJS"输出"它给了我错误:
First argument to arity must be a non-negative integer no grater than ten
我正在使用webpack的uglifyjs配置是:
new webpack.optimize.UglifyJsPlugin({
//include: /\.min\.js$/,
//compress: {
// //sequences: true,
// //dead_code: true,
// //conditionals: true,
// //booleans: true,
// //unused: true,
// //if_return: true,
// //join_vars: true,
// drop_console: true
//},
mangle:{
props:{
//ignore_quoted:true,
reserved:["$","$<","$@","require","import","jQuery","module","_arity","exports","R","ramda","call","prototype","init","_","__"]
}
}
})
我正在使用ramda 0.13。
有人在那里知道问题是什么吗? 如果我没有破坏代码,一切正常并通过我的所有测试