Like choosing the language edition for a translated document — ES2022 is modern English, ES5 is formal Victorian.
target: ES2022 means TypeScript can emit modern JS syntax (optional chaining, nullish coalescing). module: NodeNext uses Node 18+ ESM with proper import/export.
> target: ES2022 → async/await, ?? operator emitted natively > module: NodeNext → import/export syntax, .js extensions required
Like choosing the language edition for a translated document — ES2022 is modern English, ES5 is formal Victorian.
target: ES2022 means TypeScript can emit modern JS syntax (optional chaining, nullish coalescing). module: NodeNext uses Node 18+ ESM with proper import/export.
> target: ES2022 → async/await, ?? operator emitted natively > module: NodeNext → import/export syntax, .js extensions required
Sign in to cast your vote
Sign in to share your feedback and join the discussion.