New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dart2js lazy loading only checks for DeferredLibrary in the main script #10586
Comments
The current behavior is intentional, but we can discuss if it the right behavior. I think you have a strong case against the current behavior. The motivation for the current behavior is that the author of an application should be in control of what is loaded lazily. Only looking for annotations in the main script is one way to put the author in control. Perhaps a better way to put the author in control is to have an annotation you can use in the main script to override if other libraries are lazy. |
Added this to the Later milestone. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
cc @sigurdm. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
This limitation has been removed. Added AssumedStale label. |
If I have a library which in turn wants to load libraries lazily, it's ignored.
My specific use case is with code generated for message catalogs, where I'd like to be able to lazily load only the one(s) in use.
The text was updated successfully, but these errors were encountered: