wrap plugin indexer in try/catch block
@@ -1216,9 +1216,13 @@ export function index(
if (plugins) {
for (const plugin of plugins) {
+ try {
plugin.index(
(path: string) => getFileVName(path, pathVNames, vname), paths,
program, emit);
+ } catch (err) {
+ console.error(`Plugin ${plugin.name} errored: ${err}`);
+ }
}
}
}
