0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00

Fix import dev toolbar apps on windows (#9400)

This commit is contained in:
Bjorn Lu 2023-12-18 21:41:11 +08:00 committed by GitHub
parent 1d33bcce61
commit 1e984389ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fixes importing dev toolbar apps from integrations on Windows

View file

@ -17,7 +17,7 @@ export default function astroDevOverlay({ settings }: AstroPluginOptions): vite.
return `
export const loadDevOverlayPlugins = async () => {
return [${settings.devToolbarApps
.map((plugin) => `(await import('${plugin}')).default`)
.map((plugin) => `(await import(${JSON.stringify(plugin)})).default`)
.join(',')}];
};
`;