mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-12 11:01:45 +00:00
feat: migrate to new plugin api
Co-authored-by: Su-Yong <simssy2205@gmail.com>
This commit is contained in:
@ -27,7 +27,7 @@ export const pluginVirtualModuleGenerator = (mode: PluginType) => {
|
||||
.filter(({ name, path }) => {
|
||||
if (name.startsWith('utils')) return false;
|
||||
|
||||
return existsSync(resolve(path, `${mode}.ts`));
|
||||
return existsSync(resolve(path, `${mode}.ts`)) || (mode !== 'index' && existsSync(resolve(path, `${mode}`, 'index.ts')));
|
||||
});
|
||||
|
||||
console.log('converted plugin list');
|
||||
|
||||
Reference in New Issue
Block a user