X Tutup
Skip to content

Commit 83b8f59

Browse files
committed
feat(transformers): special case Profiler
1 parent c6f454f commit 83b8f59

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules_dart/transform/lib/src/transform/directive_metadata_linker/ng_meta_linker.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,8 @@ class _NgMetaIdentifierResolver {
377377
// these are so common that we special case them in the transformer
378378
} else if (id.name == "Window" || id.name == "Document") {
379379
return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'dart:html');
380+
} else if (id.name == "Profiler") {
381+
return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'asset:perf_api/lib/perf_api.dart');
380382
} else if (id.name == "Logger") {
381383
return new CompileIdentifierMetadata(name: id.name, moduleUrl: 'asset:logging/lib/logging.dart');
382384
} else if (id.name == "Clock") {

0 commit comments

Comments
 (0)
X Tutup