Description
Vite only reads tsconfig.json when resolve.tsconfigPaths is set to true. It might be worth considering jsconfig.json as a fallback when no tsconfig.json is found. This would be more convenient for JS users.
Suggested solution
Search for tsconfig.json first. If it is not found, try falling back to jsconfig.json.
Alternative
A jsconfigPaths option?
Additional context
Reference: https://github.com/privatenumber/get-tsconfig
Validations
Description
Vite only reads
tsconfig.jsonwhenresolve.tsconfigPathsis set to true. It might be worth consideringjsconfig.jsonas a fallback when notsconfig.jsonis found. This would be more convenient for JS users.Suggested solution
Search for
tsconfig.jsonfirst. If it is not found, try falling back tojsconfig.json.Alternative
A
jsconfigPathsoption?Additional context
Reference: https://github.com/privatenumber/get-tsconfig
Validations