babel-plugin-remove-vue-extend
Babel plugin for removing Vue.extend
from components.
Usage
Install:
npm install babel-plugin-remove-vue-extend# or yarn add babel-plugin-remove-vue-extend
.babelrc:
Then if you have the following component:
It will be transformed into:
{ return message: 'Hello!' }
If you are using some extended component and extend from it like:
It will be removed the extend
call expression but moved into extends
option:
extends: Sub { return message: 'Hello!' }
License
MIT