Skip to content

Fix documentation that seems to imply baseUrl does something it doesn't #51267

@RyanCavanaugh

Description

@RyanCavanaugh
    > If you get tired of imports always looking like "../" or "./", or needing to change them as you move files, this is a great way to fix that.

This text is one of my biggest pet peeves in the documentation. It's described as if it's some convenience feature that TS will take care of for you, but in reality it only works if your runtime environment also understands it, because TS emits the import paths you use verbatim.

Originally posted by @fatcerberus in #51260 (comment)

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptDocsThe issue relates to how you learn TypeScriptHelp WantedYou can do this

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions