diff options
author | 2022-03-29 23:06:06 -0300 | |
---|---|---|
committer | 2022-03-29 23:06:06 -0300 | |
commit | fc2dc973f28ceebc6e1016c6360ddaa497f9acce (patch) | |
tree | f363f9fb5e5f8da1194d13d67d2d95d96df0abd3 | |
parent | 0555099619be81aa1844ed5e887fcf850a048247 (diff) | |
download | astro-fc2dc973f28ceebc6e1016c6360ddaa497f9acce.tar.gz astro-fc2dc973f28ceebc6e1016c6360ddaa497f9acce.tar.zst astro-fc2dc973f28ceebc6e1016c6360ddaa497f9acce.zip |
Reverted changes in core/build
-rw-r--r-- | packages/astro/src/core/build/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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<void> { - 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, |