-
Notifications
You must be signed in to change notification settings - Fork 159
Understand conditional imports #2763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Correct, there is a bug here. We are looking into refactoring the platform detection in pana soon, but I'm not sure this will get fixed. For now there is few packages that uses conditional imports, and they have special handling in |
Should I open an issue for pana too? |
@leisim: in which of your libraries are you using the conditional import? Could you please link to it? Is it reachable from |
As the |
See also: flutter/flutter#35588 |
I think this is fixed now, please reopen if not. |
My package has a conditional import which either imports a file which uses
dart:io
(for vm) or another file which usesdart:indexed_db
(for web).The analysis tab on pub.dev says:
It should also detect "web". I think there is a problem with detecting the supported platform when conditional imports are used.
The text was updated successfully, but these errors were encountered: