const resolver = new GitApiResolver(projectId, currentBranch, () => get().fileContentCache);
const config = createEmptyRedoclyConfig();
const document = makeDocumentFromString(fileContent, normalizedRootPath);
const types = getTypesForSpec(document.parsed);
const bundleResult = await bundleDocument({
document,
config,
types,
externalRefResolver: resolver,
dereference: false,
removeUnusedComponents: false,
});