mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
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:
f24359e668
This commit is contained in:
parent
671281f6de
commit
c0fb53d3bc
@ -306,11 +306,6 @@ const typescript: PluginImpl<RPT2Options> = (options) =>
|
||||
const key = normalize(name);
|
||||
if (key in declarations)
|
||||
return;
|
||||
if (!allImportedFiles.has(key))
|
||||
{
|
||||
context.debug(() => `skipping declarations for unused '${key}'`);
|
||||
return;
|
||||
}
|
||||
|
||||
context.debug(() => `generating missed declarations for '${key}'`);
|
||||
const output = service.getEmitOutput(key, true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user