I've encountered a challenge trying to make a basic web component function properly when transpiled to ES5. It works seamlessly on Chrome, Edge, and Firefox, but IE11 is throwing an error in the constructor of the component stating "The custom element constructor did not produce the element being upgraded."
UPDATE
The insightful analysis by Oliver Krull below has effectively identified Typescript's compiler output as the root cause of the issue. Is there a way to resolve this?
The initial source code (in TypeScript):
import "./AppDrawer.less"
class AppDrawer extends HTMLElement {
get open() {
...
<p>The HTML:</p>
<pre><code><!doctype html>
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.0-rc.8/webcomponents-lite.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.0-rc.8/custom-elements-es5-adapter.js"></script>
<script src="bundle.js"></script>
</head>
...