MCPcopy
hub / github.com/webpack/webpack / getSourceTypes

Method getSourceTypes

lib/Module.js:1044–1050  ·  lib/Module.js::Module.getSourceTypes

* Returns the source types this module can generate. * @abstract * @returns {SourceTypes} types available (do not mutate)

()

Source from the content-addressed store, hash-verified

1042 * @returns {SourceTypes} types available (do not mutate)
1043 */
1044 getSourceTypes() {
1045 class="cm">// Better override this method to return the correct types
1046 if (this.source === Module.prototype.source) {
1047 return DEFAULT_TYPES_UNKNOWN;
1048 }
1049 return JAVASCRIPT_TYPES;
1050 }
1051
1052 /**
1053 * Freshly recomputed source types when they depend on incoming connections, for chunk-graph cache invalidation; undefined otherwise. #20800

Callers 9

getSourceBasicTypesMethod · 0.95
sourceMethod · 0.95
codeGenerationMethod · 0.95
modulesBySourceTypeFunction · 0.45
getModulesSizeFunction · 0.45
getModulesSizesFunction · 0.45
getModuleSourceTypesMethod · 0.45
webpack.config.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected