Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Conversation

@schummar
Copy link
Contributor

@schummar schummar commented Aug 5, 2022

I noticed that tsx correctly resolves to .ts files when the import ends with .js. But it does not work if the file is behind a TypeScript path alias.

This demonstrates the problem:
https://stackblitz.com/edit/node-uvmbub?file=index.ts

The proposed change works well in my project. If you agree, I can also make a corresponding PR for esm-loader

privatenumber added a commit that referenced this pull request Aug 7, 2022
@privatenumber
Copy link
Member

Sounds good, thanks @schummar

@privatenumber privatenumber changed the base branch from develop to test-17 August 7, 2022 20:18
@privatenumber privatenumber merged commit dd3b211 into esbuild-kit:test-17 Aug 7, 2022
@schummar schummar deleted the resolveJsInPathAlias branch August 8, 2022 13:12
@schummar
Copy link
Contributor Author

schummar commented Aug 8, 2022

Works nicely. Thx!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants