Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

importing tsx files using their corresponding js extesions fails #7228

Closed
7 tasks done
tajo opened this issue Mar 8, 2022 · 1 comment
Closed
7 tasks done

importing tsx files using their corresponding js extesions fails #7228

tajo opened this issue Mar 8, 2022 · 1 comment

Comments

@tajo
Copy link
Contributor

tajo commented Mar 8, 2022

Describe the bug

This is closely related to #5510

Vite is able to import .ts files through the .js extension; however, the same doesn't work for .tsx. Should we just expand the logic in the related PR to also cover .tsx?

Reproduction

https://stackblitz.com/edit/vitejs-vite-8omet5?file=src%2FApp.tsx&terminal=dev

System Info

N/A

Used Package Manager

yarn

Logs

No response

Validations

@bluwy
Copy link
Member

bluwy commented Mar 9, 2022

Fixed in #7005

@bluwy bluwy closed this as completed Mar 9, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants