Enforce laziness of deferred libraries in dev_compiler #27776
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
web-dev-compiler
As of 8daf4cf, dev_compiler now supports the
loadLibrary()
function on deferred libraries. However, it does not validate that you call that before the library is used. This currently runs:It would be great if dev_compiler threw an error here. Otherwise, users can iterate on programs that work fine in dev_compiler but fail when a production build is run.
The text was updated successfully, but these errors were encountered: