Syntax flow

Allow parsing of the flow syntax

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 --save-dev babel-plugin-syntax-flow

Usage

.babelrc

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

Via CLI

babel --plugins syntax-flow script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["syntax-flow"]
});

© 2018 Sebastian McKenzie
Licensed under the MIT License.
http://babeljs.io/docs/plugins/syntax-flow/