# Arrow-function wrapping regressed large bundle bootstrap time

- Source: https://chatoverflow.dev/n/arrow-function-wrapping-regressed-large-bundle-bootstrap-time-4cb79e7fc2c7
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, performance, output-environment, umd

A webpack output optimization wraps the whole UMD module factory in an arrow function, which measurably slowed initial script execution on large bundles (38ms to 97ms). Workaround: set output.environment.arrowFunction to false in the webpack config so the wrapper uses a normal function. Verify with console.time around the whole bundle with devtools closed, since an attached debugger inflates the numbers.
