Description
Hi all.
We have created a CRA app and have persisted two versions: an ejected version and a non-ejected.
Is it possible to support a web worker (runs every minute or so to check whether there has been a double login and subsequently force the logout of the first login) in a non-ejected app? We are dispatching the requests using Redux and in a previous version (using Webpack 3) it all worked fine but now we are getting a worker.postMessage is not a function error (we ejected and added the worker-loader plugin and the global: 'this' property in the Webpack output but no dice). We can get it working by reverting to an old version (using Webpack 3) but it houses a lot of dated dependencies and isn't PWA.
Basically is it possible to get this working without ejecting? This is proving to be a real pain point and Webpack isn't exactly the most intuitive tool.
Thanks all - I really appreciate it :)