From e118b8a91d0a56799d90bfb712e8c3aaaa7f49fe Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 19 May 2022 12:39:11 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/build/vite-plugin-ssr.ts | 12 +++++++----- packages/astro/test/test-utils.js | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/astro/src/core/build/vite-plugin-ssr.ts b/packages/astro/src/core/build/vite-plugin-ssr.ts index f7e7301156..35d95e6a26 100644 --- a/packages/astro/src/core/build/vite-plugin-ssr.ts +++ b/packages/astro/src/core/build/vite-plugin-ssr.ts @@ -69,13 +69,15 @@ if(_start in adapter) { return void 0; }, async generateBundle(_opts, bundle) { - const staticFiles = new Set(await glob('**/*', { - cwd: fileURLToPath(buildOpts.buildConfig.client), - })); + const staticFiles = new Set( + await glob('**/*', { + cwd: fileURLToPath(buildOpts.buildConfig.client), + }) + ); // Add assets from this SSR chunk as well. - for(const [_chunkName, chunk] of Object.entries(bundle)) { - if(chunk.type === 'asset') { + for (const [_chunkName, chunk] of Object.entries(bundle)) { + if (chunk.type === 'asset') { staticFiles.add(chunk.fileName); } } diff --git a/packages/astro/test/test-utils.js b/packages/astro/test/test-utils.js index 1e6ec60f1d..8b4e9d3100 100644 --- a/packages/astro/test/test-utils.js +++ b/packages/astro/test/test-utils.js @@ -138,7 +138,7 @@ export async function loadFixture(inlineConfig) { loadTestAdapterApp: async () => { const url = new URL('./server/entry.mjs', config.outDir); const { createApp, manifest } = await import(url); - const app =createApp(); + const app = createApp(); app.manifest = manifest; return app; },