custom-elements-module is a polyfill for HTML Custom Elements recompiled from @webcomponents/custom-elements.
This recompiled version is functionally identical, except that it does not
assume browser globals and it provides control over which window
object is
polyfilled, allowing usage in and out of browser environments.
const window = `<x-h>Custom H</x-h>` { } const customElements document HTMLElement = window customElements
There are no other differences between this polyfill and @webcomponents/custom-elements. Although, due to gzipping representation, this version ends up being 357 bytes smaller.