$ npm install babel-preset-es2015-ie
Babel preset for all es2015 plugins that works with IE>=9.
$ npm install --save-dev babel-preset-es2015-ie
.babelrc
(Recommended).babelrc
{
"presets": ["es2015-ie"]
}
$ babel script.js --presets es2015-ie
require("babel-core").transform("code", {
presets: ["es2015-ie"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE