open-wc / custom-elements-manifest-deprecated

Custom Elements Manifest is a file format that describes custom elements in your project.
8 stars 4 forks source link

static get observedAttributes only handles an array #38

Closed thepassle closed 3 years ago

thepassle commented 3 years ago

Currently static get observedAttributes only works if an array is provided like so:

static get observedAttributes() {
  return ['value', 'max'];
}

But sometimes people may add different logic in there, which currently breaks the analyzer, like here: https://github.com/Matsuuu/twitch-chat/blob/main/src/twitch-chat.js#L65