Open
Description
Hey @dominique-mueller , great work on the package. And it's really of good help for CRA.
- I am using CRA, TypeScript, Craco (To override webpack) and Jest.
- I could achieve working with Comlink seamlessly by your workaround.
- My class that will use this syntax
worker-loader!../Somefolder/worker.ts
will be exported initially with the app.
So, while running Jest tests, all my tests are getting failed because of this.
I am getting this error while running Jest tests
Cannot find module 'worker-loader!../Somefolder/worker.ts' from 'src/xxx/xxx/xxx/xxx/index.ts'
I have followed this solution. This has resolved this issue, but I got another issue like this
TypeError: ep.addEventListener is not a function
The above issue is reported in Comlink, but I think that's for another reason.
How could I get this working? Any ideas?