From 83b8f592976be05bedb984425746056384e9cc64 Mon Sep 17 00:00:00 2001 From: vsavkin Date: Mon, 11 Apr 2016 14:32:22 -0700 Subject: [PATCH] feat(transformers): special case Profiler --- .../src/transform/directive_metadata_linker/ng_meta_linker.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules_dart/transform/lib/src/transform/directive_metadata_linker/ng_meta_linker.dart b/modules_dart/transform/lib/src/transform/directive_metadata_linker/ng_meta_linker.dart index 664ec747d8..ebfd5cab0e 100644 --- a/modules_dart/transform/lib/src/transform/directive_metadata_linker/ng_meta_linker.dart +++ b/modules_dart/transform/lib/src/transform/directive_metadata_linker/ng_meta_linker.dart @@ -377,6 +377,8 @@ class _NgMetaIdentifierResolver { // these are so common that we special case them in the transformer } else if (id.name == "Window" || id.name == "Document") { return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'dart:html'); + } else if (id.name == "Profiler") { + return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'asset:perf_api/lib/perf_api.dart'); } else if (id.name == "Logger") { return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'asset:logging/lib/logging.dart'); } else if (id.name == "Clock") {