MCPcopy
hub / github.com/webpack/webpack / getSideEffectsConnectionState

Method getSideEffectsConnectionState

lib/NormalModule.js:2000–2011  ·  view source on GitHub ↗

* Gets side effects connection state. * @param {ModuleGraph} moduleGraph the module graph * @returns {ConnectionState} how this module should be connected to referencing modules when consumed for side-effects only

(moduleGraph)

Source from the content-addressed store, hash-verified

1998 * @returns {ConnectionState} how this module should be connected to referencing modules when consumed for side-effects only
1999 */
2000 getSideEffectsConnectionState(moduleGraph) {
2001 // Fresh per-walk context; re-entrant calls (e.g.
2002 // `ConcatenatedModule.getSideEffectsConnectionState` delegating back
2003 // through here) get their own and can't clobber the outer walk.
2004 return walkSideEffectsRecursive(
2005 this,
2006 moduleGraph,
2007 0,
2008 getHarmonyImportSideEffectDependency(),
2009 { circular: false }
2010 );
2011 }
2012
2013 /**
2014 * Returns the source types this module can generate.

Callers 2

walkSideEffectsIterativeFunction · 0.45
walkSideEffectsRecursiveFunction · 0.45

Calls 1

walkSideEffectsRecursiveFunction · 0.85

Tested by

no test coverage detected