runem / web-component-analyzer

CLI that analyzes web components and emits documentation
https://runem.github.io/web-component-analyzer
MIT License
507 stars 65 forks source link

Support for not directly inheriting from `HTMLElement` #196

Open Raynos opened 4 years ago

Raynos commented 4 years ago

Our web components do not extends HTMLElement directly in their implementation

Instead they extends Tonic and tonic extends HTMLElement

I added @element ${name} to one of my web components and the analyzer was able to find it.

Would it be possible for the analyzer to be able to find that it does inherit from HTMLElement via base class ?

Alternatively I'm happy to configure the analyzer with wca analyzer --super Tonic as a hint.