支持 template 模板 list 模式

This commit is contained in:
muwoo 2021-12-17 18:14:56 +08:00
parent 8250dfdb59
commit 7cb78e00a8

View File

@ -14,7 +14,9 @@ const getPreloadPath = (plugin, pluginIndexPath) => {
}
return path.resolve(pluginIndexPath.replace("file:", ""), `../`, preload);
}
if (tplPath) {
return path.resolve(indexPath.replace("file:", ""), `./`, preload);
}
return path.resolve(pluginIndexPath.replace("file:", ""), `../`, preload);
};