babel-plugin-vue-setup-return

0.1.0 • Public • Published

babel-plugin-vue-setup-return

Babel plugin for Vue composition api

Automatic return statement injection through variable prefix for vue composition api setup

!!!note: When the function name is setup, all the matching inside the function will be converted

Usage

npm install babel-plugin-vue-setup-return --save-dev
 
yarn add babel-plugin-vue-setup-return --dev

In your babel.config.js:

plugins: [
  [
    'vue-setup-return', {
      prefix: '_RE_'  // prefix defult __RE__
    }
  ]
]

example

Refer to this project test folder: index.test.js

Package Sidebar

Install

npm i babel-plugin-vue-setup-return

Weekly Downloads

0

Version

0.1.0

License

ISC

Unpacked Size

4.55 kB

Total Files

5

Last publish

Collaborators

  • 21413