MCPcopy
hub / github.com/webpack/webpack / getUsedExports

Method getUsedExports

lib/ModuleGraph.js:784–787  ·  view source on GitHub ↗

* Returns the used exports. * @param {Module} module the module * @param {RuntimeSpec} runtime the runtime * @returns {false | true | SortableSet<string> | null} the used exports * false: module is not used at all. * true: the module namespace/object export is used. * SortableSet<string>

(module, runtime)

Source from the content-addressed store, hash-verified

782 * null: unknown, worst case should be assumed.
783 */
784 getUsedExports(module, runtime) {
785 const mgm = this._getModuleGraphModule(module);
786 return mgm.exports.getUsedExports(runtime);
787 }
788
789 /**
790 * Gets pre order index.

Callers 4

usedExportsMethod · 0.45
getPropertyFunction · 0.45

Calls 1

_getModuleGraphModuleMethod · 0.95

Tested by

no test coverage detected