TypeScript Version: 4.0.2
Search Terms: go to definition javascript
Code
'use strict'
// javascript file.
const uuid = require('uuid')
Expected behavior:
When I hit Go to definition with F12 on uuid it goes to the source code.

This works fine for JavaScript because tsconfig.json does not exist.
Actual behavior:
When I hit Go to definition with F12 it does not do anything useful.

This is because a tsconfig.json file exists in my JavaScript project.
Playground Link:
Related Issues: