Problem with Angular Element support in chrome and IE11 simultaneously

前端 未结 2 1962
孤独总比滥情好
孤独总比滥情好 2021-01-01 03:09

I have been playing around with Angular Elements and trying to achieve the best browser compatibility possible. However I seem to have hit a dead end, since when I add an IE

2条回答
  •  忘掉有多难
    2021-01-01 03:21

    If I understand it correctly the issue relates to the fact that IE11 doesn't support classes and that Chrome must have classes for webcomponents. There is a wrapper that lets you have one bundle and then wrap the functional-approach in a class for chrome, but I would recommend having two seperate bundles for this instead, and not compile to es5 for browsers that understand classes.

提交回复
热议问题