-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
TASK: cleanup imports of components #3465
TASK: cleanup imports of components #3465
Conversation
Will take a look threw the UI code again. To make sure i didnt forget something :) |
Checked everything again. Looks like I didn't miss anything 🙂 |
Does the current build system support tree-shaking? If not, this change might have an impact on bundle sizes. |
Tried to find out, but I think we are not using tree shaking at the moment. |
Ok I guess I was wrong.
The |
Yes three shaking is active. The bundle would be much bigger without. |
Out of interest: How exactly does this affect the way we import the components. How is the difference now compared to before? 🤔 |
take these two lines of code:
The first line imports all the code exposed by If tree shaking is not enabled, the hole Does this help? 🙂 |
ping |
Hi hello, yes we have treeshaking turned on and it saves us roughly 0.3mb but in this case tree-shaking should not make any difference, because we import all the react ui components either way to expose them in our api:
but we should wait for #3492 as a merge conflict might turn up ^^ |
Since #3492 is merged and no merge conflict came up, how do we continue here? |
Please go ahead :) #3306 will take some extra work anyway. |
I would say we can merge this? @mhsdesign |
good call :D Yeah but im still unsure if we should target 8.3 or 9.0? Pro 8.3: Upmerges would be easier, if we add dependencies here Pro 9.0: If there is a bug (which is unlikely) we are more likely to find it out fast and without any trouble as 9.0 is not released. Maybe @markusguenther has an opinion. But after writing this down i think we are safe to target 8.3 ;) |
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.
Fine by reading.
Resolves: #3453
What I did
I tidied the
imports
of our components. So If we have more then one component, they will be imported in only one line.How I did it
Tidied the
imports
of the specific components.How to verify it
None