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
Favna3mo ago
It does yes
Favna
Favna3mo 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
danOP3mo ago
Ah I see, I just need to use esm then
Favna
Favna3mo ago
I think it's rather a matter of tsconfig but using esm is always a good idea if you can
dan
danOP3mo 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