summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bholmesdev <bholmesdev@users.noreply.github.com> 2022-06-06 13:28:30 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-06-06 13:28:30 +0000
commitff6c9490a03273db8702b1456eff8697470a6626 (patch)
tree71f155707552e6e59110e9a72ebb59eed9f23ef6
parent85b905495d4bc538686109e056a821e35139c111 (diff)
downloadastro-ff6c9490a03273db8702b1456eff8697470a6626.tar.gz
astro-ff6c9490a03273db8702b1456eff8697470a6626.tar.zst
astro-ff6c9490a03273db8702b1456eff8697470a6626.zip
[ci] format
-rw-r--r--packages/astro/src/core/dev/index.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/packages/astro/src/core/dev/index.ts b/packages/astro/src/core/dev/index.ts
index 8a148d5ce..08971856e 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' }
);