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

Method getTypes

lib/html/HtmlGenerator.js:209–214  ·  view source on GitHub ↗

* Returns the source types available for this module. * @param {NormalModule} module fresh module * @returns {SourceTypes} available types (do not mutate)

(module)

Source from the content-addressed store, hash-verified

207 * @returns {SourceTypes} available types (do not mutate)
208 */
209 getTypes(module) {
210 if (this._shouldExposeHtmlType(module)) {
211 return JAVASCRIPT_AND_HTML_TYPES;
212 }
213 return JAVASCRIPT_TYPES;
214 }
215
216 /**
217 * @returns {boolean} whether getTypes() depends on the module's incoming connections

Callers

nothing calls this directly

Calls 1

_shouldExposeHtmlTypeMethod · 0.95

Tested by

no test coverage detected