lopata 0.14.1 → 0.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/cli/dev.ts
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Capture deeper stacks in dev mode (default is 10, async boundaries still truncate)
|
|
2
2
|
Error.stackTraceLimit = 50
|
|
3
3
|
|
|
4
|
+
// Prevent unhandled rejections from worker code from crashing the dev server
|
|
5
|
+
process.on('unhandledRejection', (reason) => {
|
|
6
|
+
console.error('[lopata] Unhandled promise rejection:', reason)
|
|
7
|
+
})
|
|
8
|
+
|
|
4
9
|
import '../plugin'
|
|
5
10
|
import path from 'node:path'
|
|
6
11
|
import {
|
|
@@ -238,6 +238,11 @@ export function devServerPlugin(options: DevServerPluginOptions): Plugin {
|
|
|
238
238
|
// Deeper stacks in dev mode
|
|
239
239
|
Error.stackTraceLimit = 50
|
|
240
240
|
|
|
241
|
+
// Prevent unhandled rejections from worker code from crashing the dev server
|
|
242
|
+
process.on('unhandledRejection', (reason) => {
|
|
243
|
+
console.error('[lopata] Unhandled promise rejection:', reason)
|
|
244
|
+
})
|
|
245
|
+
|
|
241
246
|
// Lazy import runtime modules — runs through Bun's native loader
|
|
242
247
|
const configMod = await import('../config.ts')
|
|
243
248
|
const envMod = await import('../env.ts')
|