Microsoft/TypeScript

Suggestion: case-sensitive imports

Open

#21,736 创建于 2018年2月7日

在 GitHub 查看
 (29 评论) (73 反应) (0 负责人)TypeScript (6,726 fork)batch import
Effort: ModerateHelp WantedSuggestion

仓库指标

Star
 (48,455 star)
PR 合并指标
 (平均合并 6天 17小时) (30 天内合并 9 个 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

贡献者指南