Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/nx/bin/nx.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/usr/bin/env node

// V8 module-compilation cache (Node 22.8+). Skips the parse + compile step
// for nx's JS modules on subsequent runs, saving ~15ms median wall time on
// the hot bootstrap path. No-op on older Node and on first run.
try {
require('module').enableCompileCache?.();
} catch {}

// TODO: Remove this workaround once picocolors handles FORCE_COLOR=0 correctly
// See: https://github.com/alexeyraspopov/picocolors/issues/100

Expand Down
Loading