Closed ljharb closed 9 months ago
Seems like it could be a bug detecting packed files locally. I'll have to check that once I get to my laptop.
It seems like you're not using the node resolution algorithm on the main
value before checking for the file's existence.
I was checking the packed files wrongly that lead to the bug that's fixed in the commit.
I doubt it's that simple, since another package has ./
and it wasn't working, but I'll test with this release.
You can try with v0.2.5
seems good, i haven't found one that breaks yet.
I have a package, function-bind, that has "main" set to "index" - which node properly resolves to "index.js". However, I get: