* Add variance node type and generate property variance annotations babel/babylon#161 adds parsing support for property variance annotations. This PR adds the necessary node type for the new Variance node and generate support for all the positions where variance can now appear. * Variance is no longer a separate node type This diff also adds tests to class properties and to the flow-strip-types transform. * Add test + fix for edge case with variance and class proeprties
babel-plugin-transform-flow-strip-types
Strip flow type annotations from your output code.
Installation
$ npm install babel-plugin-transform-flow-strip-types
Usage
Via .babelrc (Recommended)
.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"]
});