Closure does pruning of methods, properties, etc at a fine grained level, moves code at a per-method level between modules, it computes whether functions have side effects and elides unused side-effect-free code, it does type-based optimizations (https://github.com/google/closure-compiler/wiki/Type-Based-P...), the list goes on and on. It's really like having GCC or LLVM for Javascript code. That's one reason why it's slow, because it does far more than the transpilers and minimizers out there.
(As many in another, GWT does many of the same things, being a fully optimizing true compiler)
It turns out that it basically supported "skip loading of unnecessary ES6 modules", so kind of like a "warn: unused import", but turned into a silence and no-op.
Now with Uglify getting the "pure" annotation, and libraries sprinkling that onto their code, it'll help a bit.
Code splitting: https://webpack.js.org/guides/code-splitting/
Tree shaking: https://webpack.js.org/guides/tree-shaking/