diff --git a/packages/plugin-dts/src/tsc.ts b/packages/plugin-dts/src/tsc.ts index f5085997c..29622926a 100644 --- a/packages/plugin-dts/src/tsc.ts +++ b/packages/plugin-dts/src/tsc.ts @@ -26,9 +26,6 @@ export function emitDts( emitDeclarationOnly: true, }; - // api-extractor doesn't support watch mode - // and tsc watch compiler API host doesn't have a writeFile hook so that we can not get the entry dts file easily - // so we use tsc build in bundle mode if (!isWatch) { const host: ts.CompilerHost = ts.createCompilerHost(compilerOptions);