Skip to content

Commit

Permalink
Update packages/vite/src/node/plugins/asset.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
  • Loading branch information
brillout and benmccann committed Dec 2, 2022
1 parent 3b77863 commit db23d15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/asset.ts
Expand Up @@ -211,7 +211,7 @@ export function checkPublicFile(
}
const publicFile = path.join(publicDir, cleanUrl(url))
if (!publicFile.startsWith(publicDir)) {
// can happen if e.g. url starts with '/../node_modules/', see #11145
// can happen if URL starts with '../'
return
}
if (fs.existsSync(publicFile)) {
Expand Down

0 comments on commit db23d15

Please sign in to comment.