bugfix of compile error in esmodule mode

Signed-off-by: zhangbingce <zhangbingce@huawei.com>
Change-Id: If03fae04a36eabdc8cefb341b051d598d3b4bdac
This commit is contained in:
zhangbingce
2022-08-18 21:24:06 +08:00
parent 40f542af54
commit ac8dec3f14
+3
View File
@@ -1042,6 +1042,9 @@ export function processSystemApi(content: string, isProcessAllowList: boolean =
}
function collectSourcemapNames(sourcePath: string, changedName: string, originalName: string): void {
if (sourcePath == null) {
return;
}
const cleanSourcePath: string = sourcePath.replace('.ets', '.js').replace('.ts', '.js');
if (!sourcemapNamesCollection.has(cleanSourcePath)) {
return;