Skip to content

Commit

Permalink
fix: load-fallback catch (#5412)
Browse files Browse the repository at this point in the history
  • Loading branch information
pd4d10 committed Oct 25, 2021
1 parent 1f4723b commit e73281c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/plugins/loadFallback.ts
Expand Up @@ -10,7 +10,7 @@ export function loadFallbackPlugin(): Plugin {
name: 'vite:load-fallback',
async load(id) {
try {
return fs.readFile(cleanUrl(id), 'utf-8')
return await fs.readFile(cleanUrl(id), 'utf-8')
} catch (e) {
return fs.readFile(id, 'utf-8')
}
Expand Down

0 comments on commit e73281c

Please sign in to comment.