Skip to content

Commit c246276

Browse files
136503: Fixed ThemeableComponentRegistry not correctly registering Windows paths in the byBasePath Map
(cherry picked from commit 96f6908)
1 parent f6fd66c commit c246276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lint/src/util/theme-support.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
getComponentClassName,
1818
isPartOfViewChild,
1919
} from './angular';
20+
import { toUnixStylePath } from './misc';
2021
import {
2122
isPartOfClassDeclaration,
2223
isPartOfTypeExpression,
@@ -127,7 +128,7 @@ class ThemeableComponentRegistry {
127128
continue;
128129
}
129130

130-
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, path);
131+
const basePath = resolveLocalPath((importDeclaration.moduleSpecifier as ts.StringLiteral).text, toUnixStylePath(path));
131132

132133
themeableComponents.add({
133134
baseClass,

0 commit comments

Comments
 (0)