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
It does yes
https://github.com/sapphiredev/bun-example here is an example
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
Ah I see, I just need to use esm then
I think it's rather a matter of tsconfig but using esm is always a good idea if you can
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