-
Notifications
You must be signed in to change notification settings - Fork 211
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
Can not skip dart:mirrors #1790
Comments
I don't believe that conditional variable is actually supported. |
Supported by dart or by |
I do not believe you can |
We should probably fail early on unsupported conditional literals? |
We're moving forward with conditional import support. Not sure of a timing yet |
Is there any workaround for the moment? The only thing that I can think of
is completely different entry point for the browser.
…On Sat, Aug 25, 2018, 23:13 Nate Bosch ***@***.***> wrote:
We're moving forward with conditional import support. Not sure of a timing
yet
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1790 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABn8xYNU8ArOD-HWoq1sNRiQUT1Q2ESks5uUb3hgaJpZM4WMfmW>
.
|
Yes the only thing that works today is a totally different entrypoint, using dependency injection or something to provide the correct implementation for the platform. I am working on support for this feature currently but its a little ways out still from landing. |
Ok, @valotas if you update to the latest build_modules/build_web_compilers/build_vm_compilers (likely just requires a pub upgrade), then this should now be supported. Please file any issues if you have trouble! |
Do note though that at least for now you will have to add |
Actually @natebosch made a good point that you are also using config specific exports, there is also an SDK issue for those (they don't work at all unfortunately, due to an analyzer issue). You can follow along at dart-lang/sdk#34179, as soon as it is fixed in the sdk there shouldn't be anything required on the build package side of things. |
It looks like it works! Thanks for the quick response! |
Environment:
I get the following:
which is true but
reflect_with_mirrors.dart
is conditionally imported only whendart.library.mirrors
is available.Is this behavior intended?
The text was updated successfully, but these errors were encountered: