fix: fixed issues identified in eslint

This commit is contained in:
JellyBrick
2023-11-09 10:06:03 +09:00
parent 05564d4a58
commit 55ae9eac1e
10 changed files with 20 additions and 14 deletions

View File

@ -22,7 +22,7 @@ enabledPluginNameAndOptions.forEach(async ([plugin, options]) => {
if (Object.hasOwn(preloadPluginList, plugin)) {
const handler = preloadPluginList[plugin];
try {
await handler?.();
await handler?.(options);
} catch (error) {
console.error(`Error in plugin "${plugin}": ${String(error)}`);
}