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

Method getSourceTypes

lib/NormalModule.js:2017–2024  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

2015 * @returns {SourceTypes} types available (do not mutate)
2016 */
2017 getSourceTypes() {
2018 if (this._sourceTypes === undefined) {
2019 this._sourceTypes = /** @type {Generator} */ (this.generator).getTypes(
2020 this
2021 );
2022 }
2023 return this._sourceTypes;
2024 }
2025
2026 /**
2027 * Freshly recomputed source types when they depend on incoming connections, for chunk-graph cache invalidation; undefined otherwise. #20800

Callers 2

cleanupForCacheMethod · 0.95
updateHashMethod · 0.95

Calls 1

getTypesMethod · 0.45

Tested by

no test coverage detected