MCPcopy Index your code
hub / github.com/rollup/rollup / validateOutputBundleFileNames

Function validateOutputBundleFileNames

src/Bundle.ts:380–392  ·  view source on GitHub ↗
(bundle: OutputBundleWithPlaceholders)

Source from the content-addressed store, hash-verified

378}
379
380function 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}

Callers 1

generateMethod · 0.85

Calls 3

errorFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…