amilajack / amilajack/eslint-plugin-compat
Minimised feature detection (&&) not handled
Aperta
- Lingua principale
- TypeScript
- Stelle
- 3.2k
- Fork
- 115
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
This plugin is fine with this code
```
if (window.ResizeObserver) {
this.canvasResizeObserver = new ResizeObserver((entries) => this.oncanvasresize(entries));
}
```
But I run it on the final Terser-minimised output of my project (so that I can ensure that the final output is compatible), and it raises errors for this minimised version.
```
window.ResizeObserver&&(this.canvasResizeObserver=new ResizeObserver((e=>this.oncanvasresize(e))))
```
Can the feature detection handler be updated to support `&&`?
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.