Skip to content

Pass worker options on to the original worker#12

Open
jespertheend wants to merge 1 commit intodmihal:masterfrom
jespertheend:worker-options
Open

Pass worker options on to the original worker#12
jespertheend wants to merge 1 commit intodmihal:masterfrom
jespertheend:worker-options

Conversation

@jespertheend
Copy link

I'm trying to create a new worker with

new Worker("file.js", {
    type: "module",
});

but this is failing because the options aren't passed along to the original worker, causing the script to get loaded as a classic script and failing at the import statement.
This change passes the options along to the original worker to fix this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant