Wait, what? There is a way to disable certain web component features via a static class field? Just randomly stumbled upon this in the specs. Can't find much documentation, but it works in Chrome and Firefox at least.
👉 https://html.spec.whatwg.org/multipage/custom-elements.html#dom-customelementregistry-define








