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 {