From ff6c9490a03273db8702b1456eff8697470a6626 Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Mon, 6 Jun 2022 13:28:30 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/dev/index.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/astro/src/core/dev/index.ts b/packages/astro/src/core/dev/index.ts index 8a148d5ce6..08971856e2 100644 --- a/packages/astro/src/core/dev/index.ts +++ b/packages/astro/src/core/dev/index.ts @@ -37,18 +37,20 @@ export default async function dev(config: AstroConfig, options: DevOptions): Pro const { host, port } = config.server; // load client runtime scripts ahead-of-time to fix "isSelfAccepting" bug during HMR - const clientRuntimeScripts = await glob(new URL('../../runtime/client/*.js', import.meta.url).pathname); + const clientRuntimeScripts = await glob( + new URL('../../runtime/client/*.js', import.meta.url).pathname + ); const clientRuntimeFilePaths = clientRuntimeScripts - .map(script => `astro/client/${path.basename(script)}`) + .map((script) => `astro/client/${path.basename(script)}`) // fixes duplicate dependency issue in monorepo when using astro: "workspace:*" - .filter(filePath => filePath !== 'astro/client/hmr.js'); + .filter((filePath) => filePath !== 'astro/client/hmr.js'); const viteConfig = await createVite( { mode: 'development', server: { host }, optimizeDeps: { include: clientRuntimeFilePaths, - } + }, }, { astroConfig: config, logging: options.logging, mode: 'dev' } );