@babel/plugin-transform-property-mutators
var foo = Object.defineProperties(
{},
bar: {
get: function() {
return this._bar;
set: function(value) {
this._bar = value;
},
configurable: true,
},
);
{
"plugins": ["@babel/plugin-transform-property-mutators"]
}
require("@babel/core").transformSync("code", {
plugins: ["@babel/plugin-transform-property-mutators"],