* Create exports for globals * * @param {ModuleInfo} info
(info)
| 532 | * @param {ModuleInfo} info |
| 533 | */ |
| 534 | exportGlobalNames(info) { |
| 535 | if ( !info || !info.exposedGlobals || !info.exposedGlobals.length ) { |
| 536 | return; |
| 537 | } |
| 538 | this.outW.ensureNewLine(); |
| 539 | info.exposedGlobals.forEach( (globalName) => { |
| 540 | // Note: globalName can be assumed to be a valid identifier as it is used as variable name anyhow |
| 541 | this.writeWithSourceMap(`this.${globalName}=${globalName};\n`); |
| 542 | }); |
| 543 | } |
| 544 | |
| 545 | logStringBundlingError(moduleName) { |
| 546 | log.error( |
no test coverage detected