Package Exports
- babel-preset-kyt-react
- babel-preset-kyt-react/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (babel-preset-kyt-react) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
babel-preset-kyt-react
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
propTypeswhen(NODE|BABEL)_ENV=production. - Properly passes
{ development: true }to@babel/preset-reactwhen(NODE|BABEL)_ENV=development.
Installation
$ yarn add --dev babel-preset-kyt-react
$ npm i --save-dev --save-exact babel-preset-kyt-reactOptions
useProductionTransforms(Boolean) - whether to include these plugins; default:true:envOptions(Object) - passed down tobabel-preset-kyt-core. See more.includeRuntime(Boolean) - whether or not to include@babel/plugin-transform-runtime; default:false