Skip to content

Commit

Permalink
fix(transformers): be more specific in the imports to rewrite
Browse files Browse the repository at this point in the history
Instead of just matching on the filename match on the full uri.

Closes angular#3473

Closes angular#3523
  • Loading branch information
TedSander authored and goderbauer committed Aug 15, 2015
1 parent f1ac974 commit 9908c5f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ class AstTester {
'${node.constructorName.type.name}' == REFLECTION_CAPABILITIES_NAME;

bool isReflectionCapabilitiesImport(ImportDirective node) {
return node.uri.stringValue.endsWith("reflection_capabilities.dart");
return node.uri.stringValue ==
"package:angular2/src/reflection/reflection_capabilities.dart";
}

bool isBootstrapImport(ImportDirective node) {
return node.uri.stringValue.endsWith("/bootstrap.dart");
return node.uri.stringValue == "package:angular2/bootstrap.dart";
}
}

Expand Down

0 comments on commit 9908c5f

Please sign in to comment.