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

@@ -66,6 +66,14 @@ Default: `true`
Whether to enable `object slots` (mentioned below the document) syntax". It might be useful in JSX, but it will add a lot of `_isSlot` condition expressions which increase your bundle size. And `v-slots` is still available even if `enableObjectSlots` is turned off.
#### pragma
Type: `string`
Default: `createVNode`
Replace the function used when compiling JSX expressions.
## Syntax
### Content