-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Expand API to get access to dependencies or module #132
Comments
@stefanpenner thoughts? |
Based on a conversation with @krisselden, I believe that we should refactor things to essentially ref-count, so we can also |
I think this would work for most cases. Not sure if it still holds up when inheritance is in the picture:
If we didn't have the other classes extending from base, and we However with other classes importing |
IMHO this to too much complexity to add. If this is really needed, then in complex cases, why not just purge all modules that match some known prefix like |
Currently we can only get to the exports of the module resolved, not the actual module itself.
My use case is this:
I have a series of tests cases that test default export of a module, who's classes changes depending on environment variable -- the "classes changing depending on environment variable" was the easiest way I could integrate these two different solutions (temporarily)
In order to do this, I have to
unsee
the imported modules, so that the next time ember tries to resolve them, they will be reevaluated. One of my problems is that since (to my knowledge) I can't access the dependencies of the file, and addon files are reexportedapp -> addon
, I can't programatically get to the underlying addon file to have it reexported.Thoughts or ideas?
The text was updated successfully, but these errors were encountered: