summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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' }
);