File tree 1 file changed +2
-1
lines changed
packages/vite/src/node/server/middlewares
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ const devHtmlHook: IndexHtmlTransformHook = async (
191
191
const trailingSlash = htmlPath . endsWith ( '/' )
192
192
if ( ! trailingSlash && getFsUtils ( config ) . existsSync ( filename ) ) {
193
193
proxyModulePath = htmlPath
194
- proxyModuleUrl = joinUrlSegments ( base , htmlPath )
194
+ proxyModuleUrl = proxyModulePath
195
195
} else {
196
196
// There are users of vite.transformIndexHtml calling it with url '/'
197
197
// for SSR integrations #7993, filename is root for this case
@@ -202,6 +202,7 @@ const devHtmlHook: IndexHtmlTransformHook = async (
202
202
proxyModulePath = `\0${ validPath } `
203
203
proxyModuleUrl = wrapId ( proxyModulePath )
204
204
}
205
+ proxyModuleUrl = joinUrlSegments ( base , proxyModuleUrl )
205
206
206
207
const s = new MagicString ( html )
207
208
let inlineModuleIndex = - 1
You can’t perform that action at this time.
0 commit comments