Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.5 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.5 KB

babel-preset-kyt-react

npm

A wrapper around @babel/preset-react with optional production enhancements.

This preset includes babel-preset-kyt-core - you do not need to install both.

  • Automatically strips propTypes when (NODE|BABEL)_ENV=production.
  • Properly passes { development: true } to @babel/preset-react when (NODE|BABEL)_ENV=development.

Installation

$ yarn add --dev babel-preset-kyt-react
$ npm i --save-dev --save-exact babel-preset-kyt-react

Options