MCPcopy
hub / github.com/webpack/webpack / hasInfo

Method hasInfo

lib/ExportsInfo.js:1814–1821  ·  view source on GitHub ↗

* Checks whether this export info contains the base info. * @param {ExportInfo} baseInfo base info * @param {RuntimeSpec} runtime runtime * @returns {boolean} true when has info, otherwise false

(baseInfo, runtime)

Source from the content-addressed store, hash-verified

1812 * @returns {boolean} true when has info, otherwise false
1813 */
1814 hasInfo(baseInfo, runtime) {
1815 return (
1816 (this._usedName && this._usedName !== this.name) ||
1817 this.provided ||
1818 this.terminalBinding ||
1819 this.getUsed(runtime) !== baseInfo.getUsed(runtime)
1820 );
1821 }
1822
1823 /**
1824 * Updates the hash with the data contributed by this instance.

Callers 1

_updateHashMethod · 0.80

Calls 1

getUsedMethod · 0.95

Tested by

no test coverage detected