swc_ecma_compat_es3Function property_literals
source pub fn property_literals() -> impl Pass
Expand description
babel: transform-property-literals
var foo = {
// changed
"bar": function () {},
"1": function () {},
// not changed
"default": 1,
[a]: 2,
foo: 1
};
§Output
var foo = {
bar: function () {},
1: function () {},
"default": 1,
[a]: 2,
foo: 1
};