$ npm install babel-plugin-syntax-flow
$ npm install babel-plugin-syntax-flow
.babelrc
(Recommended).babelrc
{
"plugins": ["syntax-flow"]
}
$ babel --plugins syntax-flow script.js
require("babel-core").transform("code", {
plugins: ["syntax-flow"]
});
© 2010 - cnpmjs.org x YWFE | Home | YWFE