* Returns the intro followed by every source's generated string, joined by their separators.
()
| 426 | * Returns the intro followed by every source's generated string, joined by their separators. |
| 427 | */ |
| 428 | toString(): string { |
| 429 | const body = this.sources |
| 430 | .map((source, i) => { |
| 431 | const str = (i > 0 ? source.separator : '') + source.content.toString() |
| 432 | |
| 433 | return str |
| 434 | }) |
| 435 | .join('') |
| 436 | |
| 437 | return this.intro + body |
| 438 | } |
| 439 | |
| 440 | /** |
| 441 | * Returns true if the bundle's output is empty (disregarding white space). |