Closed gustavopch closed 3 months ago
Yes, you're right. This is the correct thing to do in native ESM as well. I would welcome a PR to fix this!
:tada: This issue has been resolved in version 1.3.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
That's necessary for full compatibility with ESM in TypeScript when using
"moduleResolution": "NodeNext"
.When the import doesn't have the extension, TypeScript can't properly resolve it:
After I manually add the extension, you can see now it resolves correctly:
TypeScript doesn't modify the paths used in the imports when compiling, so it's really a matter of adding the extension to all imports in the source code.