webcomponents / webcomponents.org

Home of the web components community
https://www.webcomponents.org
Apache License 2.0
366 stars 84 forks source link

runkit: ReferenceError: HTMLElement is not defined in webcomponent 1.2.2 #1287

Open matjung opened 4 years ago

matjung commented 4 years ago

https://npm.runkit.com/webcomponent Are you aware that runkit is having an issue with webcomponent?

ReferenceError: HTMLElement is not defined

var webcomponent = require("webcomponent")

// a language issue: https://phabricator.babeljs.io/T1548
if (typeof HTMLElement !== 'function') {
  var _HTMLElement = function _HTMLElement() {};
  _HTMLElement.prototype = HTMLElement.prototype;
  HTMLElement = _HTMLElement;
}