Skip to content

Conversation

@danielroe
Copy link
Contributor

Rollup Plugin Name: @rollup/plugin-replace

This PR contains:

  • bugfix

Are tests included?

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

Breaking Changes?

  • no

List any relevant issue numbers:

Description

the word boundary delimiter (\b) would not correctly handle some valid JS identifiers (like $, leading to an incorrect replacement of someterm$ being replaced by a rule for someterm), so I've updated delimiters to be more exhaustive.

@danielroe danielroe requested a review from shellscape as a code owner October 29, 2025 12:41
@shellscape
Copy link
Collaborator

@danielroe thanks for the PR! Some failing tests there in CI that will need attention before we can merge.

@shellscape shellscape merged commit 2c999d5 into rollup:master Oct 29, 2025
5 checks passed
@danielroe danielroe deleted the fix/delimiters branch October 29, 2025 14:23
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.

2 participants