-
Notifications
You must be signed in to change notification settings - Fork 51
fix(components): LinkToExternal & make ember-engines optional
#2838
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📦 RC Packages PublishedLatest commit: 368e18a |
|
tested on:
|
ce4d62b to
fcce025
Compare
LinkToExtrnal & make ember-engines optionalLinkToExternal & make ember-engines optional
fcce025 to
a793c95
Compare
| "ember-source": "^3.28.0 || ^4.0.0 || ^5.3.0", | ||
| "ember-engines": ">= 0.11.0" | ||
| }, | ||
| "peerDependenciesMeta": { |
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.
Just to be safe, did you try to install on a codebase without ember-engines?
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.
a05ea54 to
aea7856
Compare
📌 Summary
Today we are referencing
<LinkToExternal/>component and in the many cases it doesn't exists unless consumer hasember-enginesas dependancy. In theembroider/viteworld all components are evaluated at the build time and needs to resolve correct dependancy. If we were to runhdsembroider/vite today it would result in an error about unresolvedLinkToExternalcomponent. In order to make this behaviour more controlled we are encapsulating requirements forember-enginesto be explicitly required only in situation when we pass@isRouteExternalastruein which case we do our check for required dependancy resigne component instance or through an error.Shipping
ember-enginesis not an option for a couple of reasons:🛠️ Detailed description
📸 Screenshots
🔗 External links
Jira ticket: HDS-XXX
Figma file: [if it applies]
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.