Last active
July 1, 2016 11:53
-
-
Save apaleslimghost/d6c0d2ba3e343a6300bff05bfe010b0d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import findParentDir from 'find-parent-dir'; | |
import path from 'path'; | |
module.exports = function(filename, dirname) { | |
return require(path.resolve(findParentDir.sync(dirname || __dirname, filename), filename)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment