diff --git a/src/next-transpile-modules.js b/src/next-transpile-modules.js index b86ba61..ec809c4 100644 --- a/src/next-transpile-modules.js +++ b/src/next-transpile-modules.js @@ -122,7 +122,7 @@ const withTmInitializer = (modules = [], options = {}) => { */ const getPackageRootDirectory = (module) => { try { - packageLookupDirectory = resolve(CWD, path.join(module, 'package.json')); + const packageLookupDirectory = resolve(CWD, path.join(module, 'package.json')); return path.dirname(packageLookupDirectory); } catch (err) { throw new Error(