Microsoft/TypeScript

Suggestion: case-sensitive imports

オープン

#21,736 opened on 2018/02/07

 (29 件のコメント) (73 件のリアクション) (0 人の担当者)TypeScript (13,395 件のフォーク)batch import
Effort: ModerateHelp WantedSuggestion

Repository metrics

Stars
 (108,860 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド