fix(transformers): be more specific in the imports to rewrite

Instead of just matching on the filename match on the full uri.

Closes #3473

Closes #3523
This commit is contained in:
Ted Sander 2015-08-06 19:58:44 -07:00
parent 6651aab11f
commit 86eb46af09
1 changed files with 3 additions and 2 deletions

View File

@ -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";
}
}