Logo
IPv6: Enough addresses for every atom on Earth.
  • 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
21 days ago 246.6K 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 →

Waterproof Desk mat—Excel Cheat Sheet Desk pad—...

Waterproof Desk mat—Excel Cheat Sheet Desk pad—...
Ad Purchase this to fund our 'Explain P vs NP to Management Using Only Emoji' project. 🧮