Skip to content

Commit

Permalink
fix: omit protocol does not require pre-transform (#15355)
Browse files Browse the repository at this point in the history
  • Loading branch information
XiSenao authored Dec 15, 2023
1 parent 77d5165 commit d9ae1b2
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 @@ -157,7 +157,7 @@ const processNodeUrl = (

if (server && shouldPreTransform(url, config)) {
let preTransformUrl: string | undefined
if (url[0] === '/') {
if (url[0] === '/' && url[1] !== '/') {
preTransformUrl = url
} else if (url[0] === '.' || isBareRelative(url)) {
preTransformUrl = path.posix.join(
Expand Down

0 comments on commit d9ae1b2

Please sign in to comment.