Skip to content

Commit

Permalink
fix: add base to virtual html
Browse files Browse the repository at this point in the history
  • Loading branch information
XiSenao committed Apr 17, 2024
1 parent 6cccef7 commit 98c89c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/server/middlewares/indexHtml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ const devHtmlHook: IndexHtmlTransformHook = async (
// and ids are properly handled
const validPath = `${htmlPath}${trailingSlash ? 'index.html' : ''}`
proxyModulePath = `\0${validPath}`
proxyModuleUrl = wrapId(proxyModulePath)
proxyModuleUrl = joinUrlSegments(base, wrapId(proxyModulePath))
}

const s = new MagicString(html)
Expand Down

0 comments on commit 98c89c6

Please sign in to comment.