#bun and nest work 100%?
2 messages · Page 1 of 1 (latest)
NestJS can run with Bun, and compatibility has significantly improved, especially since Bun v1.0.3, which introduced support for emitDecoratorMetadata. This feature is essential for NestJS as it heavily relies on decorators for dependency injection and other functionalities.
While core NestJS packages are expected to work well with Bun, some features might still be missing, and users could encounter edge cases with certain packages. There have been reports of potential issues with the build process, although development environments generally function effectively. Additionally, using bun start on a new NestJS project might still execute with Node.js due to the Nest CLI's Node shebang.
For optimal performance and a seamless developer experience, some users have created starter templates that specifically leverage Bun's runtime and API, indicating that while direct compatibility is strong, specific configurations might be beneficial for full optimization.