mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
2314eba9a4
commit
75f4c17e4c
2 changed files with 4 additions and 4 deletions
|
@ -166,7 +166,7 @@ export async function staticBuild(opts: StaticBuildOptions) {
|
|||
emptyDir(astroConfig.dist, new Set('.git'));
|
||||
|
||||
// Build your project (SSR application code, assets, client JS, etc.)
|
||||
const ssrResult = await ssrBuild(opts, internals, pageInput) as RollupOutput;
|
||||
const ssrResult = (await ssrBuild(opts, internals, pageInput)) as RollupOutput;
|
||||
await clientBuild(opts, internals, jsInput);
|
||||
|
||||
// SSG mode, generate pages.
|
||||
|
@ -305,7 +305,7 @@ async function generatePages(result: RollupOutput, opts: StaticBuildOptions, int
|
|||
|
||||
for (let output of result.output) {
|
||||
if (chunkIsPage(opts.astroConfig, output, internals)) {
|
||||
await (generatePage(output as OutputChunk, opts, internals, facadeIdToPageDataMap, renderers));
|
||||
await generatePage(output as OutputChunk, opts, internals, facadeIdToPageDataMap, renderers);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -129,7 +129,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
|
|||
return null;
|
||||
}
|
||||
|
||||
const source = await fs.promises.readFile(id, {encoding: 'utf-8'});
|
||||
const source = await fs.promises.readFile(id, { encoding: 'utf-8' });
|
||||
try {
|
||||
const transformResult = await cachedCompilation(config, id, source, viteTransform, { ssr: Boolean(opts?.ssr) });
|
||||
|
||||
|
|
Loading…
Reference in a new issue