DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
JavaScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
JavaScript
Why does tree-shaking generally NOT work well on CommonJS code?
A
CommonJS files are always minified already
B
require() calls can be dynamic/conditional, so a bundler can't safely prove an export is unused at build time
C
Tree-shaking is a CommonJS-only feature
D
CommonJS doesn't support the export keyword
Check Answer