-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified
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
tonygiang and timreichenMartinJohns
Metadata
Metadata
Assignees
Labels
Needs More InfoThe issue still hasn't been fully clarifiedThe issue still hasn't been fully clarified