Introduce new compress option unsafe_arrows (#2278)
* Not always safe to convert a function expression to an arrow function when code depends on the function prototype existing. Fixes #2271
This commit is contained in:
@@ -36,9 +36,10 @@ compress_new_function_with_destruct: {
|
||||
compress_new_function_with_destruct_arrows: {
|
||||
options = {
|
||||
arrows: true,
|
||||
unsafe_arrows: true,
|
||||
unsafe: true,
|
||||
unsafe_Func: true,
|
||||
ecma: 6
|
||||
ecma: 6,
|
||||
}
|
||||
beautify = {
|
||||
ecma: 6
|
||||
|
||||
Reference in New Issue
Block a user