(section)
| 598 | } |
| 599 | |
| 600 | async writeRequires(section) { |
| 601 | if (section.modules.length === 0) { |
| 602 | return; |
| 603 | } |
| 604 | |
| 605 | this.outW.ensureNewLine(); |
| 606 | if (section.async === false) { |
| 607 | section.modules.forEach( (module) => { |
| 608 | this.writeWithSourceMap(this.generateRequireSync(module)); |
| 609 | }); |
| 610 | } else { |
| 611 | this.writeWithSourceMap(this.generateRequire(section.modules)); |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | // When AutoSplit is enabled for depCache, we need to ensure that modules |
| 616 | // are not duplicated across files. This might happen due to the filters provided. |
no test coverage detected