[ci] format

This commit is contained in:
FredKSchott 2022-03-14 17:24:30 +00:00 committed by GitHub Actions
parent 2314eba9a4
commit 75f4c17e4c
2 changed files with 4 additions and 4 deletions

View file

@ -166,7 +166,7 @@ export async function staticBuild(opts: StaticBuildOptions) {
emptyDir(astroConfig.dist, new Set('.git')); emptyDir(astroConfig.dist, new Set('.git'));
// Build your project (SSR application code, assets, client JS, etc.) // 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); await clientBuild(opts, internals, jsInput);
// SSG mode, generate pages. // SSG mode, generate pages.
@ -204,7 +204,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
}, },
}, },
// must match an esbuild target // must match an esbuild target
target: 'esnext', target: 'esnext',
// improve build performance // improve build performance
minify: false, minify: false,
polyfillModulePreload: false, polyfillModulePreload: false,
@ -305,7 +305,7 @@ async function generatePages(result: RollupOutput, opts: StaticBuildOptions, int
for (let output of result.output) { for (let output of result.output) {
if (chunkIsPage(opts.astroConfig, output, internals)) { if (chunkIsPage(opts.astroConfig, output, internals)) {
await (generatePage(output as OutputChunk, opts, internals, facadeIdToPageDataMap, renderers)); await generatePage(output as OutputChunk, opts, internals, facadeIdToPageDataMap, renderers);
} }
} }
} }

View file

@ -129,7 +129,7 @@ export default function astro({ config, logging }: AstroPluginOptions): vite.Plu
return null; return null;
} }
const source = await fs.promises.readFile(id, {encoding: 'utf-8'}); const source = await fs.promises.readFile(id, { encoding: 'utf-8' });
try { try {
const transformResult = await cachedCompilation(config, id, source, viteTransform, { ssr: Boolean(opts?.ssr) }); const transformResult = await cachedCompilation(config, id, source, viteTransform, { ssr: Boolean(opts?.ssr) });