JavaScript
Tree-shaking
Removing unused exports at build time, relying on static ES module analysis.
Why interviewers ask about it
It needs ESM because require() can be dynamic. Module side effects also block it - that is what `sideEffects: false` declares.
Related terms
This term is part of the free Python Full-Stack interview preparation module - browse the full glossary for every definition.