We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d5ddb commit 14cd5b4Copy full SHA for 14cd5b4
packages/dashboard/vite/vite-plugin-dashboard-metadata.ts
@@ -1,4 +1,5 @@
1
import path from 'path';
2
+import { pathToFileURL } from 'node:url';
3
import { Plugin } from 'vite';
4
5
import { CompileResult } from './utils/compiler.js';
@@ -63,7 +64,7 @@ export function dashboardMetadataPlugin(): Plugin {
63
64
export async function runDashboardExtensions() {
65
${pluginsWithExtensions
66
.map(extension => {
- return `await import(\`${extension}\`);`;
67
+ return `await import(\`${pathToFileURL(extension)}\`);`;
68
})
69
.join('\n')}
70
}`;
0 commit comments