From ed2f4aa1227fb2e967e9b3e2a6187b0f522aa8af Mon Sep 17 00:00:00 2001 From: Leander Gilles Date: Fri, 12 Apr 2024 08:17:42 +0200 Subject: [PATCH] Performance improvement in createAstro function (#10765) --- packages/astro/src/core/render-context.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/render-context.ts b/packages/astro/src/core/render-context.ts index 4155de863d..eb05df6f5d 100644 --- a/packages/astro/src/core/render-context.ts +++ b/packages/astro/src/core/render-context.ts @@ -264,7 +264,8 @@ export class RenderContext { // `Astro.self` is added by the compiler const astroGlobalCombined: Omit = { - ...astroGlobalPartial, + generator: astroGlobalPartial.generator, + glob: astroGlobalPartial.glob, cookies, get clientAddress() { return renderContext.clientAddress();