diff --git a/modules/angular2/src/transform/reflection_remover/ast_tester.dart b/modules/angular2/src/transform/reflection_remover/ast_tester.dart index f264316444..cf2a258342 100644 --- a/modules/angular2/src/transform/reflection_remover/ast_tester.dart +++ b/modules/angular2/src/transform/reflection_remover/ast_tester.dart @@ -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"; } }