NestJS · Middle · Question 69 of 75
What's the purpose of nest build with webpack or SWC in production?
- 1Create a Docker image automatically
- 2Minify the database
- ✓Correct answer: Compile TypeScript to JavaScript (optionally bundled) so production runs
node dist/main.js, notts-node
Explanation
Running TypeScript directly in production adds startup cost and dev-only dependencies.