Skip to content

Conversation

@ychavoya
Copy link

@ychavoya ychavoya commented Nov 28, 2025

Rollup Plugin Name: typescript

This PR contains:

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

If yes, then include "BREAKING CHANGES:" in the first commit message body, followed by a description of what is breaking.

List any relevant issue numbers: resolves #1858

Description

This PR updates the regular expression used to detect declaration files (*.d.ts) to include declaration files for arbitrary extensions, such as the ones allowed with the allowArbitraryExtensions compiler option (*.d.*.ts). By including these in the regex, they are not resolved and therefore prevent the error displayed in #1858.

Also, in order to add a test for this behavior, the typescript version in the dev dependencies was upgraded to v5 and therefore some other pieces of code had to be changed.

@ychavoya ychavoya requested a review from shellscape as a code owner November 28, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@rollup/plugin-typescript seems not recognizing .d.[ext].ts style definition files?

1 participant