mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
[ci] format
This commit is contained in:
parent
0c9f770e8a
commit
e118b8a91d
2 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue