Skip to content

Conversation

@thefeymesaleng
Copy link

@thefeymesaleng thefeymesaleng commented Jun 24, 2025

I noticed that this repository does not currently support localDependencies due to challenges with the isoworker implementation. Last year, I submitted a PR to vueuse for useWebWorkerFn( a feature that is based on this repo) to add localDependencies. To align with vueuse's preference for a dependency-free core package, I avoided using isoworker, and use a simpler implementation. While we already solve the localDeps problems, I think this implementation should work the same for this repo. So I hope @alewin can review this PR and your user can enjoy localDeps. Cheers.

This PR should address the following issues: #112, #105.

PS
Sorry for the formatting

@thefeymesaleng thefeymesaleng changed the title featL added localDependencies feat added localDependencies Jun 24, 2025
@naorpeled
Copy link
Collaborator

naorpeled commented Jun 24, 2025

Hey @thefeymesaleng
thanks for creating this PR, you're awesome, I'll review it tomorrow 😎

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jun 24, 2025

Open in StackBlitz

npm i https://pkg.pr.new/alewin/useWorker/@koale/useworker@178

commit: 084b6a7

@naorpeled
Copy link
Collaborator

Hey @thefeymesaleng,
I went over the PR,
overall it looks good.

Can you please add some tests to packages/useWorker/__tests__/useWorker.test.js?

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.

2 participants