Index: pkg/compiler/lib/src/compiler.dart |
diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
index 5707bdc2cd28e89534f9b61aaaff498a9cbccaaa..7c1d58e9bf1576bc7b20d64185d89e4765119d79 100644 |
--- a/pkg/compiler/lib/src/compiler.dart |
+++ b/pkg/compiler/lib/src/compiler.dart |
@@ -920,6 +920,11 @@ abstract class Compiler implements LibraryLoaderListener { |
fullyEnqueueTopLevelElement(element, world); |
} |
library.implementation.forEachLocalMember(enqueueAll); |
+ library.imports.forEach((ImportElement import) { |
+ if (import.isDeferred) { |
+ world.addToWorkList(import.prefix.loadLibrary); |
+ } |
+ }); |
} |
void fullyEnqueueTopLevelElement(Element element, Enqueuer world) { |