๐ก๐ฒ๐๐.๐ท๐ ๐ญ๐ฎ ๐ฃ๐ฟ๐ฒ๐๐ถ๐ฒ๐ ๐๐ ๐๐ฒ๐ฟ๐ฒ!
NestJS 12 is coming. It adds Native ESM support.
I tested it. I ran a benchmark. I compared NestJS 11 on CommonJS and NestJS 12 on Native ESM.
I measured three things:
- Startup time
- Memory use
- Heap usage
The result: No difference.
Startup times are the same. Memory use stays the same. The V8 engine parses ESM differently. It does not lower your RAM use.
Do not expect lower server bills. Performance stays the same.
Why move to NestJS 12? Modern JavaScript libraries use ESM. This move lets you use those libraries. It removes old config debt. It makes your project future proof.
Will you move your projects to ESM?
Source: https://dev.to/worknbuyconsumendie/nestjs-12-preview-is-here-4jdf