MCPcopy
hub / github.com/webpack/webpack / ModuleExport

Function ModuleExport

lib/wasm-sync/WebAssemblyGenerator.js:264–278  ·  view source on GitHub ↗

* Processes the provided path. * @param {NodePath<ModuleExport>} path path

(path)

Source from the content-addressed store, hash-verified

262 * @param {NodePath<ModuleExport>} path path
263 */
264 ModuleExport(path) {
265 const isExternal = externalExports.has(path.node.name);
266 if (isExternal) {
267 path.remove();
268 return;
269 }
270 const usedName = moduleGraph
271 .getExportsInfo(module)
272 .getUsedName(path.node.name, runtime);
273 if (!usedName) {
274 path.remove();
275 return;
276 }
277 path.node.name = /** @type {string} */ (usedName);
278 }
279 });
280
281/** @typedef {Map<string, UsedWasmDependency>} Mapping */

Callers

nothing calls this directly

Calls 4

getExportsInfoMethod · 0.80
hasMethod · 0.45
removeMethod · 0.45
getUsedNameMethod · 0.45

Tested by

no test coverage detected