Microsoft/TypeScript

Suggestion: case-sensitive imports

Open

#21.736 geöffnet am 7. Feb. 2018

Auf GitHub ansehen
 (29 Kommentare) (73 Reaktionen) (0 zugewiesene Personen)TypeScript (6.726 Forks)batch import
Effort: ModerateHelp WantedSuggestion

Repository-Metriken

Stars
 (48.455 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (9 gemergte PRs in 30 T)

Beschreibung

TypeScript Version: 2.7.0-dev.201xxxxx

My mac does not have case sensitive imports. That is you can import the file x.js as ./X.js and everything will work. However, our servers run on linux (like most) and I got a runtime exception that took down the whole server because linux imports are case sensitive.

I think this would be an awesome addition to Typescript to prevent fatal mistakes that are hard to catch like this one.

Related Issues:

https://github.com/Microsoft/TypeScript/issues/14460

Contributor Guide