Description
Is your feature request related to a problem? Please describe.
It seems the LWC solution monkey-patches the customElements.define()
and some other functions to get LWC working. But it doesn't expose a way to for regular Web Component solutions to use all the native Web Components API.
Describe the solution you'd like
LWC should provides a way for regular Web Component solutions to get access to the native Web Components APIs and just keep those regular Web Components working.
Describe alternatives you've considered
Or LWC could ensure the monkey-patched customElements APIs are fully compatible with the native customElements API. We ran into this NotSupportedError: "extends" key in customElements.define() options is not supported
error, but couldn't figure out a way to workaround it.
Additional context
It seems #2983 is a related issue, but it got closed without a clear description what alternatives are available to workaround this issue.
Activity