I'm currently working on customizing a library by modifying its source code. I've downloaded the source code and now I'm trying to configure vscode, typescript, and webpack to recognize that file.
Although I've successfully aliased the library in webpack, vscode doesn't seem to prioritize the files
property in the tsconfig.json
and keeps defaulting to the node_modules
.
For example, when I try to ctrl+click on an import like
import {myModule} from "myModule/breh"
with a tsconfig
setup similar to this
"baseUrl": "src",
"paths": {
"myModule/*": ["myModule/src/*"]
}
it still directs me to the node_modules
folder instead of the correct path.
The actual location of the library is under src/myModule/src
.