fix(browser): identify NodeNext TypeScript original source artifacts (#811)

Signed-off-by: Rudy Celekli <47457359+rudycelekli@users.noreply.github.com>
This commit is contained in:
Rudy Mizrahi Celekli
2026-10-07 10:20:51 +08:00
committed by GitHub
parent b3b44d8a2d
commit e84ad86a75
3 changed files with 72 additions and 2 deletions
+4 -1
View File
@@ -373,7 +373,10 @@ const resolveOriginalSource = (
};
const sourceMediaType = (source: string | null): string =>
source?.endsWith(".ts") || source?.endsWith(".tsx")
source?.endsWith(".ts") ||
source?.endsWith(".tsx") ||
source?.endsWith(".mts") ||
source?.endsWith(".cts")
? "text/typescript"
: "text/javascript";