Skip to content

Commit c5f0bab

Browse files
authored
test(rsc): remove global unhandled error handlers (#597)
1 parent a6e1cca commit c5f0bab

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/plugin-rsc/examples/basic/vite.config.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,6 @@ import { type Plugin, defineConfig, normalizePath, parseAstAsync } from 'vite'
66
import inspect from 'vite-plugin-inspect'
77
import path from 'node:path'
88

9-
// log unhandled rejection to debug e2e failures
10-
if (!(globalThis as any).__debugHandlerRegisterd) {
11-
process.on('uncaughtException', (err) => {
12-
console.error('⚠️⚠️⚠️ uncaughtException ⚠️⚠️⚠️', err)
13-
})
14-
process.on('unhandledRejection', (err) => {
15-
console.error('⚠️⚠️⚠️ unhandledRejection ⚠️⚠️⚠️', err)
16-
})
17-
;(globalThis as any).__debugHandlerRegisterd = true
18-
}
19-
209
export default defineConfig({
2110
base: process.env.TEST_BASE ? '/custom-base/' : undefined,
2211
clearScreen: false,

0 commit comments

Comments
 (0)