mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 12:05:24 -04:00
bugfix of compile error in esmodule mode
Signed-off-by: zhangbingce <zhangbingce@huawei.com> Change-Id: If03fae04a36eabdc8cefb341b051d598d3b4bdac
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user