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-06-10 16:40:13 +00:00 committed by github-actions[bot]
parent 614769a39b
commit 72587eccc5

View file

@ -1,7 +1,5 @@
import type { AstroTelemetry } from '@astrojs/telemetry';
import glob from 'fast-glob';
import type { AddressInfo } from 'net';
import path from 'path';
import { performance } from 'perf_hooks';
import * as vite from 'vite';
import type { AstroConfig } from '../../@types/astro';
@ -38,7 +36,9 @@ export default async function dev(config: AstroConfig, options: DevOptions): Pro
// The client entrypoint for renderers. Since these are imported dynamically
// we need to tell Vite to preoptimize them.
const rendererClientEntries = config._ctx.renderers.map(r => r.clientEntrypoint).filter(Boolean) as string[];
const rendererClientEntries = config._ctx.renderers
.map((r) => r.clientEntrypoint)
.filter(Boolean) as string[];
const viteConfig = await createVite(
{
@ -51,7 +51,7 @@ export default async function dev(config: AstroConfig, options: DevOptions): Pro
'astro/client/visible.js',
'astro/client/media.js',
'astro/client/only.js',
...rendererClientEntries
...rendererClientEntries,
],
},
},