Types files have capitals in them, leading to them being unreferenceable downstream #13309
Closed
7 tasks done
Labels
p3-downstream-blocker
Blocking the downstream ecosystem to work properly (priority)
Milestone
Describe the bug
TypeScript has a long-standing issue where files with capitals in them cannot be referenced in triple slashes directives on certain OSes: microsoft/TypeScript#45096. Unfortunately, this mean that downstream frameworks like Astro who cannot use Vite's client types (due to conflicting declarations) cannot re-use Vite's types for
import.meta
. (though this issue also applies to the other types). In Astro especially, this has lead us to having to maintain a copy of the import meta types: https://github.com/withastro/astro/blob/main/packages/astro/import-meta.d.tsI sent a PR to fix this a long time ago: #9827, but it was refused and superseded by another PR that ended up getting reverted. Getting us back to square one, ha!
Reproduction
N/A
Steps to reproduce
/// <reference types="vite/types/importMeta" />
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: