(moduleName, resource)
| 289 | } |
| 290 | |
| 291 | async writeRawModule(moduleName, resource) { |
| 292 | this.outW.ensureNewLine(); |
| 293 | let moduleContent = (await resource.buffer()).toString(); |
| 294 | moduleContent = removeHashbang(moduleContent); |
| 295 | if (this.options.sourceMap) { |
| 296 | let moduleSourceMap; |
| 297 | ({moduleContent, moduleSourceMap} = |
| 298 | await this.getSourceMapForModule({ |
| 299 | moduleName, |
| 300 | moduleContent, |
| 301 | resourcePath: resource.getPath() |
| 302 | })); |
| 303 | this.addSourceMap(moduleName, moduleSourceMap); |
| 304 | } |
| 305 | this.outW.write(moduleContent); |
| 306 | this.outW.ensureNewLine(); |
| 307 | } |
| 308 | |
| 309 | async writePreloadFunction(section) { |
| 310 | const outW = this.outW; |
no test coverage detected