MCPcopy
hub / github.com/webpack/webpack / getReferencedSourceTypes

Method getReferencedSourceTypes

lib/NormalModule.js:2030–2036  ·  view source on GitHub ↗

* Freshly recomputed source types when they depend on incoming connections, for chunk-graph cache invalidation; undefined otherwise. #20800 * @returns {SourceTypes | undefined} source types or undefined

()

Source from the content-addressed store, hash-verified

2028 * @returns {SourceTypes | undefined} source types or undefined
2029 */
2030 getReferencedSourceTypes() {
2031 const generator = /** @type {Generator} */ (this.generator);
2032 // Bypass the _sourceTypes cache: it may be stale when the module is not rebuilt.
2033 return generator.getTypesDependOnIncomingConnections()
2034 ? generator.getTypes(this)
2035 : undefined;
2036 }
2037
2038 /**
2039 * Generates code and runtime requirements for this module.

Callers

nothing calls this directly

Calls 2

getTypesMethod · 0.45

Tested by

no test coverage detected