Tree Shaking
/triː ˈʃeɪkɪŋ/
Definition
A build optimisation that removes unused code (dead code) from the final bundle by analysing static imports.
Example in context
"We import only the icons we use — tree shaking removes the rest from the bundle automatically."
Practice this term
Master Tree Shaking in context by working through exercises in the JavaScript & TypeScript module. You'll see the term used in real engineering scenarios with multiple-choice, fill-in-the-blank, and matching drills.