File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/vite/src/node/server/middlewares Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ const devHtmlHook: IndexHtmlTransformHook = async (
191191 const trailingSlash = htmlPath . endsWith ( '/' )
192192 if ( ! trailingSlash && getFsUtils ( config ) . existsSync ( filename ) ) {
193193 proxyModulePath = htmlPath
194- proxyModuleUrl = joinUrlSegments ( base , htmlPath )
194+ proxyModuleUrl = proxyModulePath
195195 } else {
196196 // There are users of vite.transformIndexHtml calling it with url '/'
197197 // for SSR integrations #7993, filename is root for this case
@@ -200,8 +200,9 @@ const devHtmlHook: IndexHtmlTransformHook = async (
200200 // and ids are properly handled
201201 const validPath = `${ htmlPath } ${ trailingSlash ? 'index.html' : '' } `
202202 proxyModulePath = `\0${ validPath } `
203- proxyModuleUrl = joinUrlSegments ( base , wrapId ( proxyModulePath ) )
203+ proxyModuleUrl = wrapId ( proxyModulePath )
204204 }
205+ proxyModuleUrl = joinUrlSegments ( base , proxyModuleUrl )
205206
206207 const s = new MagicString ( html )
207208 let inlineModuleIndex = - 1
You can’t perform that action at this time.
0 commit comments