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:
parent
6651aab11f
commit
86eb46af09
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue