mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
!1067 Remove bundleName & moduleName for ark's record
Merge pull request !1067 from hufeng/remove_unused_name
This commit is contained in:
@@ -95,7 +95,6 @@ export function getOhmUrlByFilepath(filePath: string): string {
|
||||
const REG_PROJECT_SRC: RegExp = /(\S+)\/src\/(?:main|ohosTest)\/(ets|js)\/(\S+)/;
|
||||
|
||||
const packageInfo: string[] = getPackageInfo(projectConfig.aceModuleJsonPath);
|
||||
const bundleName: string = packageInfo[0];
|
||||
const moduleName: string = packageInfo[1];
|
||||
const moduleRootPath: string = toUnixPath(projectConfig.modulePathMap[moduleName]);
|
||||
const projectRootPath: string = toUnixPath(projectConfig.projectRootPath);
|
||||
@@ -106,7 +105,7 @@ export function getOhmUrlByFilepath(filePath: string): string {
|
||||
|
||||
const result: RegExpMatchArray | null = projectFilePath.match(REG_PROJECT_SRC);
|
||||
if (result && result[1].indexOf(NODE_MODULES) === -1) {
|
||||
return `${bundleName}/${moduleName}/${result[2]}/${result[3]}`;
|
||||
return `${result[2]}/${result[3]}`;
|
||||
}
|
||||
|
||||
if (projectFilePath.indexOf(NODE_MODULES) !== -1) {
|
||||
|
||||
Reference in New Issue
Block a user