babel-plugin-transform-es3-getter-to-property-assignment
This plugin transforms Object.defineProperty getter to property assignment for Babel 6.x
Example
In
const exports = {}; Object;
Out
const exports = {}; exports'foo' = { return 'bar';};
Installation
$ npm install --save-dev babel-plugin-transform-es3-getter-to-property-assignment
Usage
Via .babelrc (Recommended)
.babelrc
Via CLI
babel --plugins transform-es3-getter-to-property-assignment
Via Node API
;