Fixed plugins on Windows

This commit is contained in:
Gregory Schier
2024-07-21 16:01:13 -07:00
parent a444984aed
commit 6a5f61e84b
5 changed files with 12 additions and 72 deletions

View File

@@ -10,7 +10,7 @@ new Promise(async () => {
const pathPkg = path.join(pluginDir, 'package.json');
const pkg = JSON.parse(readFileSync(pathPkg, 'utf8'));
const mod = (await import(pathMod)).default ?? {};
const mod = (await import(`file://${pathMod}`)).default ?? {};
const info: PluginInfo = {
capabilities: [],