babel-preset-es2015-loose-rollup
v7.0.0
Published
Babel ES2015 Loose mode to be used with rollup
Downloads
489
Readme
babel-preset-es2015-loose-rollup
Babel ES2015 Loose mode to be used with rollup
This combines babel-preset-loose with babel-preset-es2015-rollup.
The version number does not correspond the Babel version number.
Install
$ npm install babel-preset-es2015-loose-rollup --save-dev
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es2015-loose-rollup"]
}
Via CLI
$ babel script.js --presets es2015-loose-rollup
Via Node API
require('babel-core').transform('code', {
presets: ['es2015-loose-rollup']
});