babel-preset-minimal

0.1.3 • Public • Published

babel-preset-minimal

NPM version NPM downloads CircleCI donate chat

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

  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, Released under the MIT License.
Authored and maintained by egoist with help from contributors (list).

github.com/egoist · GitHub @egoist · Twitter @_egoistlily

Readme

Keywords

none

Package Sidebar

Install

npm i babel-preset-minimal

Weekly Downloads

3

Version

0.1.3

License

MIT

Unpacked Size

5.15 kB

Total Files

4

Last publish

Collaborators

  • egoist
  • rem