Skip to content

Commit

Permalink
fix(ssr): reject ssrLoadModule promises if evaluation fails (#2079)
Browse files Browse the repository at this point in the history
close #2078
  • Loading branch information
Rich-Harris committed Feb 18, 2021
1 parent ea31690 commit e303c4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vite/src/node/ssr/ssrModuleLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,10 @@ export async function ssrLoadModule(
`Error when evaluating SSR module ${url}:\n${e.stack}`,
{
timestamp: true,
clear: true
clear: server.config.clearScreen
}
)
throw e
}

mod.ssrModule = ssrModule
Expand Down

0 comments on commit e303c4e

Please sign in to comment.