# babel-preset-vue Babel preset for all Vue plugins. ## Install ```bash npm install -D babel-preset-vue ``` CDN: [UNPKG](https://unpkg.com/babel-preset-vue/) ## Usage ```js { "presets": ["vue"] } ``` #### Supports event modifiers. Uses `babel-plugin-jsx-event-modifier` for event modifiers. Example: ```js Vue.component('hello-world', { methods: { method () { console.log('clicked') } }, render () { return (
) } }) ``` More information available on [plugin's github page](https://github.com/nickmessing/babel-plugin-jsx-event-modifiers). #### Supports functional components. Uses `babel-plugin-jsx-vue-functional` for functional components. Example: ```js const A = ({ props }) =>