$ npm install babel-plugin-transform-es2015-for-of
Compile ES2015 for...of to ES5
$ npm install babel-plugin-transform-es2015-for-of
.babelrc
(Recommended).babelrc
{
"plugins": ["transform-es2015-for-of"]
}
$ babel --plugins transform-es2015-for-of script.js
require("babel-core").transform("code", {
plugins: ["transform-es2015-for-of"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE