From 91029b89a2179598e1fb38f3c9f30a018c42b968 Mon Sep 17 00:00:00 2001 From: Tommy Leunen Date: Thu, 30 Mar 2017 16:48:28 -0700 Subject: [PATCH] fix: Fix build --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 3560095..3ea378f 100644 --- a/src/index.js +++ b/src/index.js @@ -41,7 +41,8 @@ exports.interfaceVersion = 2; * @param {object} options - the resolver options * @return {object} */ -exports.resolve = (source, file, options = {}) => { +exports.resolve = (source, file, opts) => { + const options = opts || {}; if (resolve.isCore(source)) return { found: true, path: null }; const projectRootDir = path.dirname(pkgUp.sync(file));