[w3c/webcomponents] idea: returning the class from `customElements.define()` calls (#875)

To make it easier to do things like this:

```js
export const MyElement = customElements.define('my-el', class extends HTMLElement {
  // ...
})
```

instead of requiring only

```js
export class MyElement extends HTMLElement {
  // ...
}

customElements.define('my-el', MyElement)
```

I'm not sure it is worth it. Any thoughts?

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/875

Received on Monday, 11 May 2020 19:28:52 UTC