Skip to content

”document“ should not appear in the Worker. #7779

@Aloento

Description

@Aloento

Describe the bug

I use Comlink to work with Worker.
It's seems like:
image

And to use:

  const worker = new Worker(new URL("./Decoder", import.meta.url), { type: "module" });
  const decode = Comlink.wrap<typeof AVIFDecode>(worker);

Then, everything is fine with dev, but after building:
image

Reproduction

https://github.com/Aloento/ErrorRepo

Used Package Manager

yarn

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions