News for hackers. Stuff that matters.
Re:Bun 0.3 by christophilus on Wednesday December 07, 2022 @12:54PM (#33897637)
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?

Re:Bun 0.3 by Jarred on Wednesday December 07, 2022 @01:10PM (#33897832)
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