mirror of
https://github.com/ezolenko/rollup-plugin-typescript2.git
synced 2025-12-08 19:06:16 +00:00
* fix: don't resolve `filter`ed files
- if they're `exclude`d / not `include`d, then we shouldn't be processing them
- we're already not transforming them, so this just applies the same exclusion to resolving
- this is _partly_ a regression from b0e39228b639229ce29d5d8d0b4bd236e4b20852, as that removed the `allImportedFiles` Set that previously filtered out files not in the `tsconfig` `include`
- but that _itself_ was a regression that was removed -- files that didn't pass `filter` should have _never_ been resolved
- basically, the `allImportedFiles` regression was covering up this long-standing bug
- also move `.d.ts` check to above the `filter` check
- we shouldn't be adding declarations to the `cache`, in particular as we don't process declarations, so they'll never be marked as dirty
- having this check above the `filter` should be slighltly more efficient as well (as would not having these files in the cache graph)
types: be more specific with `filter`'s type
- no need for this to be `any`
* build
- patch release has been waiting for a few weeks
* pub: release v0.34.1
- patch bump with the past few fixes
- bump internal rpt2 version to 0.34.0