Skip to content

Commit 1e98438

Browse files
authoredDec 18, 2023
Fix import dev toolbar apps on windows (#9400)
1 parent 1d33bcc commit 1e98438

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

‎.changeset/modern-humans-think.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fixes importing dev toolbar apps from integrations on Windows

‎packages/astro/src/vite-plugin-dev-overlay/vite-plugin-dev-overlay.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function astroDevOverlay({ settings }: AstroPluginOptions): vite.
1717
return `
1818
export const loadDevOverlayPlugins = async () => {
1919
return [${settings.devToolbarApps
20-
.map((plugin) => `(await import('${plugin}')).default`)
20+
.map((plugin) => `(await import(${JSON.stringify(plugin)})).default`)
2121
.join(',')}];
2222
};
2323
`;

0 commit comments

Comments
 (0)
Please sign in to comment.