Skip to content

Conversation

@shleewhite
Copy link
Contributor

📌 Summary

This is another fix from the flaky test investigation.

It changes the way the util checks that ember-engines is a dependency.


💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

@shleewhite shleewhite requested a review from a team as a code owner December 5, 2025 21:22
@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
hds-showcase Ready Ready Preview Dec 5, 2025 9:22pm
hds-website Ready Ready Preview Dec 5, 2025 9:22pm

@aklkv
Copy link
Collaborator

aklkv commented Dec 5, 2025

we need to test this in cloud-ui, the last time I tried this approach it failed but since that time there were some upgrades upstream on embroider side so this might have been fixed, so it would make sense to bump embroider/macros

// @ts-expect-error: we list this as optional peer dependency
if (macroCondition(dependencySatisfies('ember-engines', '*'))) {
// Use importSync for compile-time conditional import
const module = importSync(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const module = importSync(
const { default: module } = importSync(

return mod.default as typeof LinkTo;
} catch {
) as { default: typeof LinkTo };
return module.default;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return module.default;
return module;

@shleewhite shleewhite changed the title fix: improve resolve to link external util ResolveLinkToExternal: fix how the dependency is checked Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants