privatenumber / tsx

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

Read jsconfig.json when running .jsx files? #259

Open huseeiin opened 1 year ago

huseeiin commented 1 year ago

Feature request

Read jsconfig.json when running .js/.jsx files.

Why?

Having to rename every .jsx file to .tsx when using preact/solid/inferno just for the jsx pragma to work is a waste of time especially when in most cases its the exact same script/logic.

Alternatives

Additional context

No response

privatenumber commented 1 year ago

What configuration in the jsconfig.json would you like to passed in to tsx?

privatenumber commented 2 months ago

I think this should be looked up as a fallback if tsconfig.json doesn't exist for paths aliasing