Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

vladkosinov/babel-plugin-remove-prop-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Via .babelrc (Recommended)

.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"]
});

About

Removes propTypes property from classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published