mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-16 05:31:14 +01:00
Fixed plugins on Windows
This commit is contained in:
1 parent
a444984aed
commit
6a5f61e84b
5 files changed
+12
-72
No files matched your search
@@ -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: [],
|
||||
|
||||
Reference in new issue
Block a user