babel-plugin-remove-prop-types

1.0.1 • Public • Published

Babel Plugin for removing propTypes property from ES2015 classes

Removes propTypes property from classes

Example

In

  Class Foo {
    propTypes: {
      foo: React.PropTypes.string
    }
  }

Out

  Class Foo {
  }

Installation

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

Usage

.babelrc

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

Via CLI

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

Via Node API

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11

Package Sidebar

Install

npm i babel-plugin-remove-prop-types

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vlkosinov