Skip to content

Commit d9ae1b2

Browse files
authored
fix: omit protocol does not require pre-transform (#15355)
1 parent 77d5165 commit d9ae1b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/vite/src/node/server/middlewares/indexHtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ const processNodeUrl = (
157157

158158
if (server && shouldPreTransform(url, config)) {
159159
let preTransformUrl: string | undefined
160-
if (url[0] === '/') {
160+
if (url[0] === '/' && url[1] !== '/') {
161161
preTransformUrl = url
162162
} else if (url[0] === '.' || isBareRelative(url)) {
163163
preTransformUrl = path.posix.join(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy