-
-
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
Cleanup entries API #82
Comments
The resolver itself uses an interface (see here) for this. FWIW, that interface combined with an override in the resolver makes testing various module registry combinations a breeze... |
API's needed:
|
We can deprecate |
I was thinking of implementing this similarly to how you implemented import has from 'loader/has';
import require from 'loader/require';
import getModuleIds from 'loader/get-module-ids';
import eachModuleId from 'loader/each-module-id';
import {
has,
require,
getModuleIds,
eachModuleId
} from 'loader'; Then we can deprecate |
Can those just be loader? And we need to keep require for commonjs wrapping |
? |
@krisselden - I do not understand what you mean. Can you jot down your proposal in terms of |
I see, we need |
we already have this one, but |
👍 |
OK, discussed in person with @krisselden, and I think we are settling on the following API: import {
has,
getIds,
define,
require,
resolve
} from 'loader'; If there are no objections to the above, I'll try to get this going soon... |
How about |
The current alias API is odd, I was thinking we could land the API above (which does expose some version of alias via define.alias) and then submit a separate PR for making alias accept a second arg (for target). |
Sounds perfect to me! |
Use a interface instead of exposing the
entries
pojo and migrate the ember-cli resolver to them to allow for alternate implementations of testing a module's presence or scanning modules.The text was updated successfully, but these errors were encountered: