babel-preset-haiyan
Usage
yarn add -D babel-preset-haiyan
.babelrc
:
{
"presets": [
[
"babel-preset-haiyan",
{
"typescript": true,
"react": {
"development": true
}
}
]
]
}
Options
Name | Type | Description |
---|---|---|
typescript | boolean |
Whether support typescript or not |
env | object |
Options pass to @babel/preset-env
|
react | boolean | object |
Whether support react or not. If pass object, it's options pass to @babel/preset-react
|
reactRequire | boolean |
Whether include babel-plugin-react-require or not |
transformRuntime | object |
Options pass to @babel/plugin-transform-runtime , disabled if not set it |