I am trying to mangle my code using UglifyJS.
The libraries i include are (some) Ramda, React, Underscore, react-select ...
However when i mangle the code, in RamdaJS "output" section it gives me the error :
First argument to arity must be a non-negative integer no grater than ten
The uglifyjs config i am using with webpack is :
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","_","__"]
}
}
})
I am using ramda 0.13.
Is anyone out there that knows what the problem is?
If i don't mangle the code, everything works and passes all my tests