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
Hi, I know, there were a few similar issues, but I wanted to raise this question because in my node modules folder I saw that @formatjs/intl includes the complete typescript package. That's a whopping 65M and I wonder if this is strictly necessary? No other package I use needs typescript as a dependency, as it is usually only used in the build process.
I think, reducing bundle sizes is a benefit for a lot of folks as it increases deploy speed and so on. One could of course bundle server side code to tree shake everything out, but that comes with it's own issues... (actually, does treeshaking work on require statements anyways? not sure right now)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I know, there were a few similar issues, but I wanted to raise this question because in my node modules folder I saw that @formatjs/intl includes the complete typescript package. That's a whopping 65M and I wonder if this is strictly necessary? No other package I use needs typescript as a dependency, as it is usually only used in the build process.
I think, reducing bundle sizes is a benefit for a lot of folks as it increases deploy speed and so on. One could of course bundle server side code to tree shake everything out, but that comes with it's own issues... (actually, does treeshaking work on require statements anyways? not sure right now)
Cheers
Beta Was this translation helpful? Give feedback.
All reactions