Skip to content

Commit 2086f1d

Browse files
committed
test(rsc): remove global unhandled error handlers
1 parent a6e1cca commit 2086f1d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import inspect from 'vite-plugin-inspect'
77
import path from 'node:path'
88

99
// 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-
}
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+
// }
1919

2020
export default defineConfig({
2121
base: process.env.TEST_BASE ? '/custom-base/' : undefined,

0 commit comments

Comments
 (0)