dart-lang / sdk

The Dart SDK, including the VM, JS and Wasm compilers, analysis, core libraries, and more.
https://dart.dev
BSD 3-Clause "New" or "Revised" License
10.22k stars 1.57k forks source link

Actually defer loading deferred libraries in dev_compiler #27777

Open munificent opened 7 years ago

munificent commented 7 years ago

dev_compiler supports deferred imports, but the library itself is still eagerly loaded.

It would be groovy if it could hook into some of the module loading APIs and support actually deferring deferred libraries.

natebosch commented 5 years ago

This seems like a production use case focused request and we don't plan to address those use cases. We'll leave the issue for enforcing correct code to avoid surprises when using dart2js, but I'll close this one.