You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there. This isn't a feature request or a bug. Just a general question.
So, we have been doing import { Button, Form, Dropdown } from 'stardust'; but that pulls in the entire stardust lib. The reality is, we're only using 10% of the stardust components so I started thinking about direct re-exporting in a lib file like so
Then when required, we can simply import { Button, SomeOtherComponent } from 'lib/stardust' and know that we're only bundling code that we're actually using.
So now I'm wondering, outside of the obvious breaking changes that may occur as stardust has updates, do you see any potential downsides to this approach?
The text was updated successfully, but these errors were encountered:
Hey there. This isn't a feature request or a bug. Just a general question.
So, we have been doing
import { Button, Form, Dropdown } from 'stardust';
but that pulls in the entire stardust lib. The reality is, we're only using 10% of the stardust components so I started thinking about direct re-exporting in a lib file like soThen when required, we can simply
import { Button, SomeOtherComponent } from 'lib/stardust'
and know that we're only bundling code that we're actually using.So now I'm wondering, outside of the obvious breaking changes that may occur as stardust has updates, do you see any potential downsides to this approach?
The text was updated successfully, but these errors were encountered: