(importPath: string, projectRoot?: string)
| 1096 | } |
| 1097 | |
| 1098 | function toAppModuleBaseId(importPath: string, projectRoot?: string): string | null { |
| 1099 | const projectRelative = getProjectRelativeImportPath(importPath, projectRoot); |
| 1100 | if (!projectRelative) { |
| 1101 | return null; |
| 1102 | } |
| 1103 | const base = projectRelative.replace(/\.mjs$/i, ''); |
| 1104 | return `/${base}`; |
| 1105 | } |
| 1106 | |
| 1107 | function normalizeAbsoluteFilesystemImport(spec: string, importerPath: string, projectRoot?: string): string | null { |
| 1108 | if (!spec || typeof spec !== 'string') { |
no test coverage detected