Dart2js may want to implement warnings for bad configuration specific imports. See issue #24581 for details.