Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example of using custom plugin with webworker #2

Open
cmdcolin opened this issue May 24, 2024 · 0 comments
Open

Add example of using custom plugin with webworker #2

cmdcolin opened this issue May 24, 2024 · 0 comments

Comments

@cmdcolin
Copy link
Collaborator

I believe this involves customizing the makeWorkerInstance function to, currently, be fully custom instead of importing the exported version. There are are couple options

a) Make a system where the makeWorkerInstance can accept custom plugins to add to the corePlugins
b) Make example of how a user can create their own version of rpcWorker.js and call new Worker('...') themselves

The challenges with (a) are that it is not really possible (??) to forward a user-passed plugin through the new Worker('...') syntax

The challenges with (b) is that it's a bit hard to instruct users how to properly use it, but it might be the most flexible solution

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

No branches or pull requests

1 participant