Open privatenumber opened 2 years ago
Hey folks. This issue hasn't received any traction for 60 days, so we're going to close this for housekeeping. If this is still an ongoing issue, please do consider contributing a Pull Request to resolve it. Further discussion is always welcome even with the issue closed. If anything actionable is posted in the comments, we'll consider reopening it. ⓘ
I met same problem and maybe actual issue.
Internal patterns for typeof
(e.g. typeof process !==
) does not work because of delimiters ['\\b', '\\b(?!\\.)']
added by https://github.com/rollup/plugins/pull/1088.
I don't think it was ever working:
There is no regression. Looks like the feature was merged when it was not working: https://github.com/rollup/plugins/pull/1084#discussion_r861447543
Input
index.js
Expected Behavior
@rollup/plugin-replace
README says the output should be:Actual Behavior
typeof process
is not replaced.Output
Additional Information
There is no regression. Looks like the feature was merged when it was not working: https://github.com/rollup/plugins/pull/1084#discussion_r861447543