Skip to content

Commit 8a417e3

Browse files
Wulawawillcompany
andauthored
fix: Browser address bar request proxy url; the query does not take effect (#129)
Co-authored-by: lufeng <[email protected]>
1 parent b0282ed commit 8a417e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/htmlPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ function createRewire(
341341
return {
342342
from: new RegExp(`^/${reg}*`),
343343
to({ parsedUrl }: any) {
344-
const pathname: string = parsedUrl.pathname
344+
const pathname: string = parsedUrl.path
345345

346346
const excludeBaseUrl = pathname.replace(baseUrl, '/')
347347

0 commit comments

Comments
 (0)