Why are ES modules generally easier to tree-shake than CommonJS modules?

from Frontend
intermediate 1 min

Why are ES modules generally easier to tree-shake than CommonJS modules?

Report an error