Skip to content

Commit

Permalink
added a note about hasteImplModulePath
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Nov 24, 2022
1 parent 5346697 commit ce91723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/metro-resolver-symlinks/src/utils/patchMetro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ function getModuleResolver() {
* cases, like on CI, we can even set `watchFolders` to an empty array to limit
* watched files to the current package only.
*
* Why didn't we use `hasteImplModulePath`? Contrary to the name, it doesn't
* let you replace HasteFS. As of 0.73, it is only used to retrieve the path of
* a module. The default implementation returns
* `path.relative(projectRoot, filePath)` if the entry is not found in the map.
*
* @param options Options passed to Metro
*/
export function patchMetro({
Expand Down

0 comments on commit ce91723

Please sign in to comment.