babel-plugin-veui

2.17.6 • Public • Published

babel-plugin-veui

This Babel plugin enables you to write simpler import statements by converting such statements:

import { Button, Input } from 'veui'

...into:

import Button from 'veui/components/Button'
import Input from 'veui/components/Input'

...just like babel-plugin-lodash does.

You can also use the following prefixed version to make it easier to register components using object property shorthand:

import { VeuiButton, VeuiInput } from 'veui'

export default {
  components: {
    VeuiButton,
    VeuiIcon
  }
}

...or...

import { VButton, VInput } from 'veui'

export default {
  components: {
    VButton,
    VIcon
  }
}

So you can use <veui-button> or <v-button> in templates.

Package Sidebar

Install

npm i babel-plugin-veui

Weekly Downloads

7

Version

2.17.6

License

MIT

Unpacked Size

9.38 kB

Total Files

7

Last publish

Collaborators

  • ecomfe-core