-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
Description
Rollup Version
4.34.6
Operating System (or Browser)
macOS 15.3
Node Version (if applicable)
22.13.1
Link To Reproduction
Expected Behaviour
In the linked repl, I would expect the options
array to retain the car
property (because it's called by another function). And treeshake the unused bar
property.
Actual Behaviour
The car
property is removed, which would break the car()
call. The bar
property is retained, even though it is never used.
Note that this nearly equivalent repl behaves as expected. The only difference is that it destructures properties within the function body.