babel/packages/babel-plugin-transform-flow-strip-types
Daniel Tschinder 1fce4cb42a Fix striping of typeParameters from arrow functions (#4521)
the typeParameters field was missing in the visitors and therefore
never visited by babel-traverse

Fixes #4483
2016-09-17 22:46:45 -04:00
..
2016-08-24 17:40:46 -06:00
2015-09-15 06:12:46 +01:00

babel-plugin-transform-flow-strip-types

Strip flow type annotations from your output code.

Installation

$ npm install babel-plugin-transform-flow-strip-types

Usage

.babelrc

{
  "plugins": ["transform-flow-strip-types"]
}

Via CLI

$ babel --plugins transform-flow-strip-types script.js

Via Node API

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