MCPcopy
hub / github.com/webpack/webpack / getSource

Method getSource

lib/CodeGenerationResults.js:116–120  ·  view source on GitHub ↗

* Returns a generated source of the requested source type from a stored code * generation result. * @param {Module} module the module * @param {RuntimeSpec} runtime runtime(s) * @param {SourceType} sourceType the source type * @returns {Source} a source

(module, runtime, sourceType)

Source from the content-addressed store, hash-verified

114 * @returns {Source} a source
115 */
116 getSource(module, runtime, sourceType) {
117 return /** @type {Source} */ (
118 this.get(module, runtime).sources.get(sourceType)
119 );
120 }
121
122 /**
123 * Returns the runtime requirements captured during code generation for the

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected