File tree Expand file tree Collapse file tree 4 files changed +14
-4
lines changed
Expand file tree Collapse file tree 4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default (): {
101101 } )
102102 if ( helpers . length ) {
103103 statements . unshift (
104- `import { ${ helpers . map ( ( i ) => `${ i } as _${ i } ` ) . join ( ', ' ) } } from 'vue-jsx-vapor';\n` ,
104+ `import { ${ helpers . map ( ( i ) => `${ i } as _${ i } ` ) . join ( ', ' ) } } from 'vue-jsx-vapor/runtime ';\n` ,
105105 )
106106 }
107107
Original file line number Diff line number Diff line change 99 type EffectScope ,
1010} from 'vue'
1111
12+ export { shallowRef as useRef } from 'vue'
13+
1214function createFragment (
1315 nodes : Block [ ] ,
1416 anchor : Node | undefined = document . createTextNode ( '' ) ,
Original file line number Diff line number Diff line change 1- export { shallowRef as useRef } from 'vue'
2-
31export * from './core/runtime'
Original file line number Diff line number Diff line change 11import Macros from '@vue-jsx-vapor/macros/raw'
2- import { createFilter } from 'unplugin-utils'
2+ import { createFilter , normalizePath } from 'unplugin-utils'
33import { transformVueJsxVapor } from './core'
4+ import runtimeCode from './core/runtime?raw'
45import type { Options } from './options'
56import type { UnpluginOptions } from 'unplugin'
67
@@ -30,6 +31,15 @@ const plugin = (options: Options = {}): UnpluginOptions[] => {
3031 }
3132 } ,
3233 } ,
34+ resolveId ( id ) {
35+ if ( normalizePath ( id ) === 'vue-jsx-vapor/runtime' ) return id
36+ } ,
37+ loadInclude ( id ) {
38+ return normalizePath ( id ) === 'vue-jsx-vapor/runtime'
39+ } ,
40+ load ( id ) {
41+ if ( normalizePath ( id ) === 'vue-jsx-vapor/runtime' ) return runtimeCode
42+ } ,
3343 transformInclude,
3444 transform ( code , id ) {
3545 return transformVueJsxVapor ( code , id , options )
You can’t perform that action at this time.
0 commit comments