-
-
Notifications
You must be signed in to change notification settings - Fork 628
replace plugin. default "delimiters" value is breaking for developers #905
Copy link
Copy link
Closed
Description
- Rollup Plugin Name:
@rollup/plugin-replace - Rollup Plugin Version:
2.4.2(currently latest) - Rollup Version:
2.50.6 - Operating System (or Browser):
macos(but it's irrelevant in this case) - Node Version:
16(but it's irrelevant in this case) - Link to reproduction: a PR fix(replace)!: issues with nested objects replacements #903
Actual Behavior
Currently, developers have issues with replacements w/ nested access.
If you attempt to replace typeof window with "object", you would see the following scenarios:
typeof windowwill be replacedtypeof window.documentwill be replaced, resulting in"object".document(which is an error)typeof windowSmthwill not be replaced due to a\bboundary
Expected Behavior
typeof window.documentwill NOT be replaced, resulting in"object".document(which is an error)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels