We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
a.ts
import './b.js'
b.ts
console.log('hello from imported')
tsx a.ts results in an error that b.js cannot be found.
tsx a.ts
Expected behavior: Resolve and transpile b.ts when importing as b.js
Additional info: similar issue that was resolved in vite repo: vitejs/vite#6671 info in typescript repo why this is expected to work: microsoft/TypeScript#46452
This used to work in esmo, discovered it didn't when switching to tsx in vite-ecosystem-ci, workaround was to use b.ts instead for importing.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
a.ts
b.ts
tsx a.ts
results in an error that b.js cannot be found.Expected behavior:
Resolve and transpile b.ts when importing as b.js
Additional info:
similar issue that was resolved in vite repo: vitejs/vite#6671
info in typescript repo why this is expected to work: microsoft/TypeScript#46452
This used to work in esmo, discovered it didn't when switching to tsx in vite-ecosystem-ci, workaround was to use
b.ts
instead for importing.The text was updated successfully, but these errors were encountered: