docs: update README

This commit is contained in:
Amour1688
2020-05-27 00:12:34 +08:00
parent 5e2eaa6ced
commit 082f537b89
4 changed files with 23 additions and 20 deletions

View File

@ -7,14 +7,16 @@ To add Vue JSX support.
Install the plugin with:
```
npm install @ant-design-vue/babel-plugin-jsx
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"]
"plugins": ["@ant-design-vue/babel-plugin-jsx", { "transformOn": true }]
}
```