Skip to content

Commit

Permalink
chore: move comment
Browse files Browse the repository at this point in the history
  • Loading branch information
patak-dev committed Jun 8, 2023
1 parent 0b90e4f commit e4fd7da
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 @@ -351,14 +351,14 @@ function preTransformRequest(server: ViteDevServer, url: string, base: string) {

// transform all url as non-ssr as html includes client-side assets only
server.transformRequest(url).catch((e) => {
// Unexpected error, log the issue but avoid an unhandled exception
if (
e?.code === ERR_OUTDATED_OPTIMIZED_DEP ||
e?.code === ERR_CLOSED_SERVER
) {
// these are expected errors
return
}
// Unexpected error, log the issue but avoid an unhandled exception
server.config.logger.error(e.message)
})
}

0 comments on commit e4fd7da

Please sign in to comment.