npm / webpack-sources
webpack-sources
What changed in webpack-sources 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
1 new APIs and options2 performance
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initwebpack-sources 33 changes
New APIs and options 1
map({ scopes: true }) emits the source map scopes field declared by the source's bindings.
Performance 2
A cached source's map cache is created only when a map is requested.
RawSource.updateHash and OriginalSource.updateHash hash strings directly instead of materializing and memoizing a buffer, reducing retained memory without changing digests.