From 75f4c17e4ce8723de34303fedaf7af17e5add27d Mon Sep 17 00:00:00 2001 From: FredKSchott Date: Mon, 14 Mar 2022 17:24:30 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/static-build.ts | 6 +++--- packages/astro/src/vite-plugin-astro/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/core/build/static-build.ts b/packages/astro/src/core/build/static-build.ts index 50b58cdc5a..393e61ed29 100644 --- a/packages/astro/src/core/build/static-build.ts +++ b/packages/astro/src/core/build/static-build.ts @@ -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. @@ -204,7 +204,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp }, }, // must match an esbuild target - target: 'esnext', + target: 'esnext', // improve build performance minify: false, polyfillModulePreload: false, @@ -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); } } } diff --git a/packages/astro/src/vite-plugin-astro/index.ts b/packages/astro/src/vite-plugin-astro/index.ts index f08eb32773..e7dce20fd1 100644 --- a/packages/astro/src/vite-plugin-astro/index.ts +++ b/packages/astro/src/vite-plugin-astro/index.ts @@ -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) });