File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/nitro-v2-vite-plugin/src Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ export function nitroV2Plugin(nitroConfig?: NitroConfig): Array<PluginOption> {
94
94
95
95
await builder . build ( client )
96
96
await builder . build ( server )
97
- const h3 = require . resolve ( 'h3-v1' )
97
+ const h3v1 = require . resolve ( 'h3-v1' )
98
98
99
99
const virtualEntry = '#tanstack/start/entry'
100
100
const baseURL = ! isFullUrl ( resolvedConfig . base )
@@ -119,11 +119,11 @@ export function nitroV2Plugin(nitroConfig?: NitroConfig): Array<PluginOption> {
119
119
name : 'resolve' ,
120
120
resolveId ( source , importer ) {
121
121
if (
122
+ source === 'h3' &&
122
123
( importer ?. includes ( 'nitropack' ) ||
123
- importer === virtualEntry ) &&
124
- source === 'h3'
124
+ importer ?. includes ( virtualEntry ) )
125
125
) {
126
- return h3
126
+ return h3v1
127
127
}
128
128
return null
129
129
} ,
You can’t perform that action at this time.
0 commit comments