Skip to content

Web Worker #113

Closed
Closed
@matthewp

Description

@matthewp

I'm trying to get this to work in a web worker (diffing 2 trees), ran into a few issues. Happy to send a PR as I get it all worked out.

There's a few of these in the build: https://github.com/skatejs/dom-diff/blob/master/dist/index.js#L301

If we use self instead of window it will work in both contexts.

Second thing are several instanceof Node checks, and since Node is going to be undefined these will throw. Should change those to check if Node is truthy first.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions