Logo
The best code is no code at all.
  • 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
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

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
4 months ago 492.8K 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.

Today's picks

Under Desk Cable Management Tray - Heavy Duty No-Drill Clamp & Screw Mount, 36-Inch Cord Organizer for Home Office, Gaming Setup & Study Room, Holds Power Strip & Large Adapters

Under Desk Cable Management Tray - Heavy Duty No-Drill Clamp & Screw Mount, 36-Inch Cord Organizer for Home Office, Gaming Setup & Study Room, Holds Power Strip & Large Adapters

Affiliate
$32.99
Yes, I Am A Dev, How Could You Tell?

Yes, I Am A Dev, How Could You Tell?

StackOverflow
224.6K views 1 year ago
GearScouts.com

GearScouts.com

Sponsored
Power stations