我正在尝试使用 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。
有没有人知道问题是什么?
如果我不破坏代码,一切正常并通过我所有的测试