Skip to content

Commit

Permalink
fix require
Browse files Browse the repository at this point in the history
  • Loading branch information
billywhizz committed Dec 18, 2020
1 parent 276438a commit 8b21660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion just.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function wrapRequire (cache = {}) {
if (path[0] === '/') path = path.slice(1)
module.text = just.builtin(path)
if (!module.text) {
path = `${justDir}/${path.replace('lib/', 'libs/')}`
path = `${justDir}/${path}`
if (!just.fs.isFile(path)) return
module.text = just.fs.readFile(path)
if (!module.text) return
Expand Down

0 comments on commit 8b21660

Please sign in to comment.