-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move packages/**/lib/main.js
to packages/**/lib/index.js
.
#12648
Conversation
@stefanpenner - Can you double check the loader.js changes here? One of the next tasks is to unify and just use the version in ember-cli/loader.js, but this change lets us move on for now... |
var mod = registry[name]; | ||
|
||
if (!mod) { | ||
mod = registry[name + '/index']; |
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.
small nit-pick
name = name + '/index';
mode = registry[name];
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.
Good catch, updated.
6a53fd3
to
86636f3
Compare
☔ The latest upstream changes (presumably #12647) made this pull request unmergeable. Please resolve the merge conflicts. |
@@ -13,13 +13,13 @@ import 'ember-routing-views'; | |||
import Ember from 'ember-metal/core'; | |||
import { runLoadHooks } from 'ember-runtime/system/lazy_load'; | |||
|
|||
if (Ember.__loader.registry['ember-template-compiler']) { | |||
if (Ember.__loader.registry['ember-template-compiler/index']) { |
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.
import require from 'require'
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.
Ya, I'll update the requireModule part but I don't think require exposed the registry itself (though we could do that).
8bbb192
to
f2474b9
Compare
f2474b9
to
89f0516
Compare
@stefanpenner - Updated for latest round of feedback (which has removed all usage of |
Move `packages/**/lib/main.js` to `packages/**/lib/index.js`.
This follows suit with changes required by Glimmer, and changes upstream in ember-cli/[email protected].
packages/loader/lib/main.js
was not moved because it is not an ES6 module (it is manually concatenated to the output). We can tweak this after the next round of updates to emberjs-build.