From fc2dc973f28ceebc6e1016c6360ddaa497f9acce Mon Sep 17 00:00:00 2001 From: JuanM04 Date: Tue, 29 Mar 2022 23:06:06 -0300 Subject: [PATCH] Reverted changes in core/build --- packages/astro/src/core/build/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/build/index.ts b/packages/astro/src/core/build/index.ts index 1800c2636..4962ce1c7 100644 --- a/packages/astro/src/core/build/index.ts +++ b/packages/astro/src/core/build/index.ts @@ -26,7 +26,7 @@ export interface BuildOptions { /** `astro build` */ export default async function build(config: AstroConfig, options: BuildOptions = { logging: defaultLogOptions }): Promise { - config = await runHookConfigSetup({ config, command: 'build' }); + applyPolyfill(); const builder = new AstroBuilder(config, options); await builder.run(); } @@ -62,6 +62,7 @@ class AstroBuilder { const { logging } = this; this.timer.init = performance.now(); this.timer.viteStart = performance.now(); + this.config = await runHookConfigSetup({ config: this.config, command: 'build' }); const viteConfig = await createVite( { mode: this.mode,