Titan Babel React Config
Reusable babel config that can get you setup on react
Installation
- yarn add @titan-tooling/babel-react-config --dev
- extend which config you need in the
.babelrc
file:
{
"extend": "@titan-tooling/babel-react-config"
}
Production config
BABEL_ENV=production
needs to be set for the minfication to work.
Plugins
- @babel/plugin-proposal-object-rest-spread - support for the spread operator
- @babel/plugin-transform-modules-commonjs - compiles es6 modules to commonjs
- @babel/plugin-syntax-dynamic-import - provides support for dynamic imports