typed-ember / glint

TypeScript powered tooling for Glimmer templates
https://typed-ember.gitbook.io/glint
MIT License
109 stars 51 forks source link

Glint accidentally resolves local file over package name containing ".js" #724

Open ef4 opened 3 months ago

ef4 commented 3 months ago

If you have an import like import * from "chess.js", tsc correctly treats this as a package dependency. But using glint, if you also have a local file named "chess.gts", glint resolves the import to the local file.

It should probably be checking that the import specifier really starts with . before attempting to do its extra extension resolving.