MCPcopy
hub / github.com/webpack/webpack / clear

Method clear

lib/LazyBarrel.js:208–210  ·  view source on GitHub ↗

* Releases all per-module deferral state. Lazy barrel only acts while the * module graph is built, so the bookkeeping is dead weight once make is done.

()

Source from the content-addressed store, hash-verified

206 * module graph is built, so the bookkeeping is dead weight once make is done.
207 */
208 clear() {
209 this._modules = new WeakMap();
210 }
211
212 /**
213 * Classifies the re-export dependencies of a side-effect-free module (lazy barrel)

Callers 2

_releaseMethod · 0.45
requestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected