- Notifications
You must be signed in to change notification settings - Fork 51
feat(components): remove ember-get-config #3277
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 GitHub.
|
686303f to 4b846d1 Compare bddfb59 to 4ba8a23 Compare 📦 RC Packages PublishedLatest commit: 15a171f Published 3 packages@hashicorp/design-system-codemods@0.5.2-rc-20251104031921@hashicorp/design-system-components@5.0.0-rc-20251104031921@hashicorp/flight-icons@4.0.0-rc-20251104031921 |
4ba8a23 to a5aa2b7 Compare a5aa2b7 to bc6406f Compare | // the intersection observer makes loading unreliable in tests | ||
| // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
| if (config.environment === 'test') { | ||
| if (macroCondition(isTesting())) { |
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.
Could you explain a bit how this works?
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.
that part essentially would remove this code at build time if environment is anything but test this pattern should be used when there is no way to get config from the host app or you want to be removing part of code at the build time
c1fc806 to a613281 Compare a613281 to 5e70b59 Compare c3e1df1 to 06d5696 Compare 5e70b59 to f42e5cd Compare Co-authored-by: jorytindall <2200899+jorytindall@users.noreply.github.com> Co-authored-by: Jory Tindall <jory.tindall@hashicorp.com>
b290d09 to 15a171f Compare
📌 Summary
ember-get-configis problematic in vite world and doesn't work without a hack this hack will not be release and it is advised to move toappInstancelookupThis just does that for components and website (which was pretty strange usecase)
ember-unique-id-helper-polyfillsupport for this feature in includedember-source>v4.4- let me know if you want me to split it out🛠️ 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.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.