Trigen's Babel preset.
pnpm add -D @trigen/babel-preset
# or
yarn add -D @trigen/babel-preset
# or
npm i -D @trigen/babel-preset
Add @trigen/babel-preset
to your presets in .babelrc.json
.
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' } |
— |