Skip to content

Commit bcf52c1

Browse files
committed
docs: update vue 3 Compatibility
1 parent 7625197 commit bcf52c1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
Configurable Babel preset to add Vue JSX support. See the [configuration options here](./packages/babel-preset-jsx).
44

5+
## Compatibility
6+
7+
This repo is only compatible with:
8+
9+
- **Babel 7+**. For Babel 6 support, use [vuejs/babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)
10+
- **Vue 2+**. JSX is not supported for older versions. For Vue 3 support, there is an experimental plugin available as [@ant-design-vue/babel-plugin-jsx](https://github.com/vueComponent/jsx).
11+
512
## Installation
613

714
Install the preset with:
@@ -159,10 +166,3 @@ or PascalCase variable declarations:
159166
```jsx
160167
const HelloWorld = ({ props }) => <p>hello {props.message}</p>
161168
```
162-
163-
## Compatibility
164-
165-
This repo is only compatible with:
166-
167-
- **Babel 7+**. For Babel 6 support, use [vuejs/babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx)
168-
- **Vue 2+**. JSX is not supported for older versions.

0 commit comments

Comments
 (0)