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

+1-1
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)