-
Notifications
You must be signed in to change notification settings - Fork 178
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(labware-library): fix labware-library css issue #16502
Conversation
fix labware-library css issue close
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.
wow wow wow. tree shaking and bundle optimizations are sooooooooo cool until they aren't. @sfoster1 you'll probably get a kick out of this
thank you koji! lets just add some comments and add TS annotations.
@@ -0,0 +1,13 @@ | |||
export const cssModuleSideEffect = (): 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.
can we add some comments explaining what we're doing and why, and also maybe links to the github issue for vite? coming back later and understanding why we're doing this will be important. im sure this wont be the last time we have to deal with 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.
can we also add the appropriate TS types to this plugin?
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.
+1 to wanting comments with a link to the vite pr
* fix(labware-library): fix labware-library css issue
Overview
fix labware-library css issue
the issue we are facing came from the following PR.
vitejs/vite#16051
I think ideal fix is to align our css with the PR or convert all css into
styled-components
, but the thing is that at this moment we don't have time to do that.other solution would be use vite v5.1.6 since the change is in v5.2.0.
before
after
Test Plan and Hands on Testing
go to and check that the layout is not broken.
http://sandbox.labware.opentrons.com/fix_labware-library-css-bundle-issue/
Changelog
Review requests
Risk assessment
low