We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent d443428 commit d7c5256Copy full SHA for d7c5256
packages/vite/src/node/server/index.ts
@@ -512,7 +512,9 @@ export async function _createServer(
512
return transformRequest(url, server, options)
513
},
514
async warmupRequest(url, options) {
515
- await transformRequest(url, server, options).catch((e) => {
+ try {
516
+ await transformRequest(url, server, options)
517
+ } catch (e) {
518
if (
519
e?.code === ERR_OUTDATED_OPTIMIZED_DEP ||
520
e?.code === ERR_CLOSED_SERVER
@@ -525,7 +527,7 @@ export async function _createServer(
525
527
error: e,
526
528
timestamp: true,
529
})
- })
530
+ }
531
532
transformIndexHtml(url, html, originalUrl) {
533
return devHtmlTransformFn(server, url, html, originalUrl)
0 commit comments