diff --git a/src/main/browsers/runner.ts b/src/main/browsers/runner.ts index 1dd3235..0af781a 100644 --- a/src/main/browsers/runner.ts +++ b/src/main/browsers/runner.ts @@ -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); };