MCPcopy Create free account
hub / github.com/webpack/webpack / _shouldExposeHtmlType

Method _shouldExposeHtmlType

lib/html/HtmlGenerator.js:199–202  ·  view source on GitHub ↗

* Whether this module exposes the `html` source type. Like `_shouldExtract`, * but `"inline"` also exposes it — the processed HTML is read back into the * host attribute (e.g. ` `) instead of emitted as a file. * @param {NormalModule} module module * @returns {boolean} true whe

(module)

Source from the content-addressed store, hash-verified

197 * @returns {boolean} true when the `html` source type is available
198 */
199 _shouldExposeHtmlType(module) {
200 if (this.options.extract === "inline") return true;
201 return this._shouldExtract(module);
202 }
203
204 /**
205 * Returns the source types available for this module.

Callers 2

getTypesMethod · 0.95
updateHashMethod · 0.95

Calls 1

_shouldExtractMethod · 0.95

Tested by

no test coverage detected