Skip to content

Commit

Permalink
Merge pull request #35 from rkgrep/patch-1
Browse files Browse the repository at this point in the history
Fix webpack build issue
  • Loading branch information
inxilpro committed Oct 28, 2019
2 parents 0a82d1c + 5b8c46a commit 9e8c297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resolve.js
Expand Up @@ -108,7 +108,7 @@ module.exports = function resolve(dirname) {
// If the above didn't work, or this module is loaded globally, then
// resort to require.main.filename (See http://nodejs.org/api/modules.html)
if (alternateMethod || null == appRootPath) {
appRootPath = path.dirname(require.main.filename);
appRootPath = path.dirname(requireFunction.main.filename);
}

// Handle global bin/ directory edge-case
Expand Down

0 comments on commit 9e8c297

Please sign in to comment.