astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
13 lines (12 loc) • 365 B
JavaScript
import { getInstalledRenderScope } from "./scope.js";
function recordContentEntryRender(filePath) {
if (!filePath) return;
getInstalledRenderScope()?.getStore()?.contentEntries?.add(filePath);
}
function recordStaticImage(image) {
getInstalledRenderScope()?.getStore()?.staticImages?.push(image);
}
export {
recordContentEntryRender,
recordStaticImage
};