https://github.com/egoist/babel-preset-minimal
A babel preset that produces smallest possible code.
https://github.com/egoist/babel-preset-minimal
Last synced: 4 months ago
JSON representation
A babel preset that produces smallest possible code.
- Host: GitHub
- URL: https://github.com/egoist/babel-preset-minimal
- Owner: egoist
- License: mit
- Created: 2018-06-08T16:24:10.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T05:14:18.000Z (about 3 years ago)
- Last Synced: 2024-10-29T19:44:12.567Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 264 KB
- Stars: 40
- Watchers: 3
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-github-star - babel-preset-minimal
README
# babel-preset-minimal
[](https://npmjs.com/package/babel-preset-minimal) [](https://npmjs.com/package/babel-preset-minimal) [](https://circleci.com/gh/egoist/babel-preset-minimal/tree/master) [](https://github.com/egoist/donate) [](https://chat.egoist.moe)
## 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 `` tag
- [...See complete features](./test/snapshots/index.test.js.md).## Install
```bash
yarn add babel-preset-minimal
```## Usage
Your `.babelrc`:
```json
{
"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
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D## Author
**babel-preset-minimal** © [egoist](https://github.com/egoist), Released under the [MIT](./LICENSE) License.<br>
Authored and maintained by egoist with help from contributors ([list](https://github.com/egoist/babel-preset-minimal/contributors)).> [github.com/egoist](https://github.com/egoist) · GitHub [@egoist](https://github.com/egoist) · Twitter [@_egoistlily](https://twitter.com/_egoistlily)