Consider replacing core-js #1218
-
|
This project has a hard dependency on It's not entirely clear to me why there's a need for Babel at all here (I'd be curious to learn more!); but in the meantime, could Obligatory meme:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Several things:
|
Beta Was this translation helpful? Give feedback.

Several things:
±14MB for a non-production dependency in 2025 is a non-issue. And when I do use core-js to craft production dependencies that I'm sending to, say, the browser, any unused core-js polyfills (including ones that become no longer necessary due to browsers implementing them natively) are tree-shaken out by babel/swc (and/or my bundler of choice) so there is literally 0 additional cost when and where it matters.
NPM de-duplicates dependencies. core-js is one of the most popular libraries in existence in the JS ecosystem, so even if NTARH removed it from its dependencies, it'd very likely still be downloaded anyway since it'd still be somewhere else in the project's dependen…