Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Resolve "fullKey is not defined" error (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
imdongchen authored and kylemh committed Sep 6, 2019
1 parent 0502572 commit a9b0bd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function context(basedir, directory, useSubdirectories = false, regExp = /^\.\//
}

function requireContext(key) {
return require(resolve(fullKey));
return require(resolve(key));
}

requireContext.keys = () => keys;
Expand Down

0 comments on commit a9b0bd0

Please sign in to comment.