Support for bun

Does sapphire support bun out of the box? While trying to run the code (without compiling, aka directly through bun) I get multiple errors saying a compatible class export can't be found... I'm assuming this means the code has to be compiled first but If I'm wrong let me know.
5 Replies
Favna
Favna2mo ago
It does yes
Favna
Favna2mo ago
GitHub
GitHub - sapphiredev/bun-example: An example of how to setup a Sapp...
An example of how to setup a Sapphire project with bun - sapphiredev/bun-example
dan
dan2mo ago
Ah I see, I just need to use esm then
Favna
Favna2mo ago
I think it's rather a matter of tsconfig but using esm is always a good idea if you can
dan
dan2mo ago
Yeah It was related to both tsconfig and esm lol. I've always stuck with commonjs but Ig it's time to switch to esm
Want results from more Discord servers?
Add your server