Hacker News new | ask | show | jobs
by christophilus 1286 days ago
I’ve built a few utility apps at work. I absolutely love it.

I hijacked your jsx support so that I had built in server-side templating without having to pull in any external libraries (e.g. React). The process of building my own TSX bindings was pretty trivial, but did feel like a hack (I created a React package.json entry that was a file path to my local source folder).

Is that scenario doable with less hackery?

1 comments

You can set “jsxImportSource” in tsconfig.json or jsconfig.json to point to a different jsx package

There is also a setting in bunfig.toml but it appears we haven’t documented it yet