Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97371

Tell VS Code to always use relative paths for TypeScript auto imports?

$
0
0

VS Code is auto-importing everything relative to baseUrl using Node-like non-relative paths, which is what I don't want.

How do I tell VS Code to import everything with relative paths (except for Node modules of course)?

Removing the baseUrl option is not an option because I need it in order to point fs imports at a local polyfill of the fs module.

My tsconfig.json has this:

"baseUrl": "./",
        "paths": {
            "fs/*": [ "./src/util/FileSystem/*" ]
        }

If there's no other way other than removing the baseUrl option, then that doesn't do any good!


Viewing all articles
Browse latest Browse all 97371

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>