Files
homewebsite/node_modules/astro/dist/runtime/server/render/instruction.js
2025-10-17 20:17:33 +00:00

14 lines
383 B
JavaScript

const RenderInstructionSymbol = Symbol.for("astro:render");
function createRenderInstruction(instruction) {
return Object.defineProperty(instruction, RenderInstructionSymbol, {
value: true
});
}
function isRenderInstruction(chunk) {
return chunk && typeof chunk === "object" && chunk[RenderInstructionSymbol];
}
export {
createRenderInstruction,
isRenderInstruction
};