diff options
author | 2022-05-19 12:39:11 +0000 | |
---|---|---|
committer | 2022-05-19 12:39:11 +0000 | |
commit | e118b8a91d0a56799d90bfb712e8c3aaaa7f49fe (patch) | |
tree | 95899f8dff32606da2dcc0ba9a97c4294f2e00ee | |
parent | 0c9f770e8ab361f11549f1e24114e557fdcca65d (diff) | |
download | astro-e118b8a91d0a56799d90bfb712e8c3aaaa7f49fe.tar.gz astro-e118b8a91d0a56799d90bfb712e8c3aaaa7f49fe.tar.zst astro-e118b8a91d0a56799d90bfb712e8c3aaaa7f49fe.zip |
[ci] format
-rw-r--r-- | packages/astro/src/core/build/vite-plugin-ssr.ts | 12 | ||||
-rw-r--r-- | 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 f7e730115..35d95e6a2 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 1e6ec60f1..8b4e9d310 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; }, |