diff --git a/bin/src/runRollup.js b/bin/src/runRollup.js index 7299d07..ff89f41 100644 --- a/bin/src/runRollup.js +++ b/bin/src/runRollup.js @@ -99,7 +99,7 @@ function execute ( options, command ) { typeof options.external === 'function' ? ((fn, a) => { return function (id) { - return fn() || a.indexOf(id) !== -1; + return fn(id) || a.indexOf(id) !== -1; }; })(options.external, command.external.split(',')) : (options.external || []).concat(command.external.split(',')) :