This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace string magic + path.join by path.resolve
Because path.resolve is more elegant and windows-safe.
- Loading branch information
1 parent
dea2331
commit 1ac133e
Showing
2 changed files
with
12 additions
and
18 deletions.
There are no files selected for viewing
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
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
1ac133e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch changes the behavior of the loading system, I am not sure if it was intended but if you have file.js test.js test/index.js files and you require('./test/') from file.js the behavior before the patch was to find test/index.js after this it hits the test.js instead.
https://gist.github.com/798551