File tree 3 files changed +27
-5
lines changed
3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 1
- const Vue = require ( 'vue' )
2
- exports . jsx = Vue . h
3
- exports . jsxDEV = Vue . h
4
- exports . Fragment = Vue . Fragment
1
+ const { h, Fragment } = require ( 'vue' )
2
+
3
+ function jsx ( type , { children, ...props } ) {
4
+ return h ( type , props , children )
5
+ }
6
+
7
+ exports . jsx = jsx
8
+ exports . jsxs = jsx
9
+ exports . jsxDEV = jsx
10
+ exports . Fragment = Fragment
Original file line number Diff line number Diff line change 1
- export { h as jsx , h as jsxDEV , Fragment } from 'vue'
1
+ import { h , Fragment } from 'vue'
2
+
3
+ function jsx ( type , { children, ...props } ) {
4
+ return h ( type , props , children )
5
+ }
6
+
7
+ export {
8
+ Fragment ,
9
+ jsx ,
10
+ jsx as jsxs ,
11
+ jsx as jsxDEV
12
+ }
Original file line number Diff line number Diff line change 43
43
"import" : " ./jsx-runtime/index.mjs" ,
44
44
"require" : " ./jsx-runtime/index.js"
45
45
},
46
+ "./jsx-dev-runtime" : {
47
+ "types" : " ./jsx-runtime/index.d.ts" ,
48
+ "import" : " ./jsx-runtime/index.mjs" ,
49
+ "require" : " ./jsx-runtime/index.js"
50
+ },
46
51
"./jsx" : {
47
52
"types" : " ./jsx.d.ts"
48
53
},
You can’t perform that action at this time.
0 commit comments