Skip to content

Commit c0fb53d

Browse files
authored
clean: remove redundant allImportedFiles check in _onwrite (#346)
- this checks if any of the files in `parsedConfig.fileNames` are _not_ in `allImportedFiles`, but all the files in `parsedConfig.fileNames` are explicitly added in the `options` hook on line 98 - so this is redundant / dead code; the check will never be true - this can be considered a remnant of an old bug as an old commit fixed a bug with `allImportedFiles` after it was released: f24359e
1 parent 671281f commit c0fb53d

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/index.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -306,11 +306,6 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
306306
const key = normalize(name);
307307
if (key in declarations)
308308
return;
309-
if (!allImportedFiles.has(key))
310-
{
311-
context.debug(() => `skipping declarations for unused '${key}'`);
312-
return;
313-
}
314309

315310
context.debug(() => `generating missed declarations for '${key}'`);
316311
const output = service.getEmitOutput(key, true);

0 commit comments

Comments
 (0)