-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Support "import { Promise } from 'rsvp';" #18
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice.
FWIW, we discussed this at the ember core team meeting yesterday and @tomdale clarified that in his original RFC what he intended by According to the source this would essentially allow: import {
asap,
cast,
Promise,
EventTarget,
all,
allSettled,
race,
hash,
hashSettled,
rethrow,
defer,
denodeify,
configure,
on,
off,
resolve,
reject,
map,
async,
filter
} from 'rsvp'; Though we may want to exclude some of those though... |
@rwjblue I'm now wondering if this import path was correct... according to the conventions it probably should have been |
Hmm. Good point. I think the general idea is to support whatever RSVP's API is from our rsvp module. Can you do |
I don't think so. AFAIK the public API is using everything from |
I agree with @rwjblue here: we should try to reduce the API surface area of Ember by exposing dependencies as-is, rather than providing our own module API on top. A good litmus test for this is: can I take |
Resolves part of #13
instead of
/cc @cibernox @stefanpenner