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) || {}