From ca6dfd42dc133c8643e95b153da4ed5ca8a32771 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Thu, 9 Jul 2026 08:28:55 +0900 Subject: [PATCH] fix: throw error if tsgo is disabled with TypeScript 7.0 --- src/options.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/options.ts b/src/options.ts index 6ed355f..c67359c 100644 --- a/src/options.ts +++ b/src/options.ts @@ -292,6 +292,12 @@ export function resolveOptions({ tsgo = false } + if (!tsgo && isTsgo()) { + throw new Error( + '[rolldown-plugin-dts] TypeScript 7.0 is installed, but the `tsgo` option is disabled. Please enable it to use TypeScript 7.0 features.', + ) + } + let resolvedTsconfig: TsconfigJsonResolved | undefined if (tsconfig === true || tsconfig == null) { const { config, path } = getTsconfig(cwd) || {} -- knotmirror 0.0.1