Skip to content

Commit

Permalink
Fix: Ensure load() resolves the filepath before requiring (fixes #7)
Browse files Browse the repository at this point in the history
  • Loading branch information
silkentrance authored and phated committed Jan 3, 2019
1 parent 7726db9 commit af80b79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -28,7 +28,7 @@ exports.registerFor = function (filepath, cwd) {

exports.load = function (filepath) {
exports.registerFor(filepath);
return require(filepath);
return require(path.resolve(filepath));
};

exports.interpret = interpret;

0 comments on commit af80b79

Please sign in to comment.