babel-plugin-syntax-flow
Installation
npm install --save-dev babel-plugin-syntax-flow
Usage
.babelrc
(Recommended)
Via .babelrc
{
"plugins": ["syntax-flow"]
}
Via CLI
babel --plugins syntax-flow script.js
Via Node API
require("babel-core").transform("code", {
plugins: ["syntax-flow"]
});