diff --git a/src/hook.js b/src/hook.js index e7a44b6..2a2a443 100644 --- a/src/hook.js +++ b/src/hook.js @@ -14,9 +14,8 @@ const pathmap = {}; // assume that file is a main process file (function addMainFile(args) { for (const opt of args) { - const optPath = path.resolve(opt); - try { + const optPath = path.resolve(opt); const file = require.resolve(optPath); pathmap[file] = true; queue({ type: 'discover', file });