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:
parent
1d33bcce61
commit
1e984389ba
2 changed files with 6 additions and 1 deletions
5
.changeset/modern-humans-think.md
Normal file
5
.changeset/modern-humans-think.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fixes importing dev toolbar apps from integrations on Windows
|
|
@ -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(',')}];
|
||||
};
|
||||
`;
|
||||
|
|
Loading…
Reference in a new issue