-
-
Notifications
You must be signed in to change notification settings - Fork 164
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
Parcel 2 compatibility #319
Comments
Hey @lgarron! |
This is with the sample code, so it's either Here's a repro, which is basically the sample code:
|
Anything simple I could do to help debug this? |
Hmm, good question. Could you post the line with the failing Unfortunately I've already got a quite extensive backlog, so I'm afraid I won't have much time to look into this. If we can figure out the root of the issue, I could quickly prepare a fix, though. |
@lgarron long shot here but have you gotten it to work? I am having the same issue when I try to do a test using a simple function that returns a string and nothing seems to happen. |
Unfortunately not. I've given up on having a good development flow for web workers while several Parcel issues are still outstanding: parcel-bundler/parcel#5504 I'm hoping to give it another try once those issues are in a better place. |
Also, the lack of module workers in Firefox/Safari is a real pain, along with some other things that are hard for Parcel and this library to work around: |
Are you on nightly or next? Nightly fixes some of the module resolution logic but importing the same dependency from different webworkers creates bundling issues at the moment I think. |
Ooooh, the latest nightly fixes https://github.com/lgarron/parcel-2-threads-repro (The bundling issues are still a blocker for me, though.) |
parcel-bundler/parcel#5430 I'm trying to get audio worklet detection working, if I can just login to opencollective and sponsor them for their hard work lol. |
Great to see you all are looking into this! I was hoping that by now they would have fixed most of the issues, though. Maybe not (yet)… |
What solution did you end up with? I hate how much of my life is wasted on build pipelines |
We just kept using Parcel v1 😄 |
I've been scratching my head about how to build compatible workers, and this library is the most promising so far! Unfortunately, I use Parcel 2, and the basic demo runs into an error. 😢
I thought I found a reference suggesting that you can't use this kind of relative path from a blob, but Parcel 2 can definitely handle workers in general (e.g. libraries like
comlink
work withparcel server
). However, I can't seem to find that again.I'd really like to use
threads.js
, but this is a big blocker for our use case. Any thoughts on where best to attempt to address this?The text was updated successfully, but these errors were encountered: