-
Notifications
You must be signed in to change notification settings - Fork 49
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
Resolving classes from an addon, within an engine, does not work #125
Comments
Funnily enough, that bug has been in ember-css-modules forever, and we've been using addon resolutions that entire time and literally ran into this bug for the first time today. You're exactly right: passing |
Yep. You may already know this, but "owner" in this code (which predates Ember's use of the word, but now it's kind of confusing) roughly means "the app or addon that ember-css-modules is acting on behalf of", while in Ember CLI I have some time blocked off tomorrow to do some cleanup here and try and make sure our Broccoli output is stable; I'll aim to get a fix for this in as well. |
Sweet! I'm happy to work on the issue too (or with you) since we'd love to start composing classes from an addon this way in our engines. |
Awesome! |
I came across the need to resolve a class name from an addon today, and was delighted to see that, generally, this is supported!
ember-css-modules/lib/resolve-path.js
Line 40 in 2e30029
However, I ran into an issue with Ember Engines that's blocking me from using this:
Within that
resolveExternal
function linked to above,options.project
is pointing to the application not the engine, so theaddon
can't be resolved.The application does not have a direct dependency on that addon, and I don't want to introduce one, or we'll loose out on the benefits of lazy-loading that whole addon.
The text was updated successfully, but these errors were encountered: