glint icon indicating copy to clipboard operation
glint copied to clipboard

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

Open ef4 opened this issue 1 year ago • 0 comments

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.

ef4 avatar Jun 12 '24 15:06 ef4