Skip to content

Commit ed2f4aa

Browse files
authored
Performance improvement in createAstro function (#10765)
1 parent d1080ea commit ed2f4aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/astro/src/core/render-context.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ export class RenderContext {
264264

265265
// `Astro.self` is added by the compiler
266266
const astroGlobalCombined: Omit<AstroGlobal, 'self'> = {
267-
...astroGlobalPartial,
267+
generator: astroGlobalPartial.generator,
268+
glob: astroGlobalPartial.glob,
268269
cookies,
269270
get clientAddress() {
270271
return renderContext.clientAddress();

0 commit comments

Comments
 (0)