Babel Config
Factory functions for creating preset Babel configurations. Primarily used in unison with the Lumos CLI.
Extending config
Update package.json:
Create file in configs folder:
configs/babel.js
modulesexports = plugins: 'styled-components';
Settings
Main settings
Default values
Options
- env
- Babel preset evn config
- buildFolder
- Defines build folder
- react
- Enable/Disable react usage
- typescript
- Enable/Disable typescript usage
- esm
- Enable/Disable esm bundle
- empty
- This will generate empty babelrc
- This can be handy when you need special babelrc config
- graphql
- Enable/Disable graph QL usage
- library
- Enable/Disable optimization for library
- next
- Enable/Disable experimental plugins
- node
- Enable/Disable only node support
CLI Options
--[no-]clean
(bool) - Clean the target--out-dir
before transpiling. Defaults totrue
.