privatenumber / tsx

⚡️ TypeScript Execute | The easiest way to run TypeScript in Node.js
https://tsx.is
MIT License
8.64k stars 132 forks source link

fix: source maps in Node v21.6.0+ & v20.12.0+ #518

Closed cenfun closed 3 months ago

cenfun commented 3 months ago

fix https://github.com/privatenumber/tsx/issues/506 fix https://github.com/privatenumber/tsx/issues/478 close https://github.com/privatenumber/tsx/pull/513 close https://github.com/privatenumber/tsx/pull/465

privatenumber commented 3 months ago

Can you pull in this in to see if it passes? https://github.com/privatenumber/tsx/pull/513

cenfun commented 3 months ago

I don't know how to do it, but create PR here https://github.com/privatenumber/tsx/pull/519

privatenumber commented 3 months ago

I'm curious if this would also fix:

Will investigate in a bit

cenfun commented 3 months ago

for #433 see my comments https://github.com/privatenumber/tsx/issues/433#issuecomment-2011778314

privatenumber commented 3 months ago

Thanks @cenfun—really appreciate you helping out!

Would love for us to continue collaborating in the future!

privatenumber commented 3 months ago

:tada: This issue has been resolved in v4.7.2

If you appreciate this project, please consider supporting this project by sponsoring :heart: :pray:

SuperchupuDev commented 3 months ago

this is still not working for me in some places using the node 21.7.2 test runner, from what i can see it's fixed everywhere except here (using node --import tsx --test test/*.test.ts) image

(it works everywhere else) image