MCPcopy
hub / github.com/webpack/webpack / getMeta

Method getMeta

lib/ModuleGraph.js:942–949  ·  lib/ModuleGraph.js::ModuleGraph.getMeta

* Returns metadata. * @param {MetaKey} thing any thing * @returns {Meta} metadata

(thing)

Source from the content-addressed store, hash-verified

940 * @returns {Meta} metadata
941 */
942 getMeta(thing) {
943 let meta = this._metaMap.get(thing);
944 if (meta === undefined) {
945 meta = /** @type {Meta} */ (Object.create(null));
946 this._metaMap.set(thing, meta);
947 }
948 return meta;
949 }
950
951 /**
952 * Gets meta if existing.

Callers 6

getImportVarMethod · 0.80
getIdsMethod · 0.80
setIdsMethod · 0.80
getIdsMethod · 0.80
setIdsMethod · 0.80
setIdsMethod · 0.80

Calls 3

getMethod · 0.45
createMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected