diff --git a/src/plugins/plugin.ts b/src/plugins/plugin.ts index 7b0a744c5..fb02c5638 100644 --- a/src/plugins/plugin.ts +++ b/src/plugins/plugin.ts @@ -77,8 +77,10 @@ function setIndex(args: any[], opts: any = {}, resolve?: Function, reject?: Func } else { // Otherwise, let's tack them on to the end of the argument list // which is 90% of cases - args.push(resolve); - args.push(reject); + if (!opts.sync) { + args.push(resolve); + args.push(reject); + } } return args; }