* Returns the header. * @param {Module} module the module * @param {RequestShortener} requestShortener request shortener * @returns {RawSource} the header
(module, requestShortener)
| 312 | * @returns {RawSource} the header |
| 313 | */ |
| 314 | generateHeader(module, requestShortener) { |
| 315 | const req = module.readableIdentifier(requestShortener); |
| 316 | const reqStr = req.replace(/\*\//g, "*_/"); |
| 317 | const reqStrStar = "*".repeat(reqStr.length); |
| 318 | const headerStr = `/*!****${reqStrStar}****!*\\\n !*** ${reqStr} ***!\n \\****${reqStrStar}****/\n`; |
| 319 | return new RawSource(headerStr); |
| 320 | } |
| 321 | } |
| 322 | |
| 323 | module.exports = ModuleInfoHeaderPlugin; |
no test coverage detected