diff --git a/src/plugin.ts b/src/plugin.ts index ab7a1f1d..ccb2b300 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -247,7 +247,7 @@ export class Plugin implements IPlugin { try { m = require(p) } catch (err) { - if (err.code === 'MODULE_NOT_FOUND') return + if (!opts.must && err.code === 'MODULE_NOT_FOUND') return throw err } const cmd = search(m)