[ci] format

This commit is contained in:
matthewp 2022-04-14 16:20:04 +00:00 committed by github-actions[bot]
parent 1687009f31
commit 0f071a9723
3 changed files with 8 additions and 10 deletions

View file

@ -102,7 +102,7 @@ export function trackClientOnlyPageDatas(
internals: BuildInternals,
pageData: PageBuildData,
clientOnlys: string[],
astroConfig: AstroConfig,
astroConfig: AstroConfig
) {
for (const clientOnlyComponent of clientOnlys) {
const coPath = viteID(new URL('.' + clientOnlyComponent, astroConfig.root));
@ -117,8 +117,6 @@ export function trackClientOnlyPageDatas(
}
}
export function* getPageDatasByChunk(
internals: BuildInternals,
chunk: RenderedChunk

View file

@ -152,7 +152,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
rollupPluginAstroBuildCSS({
internals,
legacy: false,
target: 'server'
target: 'server',
}),
...(viteConfig.plugins || []),
// SSR needs to be last
@ -223,7 +223,7 @@ async function clientBuild(
rollupPluginAstroBuildCSS({
internals,
legacy: false,
target: 'client'
target: 'client',
}),
...(viteConfig.plugins || []),
],

View file

@ -29,5 +29,5 @@ describe('Client only components', () => {
const html = await fixture.readFile('/index.html');
const $ = cheerioLoad(html);
expect($('link[rel=stylesheet]')).to.have.lengthOf(2);
})
});
});