-
Notifications
You must be signed in to change notification settings - Fork 109
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
Feature: allowAppImports #587
Conversation
TODO list items:
|
@@ -481,6 +482,15 @@ export default class Package { | |||
} | |||
} | |||
|
|||
get allowAppImports(): string[] { | |||
// only apps (not addons) are allowed to set this |
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.
I discussed this feature a while ago with @ef4 within CrowdStrike, and IIRC we came to the conclusion that also addons should be able to do this. Example use case would be to have a v1 addon import its own css-modules based CSS (to get rid of ember-css-modules), so the consuming app could already switch to optimized Embroider (which ember-css-modules does not support) without requiring all addons to migrate to v2.
FWIW, this (v1 addon support of this feature) is not anymore a priority for us, but maybe it's still good to allow this!?
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.
This is a good point.
I want to use this feature to make a package like https://github.com/cardstack/glimmer-scoped-css work in classic builds, and for that story to be complete you'd want a v1 addon to be able to use it too.
34653b9
to
9c6306b
Compare
f521109
to
bfe310a
Compare
let host: AppInstance & { | ||
trees: { | ||
app: Node; | ||
}; | ||
} = _host as any; |
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.
Since you force the type, could this work/be considered:
let host: AppInstance & { | |
trees: { | |
app: Node; | |
}; | |
} = _host as any; | |
let host = _host as AppInstance & { | |
trees: { | |
app: Node; | |
}; | |
}; |
This is taking over from #586 👍
Fixes #565
Fixes #158