[ci] format
This commit is contained in:
parent
e5f6de4edb
commit
757790f4e8
1 changed files with 12 additions and 2 deletions
|
@ -167,7 +167,12 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
|
||||||
resolve: viteConfig.resolve,
|
resolve: viteConfig.resolve,
|
||||||
} as ViteConfigWithSSR;
|
} as ViteConfigWithSSR;
|
||||||
|
|
||||||
await runHookBuildSetup({ config: astroConfig, pages: internals.pagesByComponent, vite: viteBuildConfig, target: 'server' });
|
await runHookBuildSetup({
|
||||||
|
config: astroConfig,
|
||||||
|
pages: internals.pagesByComponent,
|
||||||
|
vite: viteBuildConfig,
|
||||||
|
target: 'server',
|
||||||
|
});
|
||||||
|
|
||||||
// TODO: use vite.mergeConfig() here?
|
// TODO: use vite.mergeConfig() here?
|
||||||
return await vite.build(viteBuildConfig);
|
return await vite.build(viteBuildConfig);
|
||||||
|
@ -232,7 +237,12 @@ async function clientBuild(
|
||||||
base: astroConfig.base,
|
base: astroConfig.base,
|
||||||
} as ViteConfigWithSSR;
|
} as ViteConfigWithSSR;
|
||||||
|
|
||||||
await runHookBuildSetup({ config: astroConfig, pages: internals.pagesByComponent, vite: viteBuildConfig, target: 'client' });
|
await runHookBuildSetup({
|
||||||
|
config: astroConfig,
|
||||||
|
pages: internals.pagesByComponent,
|
||||||
|
vite: viteBuildConfig,
|
||||||
|
target: 'client',
|
||||||
|
});
|
||||||
|
|
||||||
const buildResult = await vite.build(viteBuildConfig);
|
const buildResult = await vite.build(viteBuildConfig);
|
||||||
info(opts.logging, null, dim(`Completed in ${getTimeStat(timer, performance.now())}.\n`));
|
info(opts.logging, null, dim(`Completed in ${getTimeStat(timer, performance.now())}.\n`));
|
||||||
|
|
Loading…
Reference in a new issue