diff --git a/src/index.ts b/src/index.ts index f0960108..f9200815 100644 --- a/src/index.ts +++ b/src/index.ts @@ -301,7 +301,7 @@ const typescript: PluginImpl = (options) => parsedConfig.fileNames.forEach((name) => { const key = normalize(name); - if (key in declarations) + if (key in declarations || !filter(key)) return; if (!allImportedFiles.has(key)) {