-
Notifications
You must be signed in to change notification settings - Fork 23
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 circular depenacies across multiple component types #5454
base: main
Are you sure you want to change the base?
Conversation
🦋 Changeset detectedLatest commit: a55a1c7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
61e1dd8
to
205382f
Compare
type MeaningfulSVG = { 'role': 'img'; 'aria-label': string; 'alt'?: never } | ||
type DecorativeSVG = { 'role': 'presentation'; 'aria-label'?: never; 'alt'?: never } |
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.
You've defined this in types.ts
now, so better to export and import from there rather than have the duplication :)
Alt move all the types in there 😬
Why
This is part of an attempt to reduce or remove the hang time for our build in CI. After reading this post on the impact of circular dependencies with Vite, this could be the cause of our unknown hang time.
Finding the circular deps
To ID the problem files I ran
madge
against out components src folder which returned the following:If you want to run this you will need install or run madge via npx then run this from the root our repo:
npx madge --extensions ts,tsx --ts-config=tsconfig.json packages/components/src -c
I've left the scss function unchange as I wasn't sure how this was causing a circular dep. the -mui helper are part of legacy vendor support and ideally should be removed / shifted into kaizen legacy.
What