Software Engineering ยท DevOps
A bundler optimization that eliminates dead code โ specifically, exported module members that nothing in the app actually imports.
In practice: Only works reliably with ES module syntax (`import`/`export`) โ CommonJS (`require`) is dynamic, which makes static analysis hard. A library that doesn't ship ES modules can't be tree-shaken by the consumer.