webpack-sources
3.7.1 · 18 Nov 2026MIT85.2M / weekRepositoryHomepagenpmAtom feed
Upgrading webpack-sources From 3.4.1 to 3.5.0
1 release in betweenevery note read
- 0
- changes to make
- 0
- advisories fixed
- 1
- new
- 0
- fixes
Release by release
- New
Add
clearCache(options?, visited?)method toSourcethat recursively releases cached data (CachedSourcecached maps/buffers/strings,SourceMapSourceparsed/serialized map caches, and dual-buffer caches in leaf sources). Lets consumers like webpack'sSourceMapDevToolPluginreclaim memory between chunks rather than accumulating per-task source map data across an entire build. Options:maps(defaulttrue) drops cached source maps;source(defaulttrue) drops cached source/buffer copies — passfalseto keep source available for downstream plugins;parsedMap(defaultfalse) additionally drops the parsed object form onSourceMapSourceinstances when a buffer or string form survives (the combination{ maps: true, source: false, parsedMap: true }matches theSourceMapDevToolPlugincall shape in webpack/webpack#20963). The optionalvisitedWeakSetdeduplicates the walk when the same child is reachable through multiple parents (e.g. modules shared across chunks).
- New
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.