Tree shaking analyzes module imports and excludes imported code that the application never uses, producing smaller JavaScript bundles with only the required code. section 12.4
Unused modules in a component bundle
Suppose a component imports a module but never calls or references it. A bundler such as Rollup can omit that module from the final output. For a larger application, separate functionality bundles can also keep account information code out of a user’s transaction view. section 12.4
Compare Rollup’s simpler bundling approach with Webpack’s more complex support for multiple output bundles and additional file types. section 12.4

