Microsoft/TypeScript

Suggestion: case-sensitive imports

開放

#21,736 建立於 2018年2月7日

 (29 則留言) (73 個反應) (0 位負責人)TypeScript (13,395 個分叉)batch import
Effort: ModerateHelp WantedSuggestion

倉庫指標

星標
 (108,860 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南