From da04e9fcbed1648f033a063321a85d1d76011f6b Mon Sep 17 00:00:00 2001 From: yfwang6 Date: Fri, 15 Jul 2022 15:03:38 +0800 Subject: [PATCH] fixed f606914 from https://gitee.com/yfwang6/developtools_ace-ets2bundle/pulls/827 wangyongfei6@huawei.com modify errorfile path tip Signed-off-by: yfwang6 Change-Id: Id443196028c8f32bcd6819296ad7b125b7e4b285 --- compiler/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/main.js b/compiler/main.js index aa58d3b..443d2b7 100644 --- a/compiler/main.js +++ b/compiler/main.js @@ -98,7 +98,7 @@ function loadEntryObj(projectConfig) { const pages = manifest.pages; pages.forEach((element) => { const sourcePath = element.replace(/^\.\/ets\//, ''); - const fileName = projectConfig.projectPath + path.sep + sourcePath + '.ets'; + const fileName = path.resolve(projectConfig.projectPath, sourcePath + '.ets'); if (fs.existsSync(fileName)) { projectConfig.entryObj['./' + sourcePath] = fileName + '?entry'; } else {