Closed
Description
+1
If I turn on resolveJsonModule
and put a MatchmakingConfig.ts
and a MatchmakingConfig.json
in the same path, a nasty unexpected behavior awaits:
// this results in MatchmakingConfig.json being imported, not MatchmakingConfig.ts!
import MatchmakingConfig from "./path/to/MatchmakingConfig";
Allowing .ts
suffix will let us specify .ts
files specifically.
Originally posted by @tonygiang in #37582 (comment)
Solution
Priority needs to get changed anyway .ts needs to get resolved with a higher priority then .json