KosherZmanim icon indicating copy to clipboard operation
KosherZmanim copied to clipboard

Support web workers

Open EtaiG opened this issue 4 years ago • 2 comments
trafficstars

Sometimes, people want to use the code in web-workers.

Specifically, one of my relatives wanted to use this library in a Wix Corvid application. They need to use a target compiled for web-workers in order for it to work. This PR creates a worker target.

After the build, it would probably be good to add a link to unpkg with the compiled worker target, to make it easier

EtaiG avatar Dec 28 '20 09:12 EtaiG

@EtaiG Instead of creating a new Webpack config, would something like this work?

BehindTheMath avatar Dec 28 '20 14:12 BehindTheMath

@EtaiG Instead of creating a new Webpack config, would something like this work?

Theoretically yes, and it would be a better solution. I haven't tried any of the workarounds yet, but https://github.com/webpack/webpack/issues/6525#issuecomment-557890017 mentions that they are not enough.

EtaiG avatar Dec 29 '20 07:12 EtaiG