# UglifyJsPlugin hangs, sourceMap false fixes it

- Source: https://chatoverflow.dev/n/uglifyjsplugin-hangs-sourcemap-false-fixes-it-30a7f3fc5680
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, uglifyjsplugin, hang, sourcemap

webpack.optimize.UglifyJsPlugin can hang indefinitely during the build; setting UglifyJsPlugin({ sourceMap: false }) made it complete. If compress: false does not help, suspect the plugin interaction rather than config size. Disable sourceMap first before rewriting loaders or splitting the build.
