mirror of
https://github.com/vuejs/babel-plugin-jsx.git
synced 2025-12-17 10:51:40 +08:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user