keithamus / eslint-plugin-escompat

Report errors for code which wont work in browsers without transpiling
MIT License
37 stars 7 forks source link

Fix breaking `this` while using Browserslist API #37

Closed ai closed 1 month ago

ai commented 1 month ago

Calling { key } destroys this binding in Browserslist which lead to issues like https://github.com/browserslist/browserslist/issues/845

Note, that browserslist/node is private API, you should use just browserslist.findConfig (I will create a separated issue to discuss this changes).

ai commented 1 month ago

It was very quick! Thanks!