Skip to content

Commit

Permalink
fix(ssr): handle ssrLoadModule failures in post pending (#2253)
Browse files Browse the repository at this point in the history
fix #2252
  • Loading branch information
Rich-Harris authored Feb 26, 2021
1 parent a2ee885 commit ea323cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrModuleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export async function ssrLoadModule(

const modulePromise = instantiateModule(url, server, context, urlStack)
pendingModules.set(url, modulePromise)
modulePromise.then(() => pendingModules.delete(url))
modulePromise.catch(() => {}).then(() => pendingModules.delete(url))
return modulePromise
}

Expand Down

0 comments on commit ea323cc

Please sign in to comment.