babel-preset-haiyan
v0.1.1
Published
集成 babel 常用能力,支持 TS、React、babel runtime 相关配置
Downloads
3
Readme
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 |