feat(transformers): special case Profiler

This commit is contained in:
vsavkin 2016-04-11 14:32:22 -07:00
parent c6f454f51d
commit 83b8f59297
1 changed files with 2 additions and 0 deletions

View File

@ -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") {