Add a reference map to bundle output

This commit is contained in:
Ankit Saini
2022-06-17 10:29:34 +05:30
parent 7dcfbaad04
commit 1a2f9c97ca
2 changed files with 22 additions and 2 deletions

View File

@@ -4860,7 +4860,11 @@ module.exports = {
else if (format.toLowerCase() === parse.YAML_FORMAT) {
bundledFile = parse.toYAML(bundledFile);
}
return { rootFile: { path: contentAndComponents.fileName }, bundledContent: bundledFile };
return {
rootFile: { path: contentAndComponents.fileName },
bundledContent: bundledFile,
referenceMap: contentAndComponents.referenceMap
};
};
},