Skip to content

Mention that there's no rewriting in the tsconfig #2281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/tsconfig-reference/copy/en/options/baseUrl.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ import { helloWorld } from "hello/world";
console.log(helloWorld);
```

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.
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. It is expected that you have a runtime or bundler which could handle the paths as given, TypeScript does not edit the paths in your imports.
2 changes: 1 addition & 1 deletion packages/tsconfig-reference/copy/en/options/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ display: "Paths"
oneline: "Specify a set of entries that re-map imports to additional lookup locations."
---

A series of entries which re-map imports to lookup locations relative to the [`baseUrl`](#baseUrl). There is a larger coverage of `paths` in [the handbook](/docs/handbook/module-resolution.html#path-mapping).
A series of entries which re-map imports to lookup locations relative to the [`baseUrl`](#baseUrl). There is a larger coverage of `paths` in [the handbook](/docs/handbook/module-resolution.html#path-mapping). It is expected that you have a runtime or bundler which could handle the paths as given, TypeScript does not edit the paths in your imports.

`paths` lets you declare how TypeScript should resolve an import in your `require`/`import`s.

Expand Down