getAllEmbedsWithFiles

getAllEmbedsWithFiles(): ReadonlyMap<string, ReadonlySet<string>>

Returns a map of all embed targets (destination file paths) to the sets of files that embed them.

Returns

ReadonlyMap<string, ReadonlySet<string>> — dest path → set of embedding file paths.

Example

const allEmbeds = cache.getAllEmbedsWithFiles();
for (const [target, embedders] of allEmbeds) {
  console.log(`${target} is embedded by ${embedders.size} files`);
}