MCPcopy
hub / github.com/webpack/webpack / isProvided

Method isProvided

lib/Module.js:620–626  ·  view source on GitHub ↗

* Checks whether this module provides the specified export. * @deprecated * @param {string} exportName a name of an export * @returns {boolean | null} true, if the export is provided why the module. * null, if it's unknown. * false, if it's not provided.

(exportName)

Source from the content-addressed store, hash-verified

618 * false, if it's not provided.
619 */
620 isProvided(exportName) {
621 return ModuleGraph.getModuleGraphForModule(
622 this,
623 "Module.usedExports",
624 "DEP_WEBPACK_MODULE_USED_EXPORTS"
625 ).isExportProvided(this, exportName);
626 }
627 // BACKWARD-COMPAT END
628
629 /**

Callers 1

webpack.config.jsFile · 0.80

Calls 2

isExportProvidedMethod · 0.45

Tested by

no test coverage detected