Created
November 15, 2018 13:13
-
-
Save luizcarraro/3381151975969af9135856eaaec5fa78 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
'use strict'; | |
let path = require('path'); | |
module.exports = function() { | |
global.rootRequire = function(name) { | |
return require(path.normalize(`${__dirname}/../${name}`)); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment