Make Javascript bundle smaller
Unanswered
Bombay-duck posted this in #help-forum
Bombay-duckOP
Hey, is there a good way to make the JS bundle size smaller? I know that you can make the client components smaller, but I'm pretty sure that there's some unused code, for example I think react is imported as a whole etc.
10 Replies
Bombay-duckOP
now i found that just 1 client call can make js bundle 100kb larger
Bombay-duckOP
Dutch
haha welcome to node 😄
@Dutch haha welcome to node 😄
Bombay-duckOP
noo what happened 

i see that theres preact, smaller replacement of react for example
@Bombay-duck i see that theres preact, smaller replacement of react for example
Dutch
yea, if it ends with it 😄
@Dutch yea, if it ends with it 😄
Bombay-duckOP
what you mean?
@Bombay-duck what you mean?
Dutch
basically you cant get rid of that bundle size easily
@Dutch basically you cant get rid of that bundle size easily
Bombay-duckOP
apparently you can with preact, but i dont know it yet
Bombay-duckOP
anyone have a good way to minimize these files? they are huuge