You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: packages/babel-plugin-jsx/README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,14 @@ Default: `true`
66
66
67
67
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.
68
68
69
+
#### pragma
70
+
71
+
Type: `string`
72
+
73
+
Default: `createVNode`
74
+
75
+
Replace the function used when compiling JSX expressions.
0 commit comments