chiprook
← Software
SoftwareOctober 21, 2026, 17:46

Node.js adds --experimental-strip-private-modules flag

Node.js introduced the CLI flag --experimental-strip-private-modules, which limits type stripping to packages marked private: true in package.json. The change protects public packages from losing typings and closes a loophole where private packages were hidden in nested node_modules.

Node.js adds --experimental-strip-private-modules flag
#Node.js#TypeScript
Read next
Software

NestJS 12 moves core packages to ESM, adds Standard Schema validation

Software

Vercel unveils Scriptc: TypeScript-to-native compiler with no JS engine

Software

Node 24 Runs TypeScript With No Build Step: How It Works and What It Won't Do

Software

DeepSeek Harness v0.2.1-alpha.1 Adds Experimental Claude Code Mods Compatibility Layer