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:
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user