babel-plugin-vue3-jsx-transform

0.0.8 • Public • Published

Introduction

This is a babel plugin that helps transform jsx element to vnode for vue 3.0

Details

slot support

<template slot="name">
    ...
</template>

v-show support

<div v-show="name">
    ...
</div>

or

<div vShow="name">
    ...
</div>

v-if support

<div v-if="name">
    ...
</div>

or

<div vIf="name">
    ...
</div>

spread attribute support

<div {...{class:'a', style: 'color: white'}}></div>

Change Log

v0.0.6

  • add v-if support

v0.0.5

  • bug fix

v0.0.4

  • add v-show support

v0.0.3

  • add slot support

v0.0.2

  • support spread attribute on element

Readme

Keywords

Package Sidebar

Install

npm i babel-plugin-vue3-jsx-transform

Weekly Downloads

9

Version

0.0.8

License

MIT

Unpacked Size

9.44 kB

Total Files

3

Last publish

Collaborators

  • wuhao000