From 0badde7eac775a61ced4850a818ff0cfd1a0b352 Mon Sep 17 00:00:00 2001 From: avivkeller Date: Tue, 23 Jun 2026 10:26:37 -0400 Subject: [PATCH 1/2] repl: add experimental TypeScript support Signed-off-by: avivkeller --- doc/api/cli.md | 10 ++++ lib/internal/main/check_syntax.js | 6 ++- lib/internal/modules/typescript.js | 1 + lib/repl.js | 67 ++++++++++++++++++--------- src/node_options.cc | 4 ++ src/node_options.h | 1 + test/parallel/test-repl-typescript.js | 15 ++++++ 7 files changed, 81 insertions(+), 23 deletions(-) create mode 100644 test/parallel/test-repl-typescript.js diff --git a/doc/api/cli.md b/doc/api/cli.md index 79f02ee5eddd86..c2d81e2ff0a6eb 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -1362,6 +1362,16 @@ added: Enable experimental support for the QUIC protocol. +### `--experimental-repl-typescript` + + + +> Stability: 1.2 - Release candidate + +Enable experimental support for TypeScript stripping in the REPL. + ### `--experimental-sea-config`