Allow Pubspec.yaml to supply missing SDK libraries (dart:io, dart:html, etc.) #37232
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
type-enhancement
A request for a change that isn't a bug
It would be helpful if something like this was possible:
This would enable use packages like universal_io and universal_html without forking dependencies just to replace imports.
Proposed details:
if (dart.library.io) 'library.dart'
would false in Dart2js even if dart:io was supplied with a dependency override.The text was updated successfully, but these errors were encountered: