-
Notifications
You must be signed in to change notification settings - Fork 159
package:github is reported as Web-only #2926
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
Yes, the classification is not ideal, it contains two libraries from what I can see, one for server and one for browser. And it doesn't contain a I think our classification logic is scheduled for a bit of improvement. |
I've noticed this too and wanted to use conditional import/exports with one entry point to work around it. Looks like someone coincidentally just yesterday put up a PR to do just that SpinlockLabs/github.dart#183 In general, I don't love the split between io and html. Maybe this will make things easier to work everywhere dart-lang/sdk#35969 |
Support for conditional imports in package analysis is still missing #2763. But I'm sure we'll get that sorted out at some point. |
Note: for http, just use |
@jonasfj I've started refactoring to a single cross platform entry point. Will this layout work better with detection in pub? https://github.com/SpinlockLabs/github.dart/tree/dev |
@robrbecker, not yet, but I strongly suspect we'll eventually need to support conditional imports in the platform detection logic -- which is going to be refactored soon, anyways. |
Ah, it doesn't detect anything when you use an empty stub as the default case... Or so I think.. We still don't have proper support for conditional imports in pana. But we are look at this soon. |
https://pub.dev/packages/github has both web and io support. See: https://github.com/SpinlockLabs/github.dart/tree/master/lib.
cc @robrbecker, the author
The text was updated successfully, but these errors were encountered: