Reduce import cost of TSDX package #991
Unanswered
glenngijsberts
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Did you resolved this issue ? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Did you resolved this issue ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey 👋
I'm looking into improving the bundle size & performance of my app and while I was investigating that I noticed that the import cost of components from my components library (written in TSDX) is a lot compared to other libraries I've been using. I'm kinda new to this kind of performance improvements so I was wondering if anybody has some advice for me on what to do or If this is a normal import cost.
Examples
Looking at the pictures above it seems that if I import a single thing it's still costing me a lot and it seems that there is a lot more imported besides the single function/component. Is there a way I can reduce this import cost? Can I split those components in separate build files somehow? Any other tips on improving this? I'm using the standard setup (without a tsdx.config.js file).
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions