-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flow][get-def] Use the same heuristic for get-def in require expression
Summary: This diff applies the same heuristics in the previous diff to require expression. The def loc is recorded in the reason of the literal expression. Changelog: [ide] Go-to-definition for `require('...')` expression will now jump to the default export of an ESM module if available, or the first export of an ESM module. Reviewed By: panagosg7 Differential Revision: D67875257 fbshipit-source-id: 3d1a47555d448c3872063ee6d2c349e3c64ebd17
- Loading branch information
1 parent
8237ea2
commit 5f0fb3c
Showing
4 changed files
with
46 additions
and
35 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
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