Skip to content

Commit 14cd5b4

Browse files
twlitedlhck
andauthored
fix(dashboard): incorrect extension import path generation on windows (#3915)
Co-authored-by: David Höck <[email protected]>
1 parent 62d5ddb commit 14cd5b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/dashboard/vite/vite-plugin-dashboard-metadata.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from 'path';
2+
import { pathToFileURL } from 'node:url';
23
import { Plugin } from 'vite';
34

45
import { CompileResult } from './utils/compiler.js';
@@ -63,7 +64,7 @@ export function dashboardMetadataPlugin(): Plugin {
6364
export async function runDashboardExtensions() {
6465
${pluginsWithExtensions
6566
.map(extension => {
66-
return `await import(\`${extension}\`);`;
67+
return `await import(\`${pathToFileURL(extension)}\`);`;
6768
})
6869
.join('\n')}
6970
}`;

0 commit comments

Comments
 (0)