Syntax flow

Syntax only

This plugin only allows Babel to parse this syntax. If you want to transform it then see transform-flow-strip-types.

This plugin allows Babel to parse flow syntax.

Installation

$ npm install babel-plugin-syntax-flow

Usage

Add the following line to your .babelrc file:

{
  "plugins": ["syntax-flow"]
}