File tree 4 files changed +14
-4
lines changed
4 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export default (): {
101
101
} )
102
102
if ( helpers . length ) {
103
103
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` ,
105
105
)
106
106
}
107
107
Original file line number Diff line number Diff line change 9
9
type EffectScope ,
10
10
} from 'vue'
11
11
12
+ export { shallowRef as useRef } from 'vue'
13
+
12
14
function createFragment (
13
15
nodes : Block [ ] ,
14
16
anchor : Node | undefined = document . createTextNode ( '' ) ,
Original file line number Diff line number Diff line change 1
- export { shallowRef as useRef } from 'vue'
2
-
3
1
export * from './core/runtime'
Original file line number Diff line number Diff line change 1
1
import Macros from '@vue-jsx-vapor/macros/raw'
2
- import { createFilter } from 'unplugin-utils'
2
+ import { createFilter , normalizePath } from 'unplugin-utils'
3
3
import { transformVueJsxVapor } from './core'
4
+ import runtimeCode from './core/runtime?raw'
4
5
import type { Options } from './options'
5
6
import type { UnpluginOptions } from 'unplugin'
6
7
@@ -30,6 +31,15 @@ const plugin = (options: Options = {}): UnpluginOptions[] => {
30
31
}
31
32
} ,
32
33
} ,
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
+ } ,
33
43
transformInclude,
34
44
transform ( code , id ) {
35
45
return transformVueJsxVapor ( code , id , options )
You can’t perform that action at this time.
0 commit comments