JSX for Vue 3
Go to file
2020-05-28 12:47:25 +08:00
packages bump 1.0.0-alpha.4 2020-05-28 12:47:25 +08:00
.eslintrc chore: modify .eslintrc 2020-05-24 11:31:04 +08:00
.gitignore with @vue/test-utils 2020-05-14 13:24:22 +08:00
.npmignore bump 1.0.0-alpha.0 2020-05-24 10:29:41 +08:00
CHANGELOG.md docs: changelog 2020-05-19 21:44:08 +08:00
lerna.json refactor: support transformOn 2020-05-26 21:04:56 +08:00
LICENSE Initial commit 2020-05-08 16:58:50 +08:00
package.json refactor: support transformOn 2020-05-26 21:04:56 +08:00
README.md docs: update README 2020-05-27 13:05:24 +08:00

Babel Plugin JSX for Vue 3.0

To add Vue JSX support.

Installation

Install the plugin with:

npm install @ant-design-vue/babel-plugin-jsx -D

npm install @ant-design-vue/babel-helper-vue-transform-on

Then add the plugin to .babelrc:

{
  "plugins": ["@ant-design-vue/babel-plugin-jsx", { "transformOn": true, "compatibleProps": true }]
}

Usage

options

  • transformOn

transform on: { click: xx } to onClick: xxx, and you should install @ant-design-vue/babel-helper-vue-transform-on

  • compatibleProps

compatible with Vue 2.x and you should install @ant-design-vue/babel-helper-vue-compatible-props

Compatibility

This repo is only compatible with:

  • Babel 7+
  • Vue 3+