Transpiling class based web components with babel

前端 未结 2 491
礼貌的吻别
礼貌的吻别 2021-01-02 01:12

I\'ve a simple web component following the latest web components v1 class syntax, it works great in Chrome and Firefox/Edge (with a polyfill) but I\'d like it to run in IE11

2条回答
  •  情书的邮戳
    2021-01-02 01:46

    One solution is to use the native-shim available with this polyfill https://github.com/webcomponents/custom-elements

    It's not perfect though, would like to find a cleaner solution.

提交回复
热议问题