Describe the bug
I use Comlink to work with Worker.
It's seems like:

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:

Reproduction
https://github.com/Aloento/ErrorRepo
Used Package Manager
yarn
Validations