sdk
sdk copied to clipboard
Add a dart2js option to fail early for dart:io imports
Currently our production tool stacks, webdev and bazel, implement their own platform restrictions for core library imports. The check is done for individual modules.
When compiling with dart2js for running web tests, the test runner does monolithic compiles and has no understanding of imports.
Can we have a flag to ask dart2js to eagerly fail for imports that are unsupported?
See https://github.com/dart-lang/test/issues/1748