(bundle: OutputBundleWithPlaceholders)
| 378 | } |
| 379 | |
| 380 | function validateOutputBundleFileNames(bundle: OutputBundleWithPlaceholders): void { |
| 381 | for (const [bundleKey, entry] of Object.entries(bundle)) { |
| 382 | if (isFileNameOutsideOutputDirectory(bundleKey)) { |
| 383 | return error(logFileNameOutsideOutputDirectory(bundleKey)); |
| 384 | } |
| 385 | if (entry.type !== 'placeholder') { |
| 386 | const { fileName } = entry; |
| 387 | if (fileName !== bundleKey && isFileNameOutsideOutputDirectory(fileName)) { |
| 388 | return error(logFileNameOutsideOutputDirectory(fileName)); |
| 389 | } |
| 390 | } |
| 391 | } |
| 392 | } |
no test coverage detected
searching dependent graphs…