Skip to content

Delite/features uses document and it is breaking the build. #241

@clmath

Description

@clmath

As delite/features is a plugin, it needs to be loadable on node.
Currently the test for document-register-element is breaking the build since document is undefined on node.

This could be easily changed to:

has.add("document-register-element", 
    typeof document !== "undefined && document && !!document.registerElement);

Subsequent call to document in this file are ok since they are in feature detection functions and the build won't run them as there is nothing to detect yet.

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