babel/packages/babel-plugin-transform-flow-strip-types
Sam Goldman a38a58bad8 Add support for Flow def-site variance syntax
This syntax allows you to specify whether a type variable can appear in
a covariant or contravariant position, and is super useful for, say,
Promise.

Right now this is hacked in jankily, but in the next major release we
should stop using Identifier nodes for type parameters.
2016-03-06 14:44:09 -08:00
..
2016-03-03 14:49:20 -08:00
2016-03-04 18:16:17 -05: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"]
});