bpr

babel-plugin-react-remove-prop-types

Deprecated, use babel-plugin-transform-react-remove-prop-types

Showing:

Popularity

Downloads/wk

8

GitHub Stars

87

Maintenance

Last Commit

5yrs ago

Contributors

4

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Deprecated!
Use babel-plugin-transform-react-remove-prop-types instead

Readme

Babel Plugin for removing React propTypes

Circle CI Downloads

Removes propTypes from your React components.

This plugin deprecated. Use babel-plugin-transform-react-remove-prop-types

Example

In

const Foo = React.createClass({
  propTypes: {
    foo: React.PropTypes.string
  }
});

Out

const Foo = React.createClass({});

Installation

$ npm install --save-dev babel-plugin-react-remove-prop-types

Usage

.babelrc

{
  "env": {
    "production": {
      "plugins": ["react-remove-prop-types"]
    }
  }
}

Via CLI

$ babel --plugins react-remove-prop-types script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["react-remove-prop-types"]
});

License

MIT license

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial