Reputation: 211
I am currently having a project that uses nestjs and I was wondering how compatible is it with bun 1.0. I haven't found a clear answer on the internet and I don't want to transfer my project on bun just to end up on a dead end because of compatibility problems.
This is a small project that uses react and mongodb for the moment but I plan on using the built-in support of sqlite from bun.
I've already tried to use bun on the project and I can install the modules that I am currently using but I am scared of how far is it going. I haven't had the time to test everything so if I can get some info that would be nice.
Upvotes: 20
Views: 22319
Reputation: 386
Update: It works now, except the build part. They are working on it. But I've got to say I'm becoming a fan of that developer's dedication.
Bun doesn't support emitDecoratorMetadata
feature in typescript (yet?) which is required for NestJS because most dependency, pipes, guards all use Decorators in Nest. Also bun don't do type checking but that's an easy fix. Keep a watch on this GH Issue. Maybe someone will work on it and provide a solution since Bun did show NestJS Logo on the video.
But if you just want faster reloads, NestJS + SWC is pretty good.
Upvotes: 24