Reverted changes in core/build
This commit is contained in:
parent
0555099619
commit
fc2dc973f2
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,7 @@ export interface BuildOptions {
|
||||||
|
|
||||||
/** `astro build` */
|
/** `astro build` */
|
||||||
export default async function build(config: AstroConfig, options: BuildOptions = { logging: defaultLogOptions }): Promise<void> {
|
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);
|
const builder = new AstroBuilder(config, options);
|
||||||
await builder.run();
|
await builder.run();
|
||||||
}
|
}
|
||||||
|
@ -62,6 +62,7 @@ class AstroBuilder {
|
||||||
const { logging } = this;
|
const { logging } = this;
|
||||||
this.timer.init = performance.now();
|
this.timer.init = performance.now();
|
||||||
this.timer.viteStart = performance.now();
|
this.timer.viteStart = performance.now();
|
||||||
|
this.config = await runHookConfigSetup({ config: this.config, command: 'build' });
|
||||||
const viteConfig = await createVite(
|
const viteConfig = await createVite(
|
||||||
{
|
{
|
||||||
mode: this.mode,
|
mode: this.mode,
|
||||||
|
|
Loading…
Reference in a new issue