Skip to content

Commit 9908c5f

Browse files
TedSandergoderbauer
authored andcommitted
fix(transformers): be more specific in the imports to rewrite
Instead of just matching on the filename match on the full uri. Closes angular#3473 Closes angular#3523
1 parent f1ac974 commit 9908c5f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/angular2/src/transform/reflection_remover/ast_tester.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ class AstTester {
1313
'${node.constructorName.type.name}' == REFLECTION_CAPABILITIES_NAME;
1414

1515
bool isReflectionCapabilitiesImport(ImportDirective node) {
16-
return node.uri.stringValue.endsWith("reflection_capabilities.dart");
16+
return node.uri.stringValue ==
17+
"package:angular2/src/reflection/reflection_capabilities.dart";
1718
}
1819

1920
bool isBootstrapImport(ImportDirective node) {
20-
return node.uri.stringValue.endsWith("/bootstrap.dart");
21+
return node.uri.stringValue == "package:angular2/bootstrap.dart";
2122
}
2223
}
2324

0 commit comments

Comments
 (0)