MCPcopy
hub / github.com/webpack/webpack / registerRawExport

Method registerRawExport

lib/ConcatenationScope.js:93–100  ·  view source on GitHub ↗

* Records a raw expression that can be used to reference an export without * going through the normal symbol map. * @param {string} exportName name of the export * @param {string} expression expression to be used

(exportName, expression)

Source from the content-addressed store, hash-verified

91 * @param {string} expression expression to be used
92 */
93 registerRawExport(exportName, expression) {
94 if (!this._currentModule.rawExportMap) {
95 this._currentModule.rawExportMap = new Map();
96 }
97 if (!this._currentModule.rawExportMap.has(exportName)) {
98 this._currentModule.rawExportMap.set(exportName, expression);
99 }
100 }
101
102 /**
103 * Returns the raw expression registered for an export, if one exists.

Callers 2

codeGenerationMethod · 0.80
applyMethod · 0.80

Calls 2

hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected