babel-preset-es2015-loose-native-modules
Babel preset that uses modify-babel-preset to modify babel-preset-es2015
and enable loose mode where available.
Install
Install both this preset, and the core 'babel-preset-es2015' that it modifies:
$ npm install --save-dev babel-preset-es2015-loose-native-modules babel-preset-es2015-loose babel-preset-es2015
Usage
Via .babelrc
(Recommended)
.babelrc
{
"presets": ["es2015-loose-native-modules"]
}
Via CLI
$ babel script.js --presets es2015-loose-native-modules
Via Node API
require("babel-core").transform("code", {
presets: ["es2015-loose-native-modules"]
})