feat: add pragma option and support @jsx annotation (#322)

* add pragma option and support @jsx annotation

* update syntax and remove useless eslint rule

* use BabelCore.BabelFile as type definition of state.file

* update chinese doc
This commit is contained in:
JokcyLou
2021-02-28 18:08:42 +08:00
committed by GitHub
parent 57f670711d
commit ec50fddc8a
6 changed files with 77 additions and 0 deletions

View File

@@ -62,6 +62,14 @@ Default: `true`
使用 `enableObjectSlots` (文档下面会提到)。虽然在 JSX 中比较好使,但是会增加一些 `_isSlot` 的运行时条件判断,这会增加你的项目体积。即使你关闭了 `enableObjectSlots``v-slots` 还是可以使用
#### pragma
Type: `string`
Default: `createVNode`
替换编译JSX表达式的时候使用的函数
## 表达式
### 内容