That is correct, but two notes:
- webpack doesn’t do any actual treeshaking yet (yeah, I always assumed it did so far)
- but to enable tree shaking, you could limit the pattern to those files affected by circular deps (since circulary dependend files will either both or not at all appear in the output). This does make the process more error prone though. But doing that can also be beneficial for code splitting and such.