expand builtins exclusions (#5601)

closes #5600
This commit is contained in:
Alex Lam S.L
2022-08-05 06:37:02 +01:00
committed by GitHub
parent 41b65af6e2
commit 8a07f1202c
3 changed files with 97 additions and 50 deletions

View File

@@ -110,7 +110,9 @@ numeric_literal: {
identifier: {
mangle = {
properties: true,
properties: {
builtins: true,
},
}
input: {
var obj = {
@@ -209,37 +211,37 @@ identifier: {
B: 28,
C: 29,
D: 30,
F: 31,
G: 32,
false: 33,
null: 34,
true: 35,
H: 36,
I: 37,
J: 38,
K: 39,
L: 40,
M: 41,
N: 42,
O: 43,
P: 44,
Q: 45,
R: 46,
S: 47,
T: 48,
U: 49,
V: 50,
W: 51,
X: 52,
Y: 53,
Z: 54,
$: 55,
_: 56,
ee: 57,
te: 58,
ne: 59,
ae: 60,
ie: 61,
E: 31,
F: 32,
G: 33,
H: 34,
I: 35,
J: 36,
K: 37,
L: 38,
M: 39,
N: 40,
O: 41,
P: 42,
Q: 43,
R: 44,
S: 45,
T: 46,
U: 47,
V: 48,
W: 49,
X: 50,
Y: 51,
Z: 52,
$: 53,
_: 54,
ee: 55,
te: 56,
ne: 57,
ae: 58,
ie: 59,
oe: 60,
re: 61,
};
}
}

View File

@@ -206,6 +206,7 @@ mangle_unquoted_properties: {
}
mangle = {
properties: {
builtins: true,
keep_quoted: true,
},
}
@@ -305,6 +306,7 @@ mangle_debug_suffix_keep_quoted: {
}
mangle = {
properties: {
builtins: true,
debug: "XYZ",
keep_quoted: true,
reserved: [],