babel-preset-minimal
Features
- Minimal
async/await
transform - Loose mode if you want minimal output but still need to support old browsers like IE 9
- Modern mode if you only target browsers that support
<script type="module">
tag - ...See complete features.
Install
yarn add babel-preset-minimal
Usage
Your .babelrc
:
{
"presets": ["minimal"]
}
Options
jsx
- Type:
string
- Default:
react
- Possible values:
react
vue
or any JSX pragma like h
.
mode
- Type:
string
- Default:
undefined
- Possible values:
loose
modern
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
babel-preset-minimal © egoist, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).
github.com/egoist · GitHub @egoist · Twitter @_egoistlily