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

贡献者指南