# @stevoland/babel-plugin-transform-react-remove-prop-types

> Remove unnecessary React propTypes from the production build

Latest version **0.2.7** (published 2016-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @stevoland/babel-plugin-transform-react-remove-prop-types
pnpm add @stevoland/babel-plugin-transform-react-remove-prop-types
yarn add @stevoland/babel-plugin-transform-react-remove-prop-types
bun add @stevoland/babel-plugin-transform-react-remove-prop-types
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.7 |
| Published | 2016-06-20 |
| First published | 2016-06-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nikita Gusakov |
| Maintainers | stevoland |
| Keywords | babel, babel-plugin, react, minification, propTypes |

## Links

- npm: https://www.npmjs.com/package/@stevoland/babel-plugin-transform-react-remove-prop-types
- Repository: https://github.com/stevoland/babel-plugin-transform-react-remove-prop-types
- Homepage: https://github.com/stevoland/babel-plugin-transform-react-remove-prop-types#readme
- Issues: https://github.com/stevoland/babel-plugin-transform-react-remove-prop-types/issues
- npm.io page: https://npm.io/package/@stevoland/babel-plugin-transform-react-remove-prop-types

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.2.7 (latest) — 2016-06-20

## README

# Babel Plugin for removing React propTypes
[![npm version](https://img.shields.io/npm/v/babel-plugin-transform-react-remove-prop-types.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types)
[![npm downloads](https://img.shields.io/npm/dm/babel-plugin-transform-react-remove-prop-types.svg?style=flat-square)](https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types)
[![Build Status](https://travis-ci.org/oliviertassinari/babel-plugin-transform-react-remove-prop-types.svg?branch=master)](https://travis-ci.org/oliviertassinari/babel-plugin-transform-react-remove-prop-types)

[![Dependencies](https://img.shields.io/david/oliviertassinari/babel-plugin-transform-react-remove-prop-types.svg?style=flat-square)](https://david-dm.org/oliviertassinari/babel-plugin-transform-react-remove-prop-types)
[![DevDependencies](https://img.shields.io/david/dev/oliviertassinari/babel-plugin-transform-react-remove-prop-types.svg?style=flat-square)](https://david-dm.org/oliviertassinari/babel-plugin-transform-react-remove-prop-types#info=devDependencies&view=list)

Remove unnecessary React `propTypes` from the production build.

## Example

**In**
```js
const Baz = () => (
  <div />
);

Baz.propTypes = {
  foo: React.PropTypes.string
};
```

**Out**
```js
const Baz = () => (
  <div />
);
```

## Installation

```sh
npm install --save-dev babel-plugin-transform-react-remove-prop-types
```

## Usage

### Via `.babelrc` (Recommended)

**.babelrc**

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

### Via CLI

```sh
babel --plugins transform-react-remove-prop-types script.js
```

### Via Node API

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

#License

MIT

---
_Source: https://npm.io/package/@stevoland/babel-plugin-transform-react-remove-prop-types · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
