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 7274cba commit 3663417Copy full SHA for 3663417
packages/doxdox-core/src/loader.ts
@@ -1,5 +1,7 @@
1
import { join, resolve } from 'path';
2
3
+import { pathToFileURL } from 'url';
4
+
5
import { getProjectPackage, isDirectory, isFile } from './utils.js';
6
7
/**
@@ -46,7 +48,7 @@ export const loadPluginFromFile = async <T>(
46
48
path: string
47
49
): Promise<T | null> => {
50
try {
- return (await import(resolve(path))).default;
51
+ return (await import(pathToFileURL(resolve(path)).href)).default;
52
} catch (err: any) {
53
if (process.env.DEBUG) {
54
console.error(err);
0 commit comments