babel-preset-vue-app
![NPM downloads](https://img.shields.io/npm/dm/babel-preset-vue-app.svg?style=flat)
Features
- Latest ECMAScript features (babel-preset-env)
- Object rest spread and dynamic import
- Transform Vue JSX
- Transform
generator
and async/await
Install
yarn add babel-preset-vue-app --dev
Usage
{
"presets": ["vue-app"]
}
Polyfill
Object rest spread and Vue JSX needs the native Object.assign
method, you should ship one yourself like this:
Object.assign = require('object.assign')
Or using babel-polyfill
:
import 'babel-polyfill'
Note that babel-polyfill
will polyfill everything we need in IE9
.
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
License
MIT.