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 how vendored assets are imported to work when addon is a dependency of another addon #46

Merged
merged 1 commit into from Oct 10, 2023

Conversation

achambers
Copy link
Contributor

this.app is only available for addons who are a direct dependency of the consuming app. (docs)

In the case where the addon is a dependency of another addon, this.app is not defined.

However, the included function is passed a parent which is either the consuming app or the parent addon. (docs)

Seeing as we use ember-colpick as a dependency of an addon which is itself a dependency of the app, this.app fails and we need to use app instead. We made this patch to get around this.

Would you consider merging this in to the mainline branch so we can remove our fork?

this.app is only available for addons who are a direct dependency of the
consuming app.

In the case where the addon is a dependency of another addon, this.app
is not defined.

However, the included function is passed a "parent" which is either the
consuming app or the parent addon.

Seeing as we use ember-colpick as a dependency of an addon which is
itself a dependency of the app, we need this.app fails and we need to
use app instead.
@lukemelia lukemelia merged commit 3e00c68 into yapplabs:master Oct 10, 2023
7 checks passed
@lukemelia lukemelia added the bug label Oct 10, 2023
@lukemelia lukemelia changed the title Fix how vendored assets are imported Fix how vendored assets are imported to work when addon is a dependency of another addon Oct 10, 2023
@achambers achambers deleted the ac/chore/fix-vendored-imports branch October 10, 2023 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants