babel-plugin-transform-exports
A babel plugin to turn ES5 exports or module.exports call to ES6/7
Install
npm install --save-dev babel-plugin-transform-exports
Usage
babel-cli
using npm i --save-dev babel-cli
Note: For using this package as standalone, you must install ;; const codeES5 = 'module.exports = 123';const codeES6 = code // codeES5 => 'module.exports = 123';// codeES6 => 'export default 123';
Contributing
In case of bug or feature request, feel free to file an issue.