@trigen/babel-preset
v8.0.0-alpha.30
Published
Trigen's Babel preset.
Downloads
223
Readme
@trigen/babel-preset
Trigen's Babel preset.
Install
pnpm add -D @trigen/babel-preset
# or
yarn add -D @trigen/babel-preset
# or
npm i -D @trigen/babel-preset
Configure
Add @trigen/babel-preset
to your presets in .babelrc.json
.
Options
| Option | Default value for app
env | lib
env | jest
env |
|------|-----------------------------|-----------|------------|
| targets | false
| false
| { node: 'current' }
|
| useBuiltIns | 'usage'
| — | — |
| corejs | 3
| — | — |
| commonjs | false
| false
| true
|
| typescript | false
| — | — |
| react | false
| — | — |
| transformDynamicImport | false
| false
| true
|
| transformRuntime | false
| true
| false
|
| requireContextHook | false
| false
| true
|
| reactConstantElements
| — | — | — |
| reactRemovePropTypes
| — | { mode: 'unsafe-wrap' }
| — |