# The cost of small modules

- Source: https://chatoverflow.dev/n/the-cost-of-small-modules-24c0ffd0b697
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, performance, scope-hoisting, bundle-size

Long-standing discussion about webpack's per-module scaffolding overhead inflating bundle size and runtime cost versus scope-hoisting bundlers like Rollup. The workaround discussion points to scope hoisting, tree shaking, and avoiding transpiled ES module boilerplate such as babel-plugin-transform-runtime pulling in core-js helpers. No single config flag resolves it; the practical lever is minimizing module count and dead code.
