From 2eb192b439f1055d085690e896c586e24de7b857 Mon Sep 17 00:00:00 2001 From: "Elias W. BA" Date: Sun, 15 Feb 2026 16:36:15 +0000 Subject: [PATCH 1/2] Handle missing source in sourcemap gracefully Use the returnNullOnMissing parameter of sourceContentFor to avoid throwing when the source file isn't in the sourcemap (e.g. when no adaptor is provided). See #1249 --- packages/runtime/src/util/sourcemap-errors.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/runtime/src/util/sourcemap-errors.ts b/packages/runtime/src/util/sourcemap-errors.ts index 511dc1c8f..f50b2d75f 100644 --- a/packages/runtime/src/util/sourcemap-errors.ts +++ b/packages/runtime/src/util/sourcemap-errors.ts @@ -28,9 +28,12 @@ export default async (job: Job, error: RTError) => { if (error.pos && !isNaN(error.pos.line!)) { const fileName = `${job.name || job.id || 'src'}.js`; - const src = smc.sourceContentFor(fileName)!.split('\n'); - const line = src[error.pos.line! - 1]; - error.pos.src = line; + const content = smc.sourceContentFor(fileName, true); + if (content) { + const src = content.split('\n'); + const line = src[error.pos.line! - 1]; + error.pos.src = line; + } } } catch (e) { // error while trying to map From d0fc5e4b48662d15df41252e9c5d2c0e2af65b04 Mon Sep 17 00:00:00 2001 From: "Elias W. BA" Date: Sun, 15 Feb 2026 17:46:47 +0000 Subject: [PATCH 2/2] Trigger CI re-run