Not sure if we need this. It impacts performance and bundle size negatively, but also improves usability of the library by pre-empting bugs where a property is unpacked, but not defined as a dependency.
Imagine a scenario where you want to add a new dependency to a function, and you add it to the destructuring assignment, but forget to add it to the list of dependencies. Without this change, the property would be available on the argument, but it would not be tracked as a dependency.
Not sure if we need this. It impacts performance and bundle size negatively, but also improves usability of the library by pre-empting bugs where a property is unpacked, but not defined as a dependency.
Imagine a scenario where you want to add a new dependency to a function, and you add it to the destructuring assignment, but forget to add it to the list of dependencies. Without this change, the property would be available on the argument, but it would not be tracked as a dependency.
Before:
After: