Skip to content

customElements.get/define 未兜底 #94

Description

@xiongying1012

if (!customElements.get(tag)) { customElements.define(tag, getWrapperClass(target, style)); }
不支持 customElements 的浏览器引入组件直接白屏阻塞了...
前提:
不想加载pollyfills
判断支持性之后再引入也可以解决,但不想失去按需的写法

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions