From c62fb85950642758b25195e9abbc6cc68c225d8c Mon Sep 17 00:00:00 2001 From: Bastien Date: Tue, 4 Feb 2025 16:05:17 +0100 Subject: [PATCH] Undefined source --- src/source-map-tree.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/source-map-tree.ts b/src/source-map-tree.ts index 705874d..ce3b243 100644 --- a/src/source-map-tree.ts +++ b/src/source-map-tree.ts @@ -151,6 +151,8 @@ export function originalPositionFor( column: number, name: string ): SourceMapSegmentObject | null { + if (!source) return null; + if (!source.map) { return SegmentObject(source.source, line, column, name, source.content, source.ignore); }