phenomejs / phenome

The ultimate cross-framework component compiler
http://phenomejs.org
MIT License
71 stars 8 forks source link

Search for helpers also in "destructuring" #27

Closed nolimits4web closed 6 years ago

nolimits4web commented 6 years ago

Now we search for required helpers based on Member Expression:

[this/that/self/component].[el/slots/dispatchEvents/...]

E.g. this.el, self.slots, component.dispatchEvent

This doesn't cover cases when we have something like:

const { el, slots } = this;