MCPcopy
hub / github.com/webpack/webpack / registerExport

Method registerExport

lib/ConcatenationScope.js:78–85  ·  view source on GitHub ↗

* Records the symbol that should be used when the current module exports a * named binding. * @param {string} exportName name of the export * @param {string} symbol identifier of the export in source code

(exportName, symbol)

Source from the content-addressed store, hash-verified

76 * @param {string} symbol identifier of the export in source code
77 */
78 registerExport(exportName, symbol) {
79 if (!this._currentModule.exportMap) {
80 this._currentModule.exportMap = new Map();
81 }
82 if (!this._currentModule.exportMap.has(exportName)) {
83 this._currentModule.exportMap.set(exportName, symbol);
84 }
85 }
86
87 /**
88 * Records a raw expression that can be used to reference an export without

Callers 3

generateExportCodeMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 2

hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected