Skip to content
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

Fix Main Service Lookup #221

Merged
merged 2 commits into from
Feb 13, 2018

Conversation

iezer
Copy link
Contributor

@iezer iezer commented Feb 5, 2018

@mixonic @dgeb This PR fixes the RequireJS Registry for main services/components.

Previously we were ignoring the name 'main'. This was to avoid lookups with something like /my-app/src/router/main/main. However really we should ignore main if it is the name AND collection, and allow the name when the collection is something else.

This allows me to name the service "main" in the mu-golden-spike app.

I also added the 'template-options' type to config since this seems to be a new thing in Ember.

Fixes glimmerjs/glimmer-resolver#25

Was ignoring main when it was in the specifier name,
However we should only ignore if it is in the name AND collection.
This is meant to avoid looking up main twice for example /my-app/src/router/main/main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not looking up main service for addon in the correct place
2 participants