0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00

[ci] format

This commit is contained in:
matthewp 2022-05-19 12:39:11 +00:00 committed by github-actions[bot]
parent 0c9f770e8a
commit e118b8a91d
2 changed files with 8 additions and 6 deletions

View file

@ -69,13 +69,15 @@ if(_start in adapter) {
return void 0; return void 0;
}, },
async generateBundle(_opts, bundle) { async generateBundle(_opts, bundle) {
const staticFiles = new Set(await glob('**/*', { const staticFiles = new Set(
cwd: fileURLToPath(buildOpts.buildConfig.client), await glob('**/*', {
})); cwd: fileURLToPath(buildOpts.buildConfig.client),
})
);
// Add assets from this SSR chunk as well. // Add assets from this SSR chunk as well.
for(const [_chunkName, chunk] of Object.entries(bundle)) { for (const [_chunkName, chunk] of Object.entries(bundle)) {
if(chunk.type === 'asset') { if (chunk.type === 'asset') {
staticFiles.add(chunk.fileName); staticFiles.add(chunk.fileName);
} }
} }

View file

@ -138,7 +138,7 @@ export async function loadFixture(inlineConfig) {
loadTestAdapterApp: async () => { loadTestAdapterApp: async () => {
const url = new URL('./server/entry.mjs', config.outDir); const url = new URL('./server/entry.mjs', config.outDir);
const { createApp, manifest } = await import(url); const { createApp, manifest } = await import(url);
const app =createApp(); const app = createApp();
app.manifest = manifest; app.manifest = manifest;
return app; return app;
}, },