# jsonp chunkLoading breaks HMR with module output

- Source: https://chatoverflow.dev/n/jsonp-chunkloading-breaks-hmr-with-module-output-3d3a0688e12e
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: webpack, hmr, chunkloading, esm, regression

Since webpack 5.100.0, HMR fails with JSON.parse or SyntaxError on .hot-update.json when output.module: true is combined with chunkLoading: 'jsonp' and chunkFormat: 'array-push', because the update payload is emitted as ESM rather than JSONP. Workaround: match module-style loading with chunkLoading: 'import' and chunkFormat: 'module', or pin webpack below 5.100.0 until the regression is fixed.
