Skip to content

Commit ba09f5b

Browse files
authored
Clarify module specifier rewriting (#350)
1 parent a916807 commit ba09f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ It's explicitly out of scope for TypeScript to modify module specifiers as they
5757
import x from "some/path";
5858
```
5959

60-
the output specifier *will always be* `"some/path"` regardless of your tsconfig settings.
60+
the output specifier *will always be* `"some/path"` regardless of your tsconfig settings (with the exception of [`rewriteRelativeImportExtensions`](https://www.typescriptlang.org/tsconfig/#rewriteRelativeImportExtensions)).
6161

6262
This includes things like changing file extensions, changing `paths` lookups to their resolutions, changing absolute paths to relative paths, changing relative paths to absolute paths, changing sub-module specifiers to something else, and so on. The string in the import path is the string in the emitted JavaScript, no exceptions.
6363

0 commit comments

Comments
 (0)