next.js
67bb800f - Don't start worker for Typescript when only doing config validation (#90504)

Commit
8 days ago
Don't start worker for Typescript when only doing config validation (#90504) Only start a Worker for typescript when type checking is actually enabled. When only validating the config (which doesn't load the `typescript` package itself, just invoke it in-process) testing with `pnpm next build bench/app-router-server` and `module.exports = {typescript: {ignoreBuildErrors: true}}` `startTypeChecking: Xms` is a `console.time` and `console.timeEnd` around `startTypeChecking` before: ``` ✓ Finished TypeScript config validation in 82ms startTypeChecking: 85.19ms ✓ Finished TypeScript config validation in 46ms startTypeChecking: 50.084ms ✓ Finished TypeScript config validation in 47ms startTypeChecking: 50.882ms ``` after: ``` ✓ Finished TypeScript config validation in 1ms startTypeChecking: 5.281ms ✓ Finished TypeScript config validation in 1ms startTypeChecking: 4.797ms ✓ Finished TypeScript config validation in 1ms startTypeChecking: 4.697ms ```
Author
Parents
Loading