-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefer Node's core modules over file modules (#60)
This commit makes this resolver behave like Node does [0]: "Core modules are always preferentially loaded if their identifier is passed to require()" Additionally this increases performance by avoiding unnecessary disk access. For example webpack calls require("crypto") in a loop. This commit fixes #56. [0]: https://nodejs.org/api/modules.html#modules_core_modules
- Loading branch information
Showing
1 changed file
with
50 additions
and
5 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