babel-preset-flow-syntax
This is an extension of the official flow that is supposly is a:
Babel preset for all Flow plugins.
But there are certain features like class properties syntax that flow supports out of the box while babel requires transform-class-properties plugin in order to be able to parse it.
Babel preset that supports full flow syntax.
This preset includes the following plugins & presets:
Example
In
Out
{}
Installation
npm install --save-dev babel-preset-flow
Usage
.babelrc
(Recommended)
Via .babelrc
Via CLI
babel --presets flow-syntax script.js
Via Node API
;