Skip to content

Latest commit

 

History

History

babel-preset-kyt-react

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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