babel-preset-vue
Babel preset for all Vue plugins.
Install
npm install -D babel-preset-vue
CDN: UNPKG
Usage
In your .babelrc
:
You can toggle specific features, by default all features are enabled, e.g.:
JSX Features
Note that following features are not available for babel v7 currently, you may disable them if necessary.
Event modifiers
Option name: eventModifiers
Uses babel-plugin-jsx-event-modifier
for adding event modifiers support.
Example:
Vue
v-model
Options name: vModel
Uses babel-plugin-jsx-v-model
for adding v-model
support.
Example:
Vue
License
MIT © EGOIST