-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dev-compiler
Description
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:
import "something.dart" deferred as something;
main() {
// No loadLibrary() call.
something.someFunction();
}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.
robbecker-wf, cedx, gerrkoff, mateusfccp, britannio and 2 more
Metadata
Metadata
Assignees
Labels
area-web-jsIssues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.web-dev-compiler