Skip to content

Commit

Permalink
Fix import dev toolbar apps on windows (#9400)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Dec 18, 2023
1 parent 1d33bcc commit 1e98438
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/modern-humans-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes importing dev toolbar apps from integrations on Windows
Original file line number Diff line number Diff line change
Expand Up @@ -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(',')}];
};
`;
Expand Down

0 comments on commit 1e98438

Please sign in to comment.