Microsoft/TypeScript

Suggestion: case-sensitive imports

Open

#21.736 aberto em 7 de fev. de 2018

Ver no GitHub
 (29 comments) (73 reactions) (0 assignees)TypeScript (6.726 forks)batch import
Effort: ModerateHelp WantedSuggestion

Métricas do repositório

Stars
 (48.455 stars)
Métricas de merge de PR
 (Mesclagem média 6d 17h) (9 fundiu PRs em 30d)

Description

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

Guia do colaborador