@oriflame/babel-preset
v5.15.15
Published
Babel preset for oriflame projects.
Downloads
188
Readme
@oriflame/babel-preset
Installation
npm install --save-dev @oriflame/babel-preset @babel/core
yarn add --dev @oriflame/babel-preset @babel/core
Usage
babelrc
{
"presets": [
[
"@oriflame/babel-preset",
{
"react": true
}
]
]
}
Options
- react
boolean
- Enable react preset
- modules
boolean
- Enables modules transpilation
- library
boolean
- Enables optimizations for library
- graphql
boolean
- Add support for graphql
- removePropTypes
boolean
- Removes prop types from source code
- targets
Record<string, string> | string[] | string
- env targets (see: @babel/preset-env#targets)
- srcFolder
string
- Change default source folder
- default:
src
- env
object
- Change env setting
- see: @babel/preset-evn
Using core-js
We support core-js polyfills.
See: babel documentation.