From c9174a26e4f348d200d692879aea5ceb0337d9b8 Mon Sep 17 00:00:00 2001 From: avivkeller Date: Mon, 22 Jun 2026 20:42:18 -0400 Subject: [PATCH] repl: add experimental TypeScript support Adds experimental TypeScript support to the REPL, opt-in-able via the `--experimental-repl-typescript` flag. Signed-off-by: avivkeller --- doc/api/cli.md | 10 ++++++++++ lib/internal/modules/typescript.js | 1 + lib/repl.js | 19 +++++++++++++++++-- src/node_options.cc | 4 ++++ src/node_options.h | 1 + test/parallel/test-repl-typescript.js | 23 +++++++++++++++++++++++ 6 files changed, 56 insertions(+), 2 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`