sdk icon indicating copy to clipboard operation
sdk copied to clipboard

Add a dart2js option to fail early for dart:io imports

Open natebosch opened this issue 3 years ago • 0 comments

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

natebosch avatar Aug 02 '22 00:08 natebosch