babel-preset-minimal
A babel preset to produce minimal output.
Last updated a year ago by egoist .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install babel-preset-minimal 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.1.3                                ...           latest (a year ago)

4 Versions

  • 0.1.3                                ...           a year ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Maintainers (2)
Downloads
Today 7
This Week 12
This Month 55
Last Day 1
Last Week 8
Last Month 12
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |