@dawnjs/babel-preset-dawn
v2.2.1
Published
Basic babel preset
Downloads
32
Readme
@dawnjs/babel-preset-dawn
Usage
In .babelrc
:
{
"presets": [
[
"@dawnjs/babel-preset-dawn",
{
"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 |