Logo
First tweet ever: 'just setting up my twttr'
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Tree-shaking Memes

Posts tagged with Tree-shaking

Tree Shaking Maybe Works

React Javascript Programming Frontend Webdev
3 hours ago 49.9K views 1 shares
Tree Shaking Maybe Works
You install one tiny date formatting library and suddenly your node_modules folder is the size of a 747. Then you build your "tiny React app" and somehow it's still pulling in half the internet despite tree shaking supposedly removing unused code. Tree shaking is that magical build optimization that's supposed to eliminate dead code from your bundle. In theory, it only includes what you actually import. In practice? Well, your final bundle is still mysteriously 2MB because some dependency deep in the chain decided to import the entire lodash library for one function. The ratio here is painfully accurate. You start with a massive airplane hangar of dependencies, shake the tree real hard, and end up with... a slightly smaller airplane hangar. But hey, at least webpack says it's optimized.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

JYKEYMOUT Bluetooth and 2.4G (2-in-1) Rechargea...

JYKEYMOUT Bluetooth and 2.4G (2-in-1) Rechargea...
Ad Thanks for supporting our research into why copying code from Stack Overflow works better than writing it yourself. 🔍