swc_ecma_transforms_compat::es3Function property_literals
source  pub fn property_literals() -> impl Fold
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
};