This resolves https://github.com/developit/web-worker/issues/3, supporting non-string inputs into new Worker (applying toString per the browser), removing the stack hack, and encouraging the use of import.meta.url in the readme.
We can likely include a reference to the stack approach in the readme note I've added, where I've called out that test and build support may still be an issue with this pattern. Ideally we could start chasing these up via https://github.com/developit/web-worker/issues/4.
This resolves https://github.com/developit/web-worker/issues/3, supporting non-string inputs into
new Worker
(applying toString per the browser), removing the stack hack, and encouraging the use ofimport.meta.url
in the readme.We can likely include a reference to the stack approach in the readme note I've added, where I've called out that test and build support may still be an issue with this pattern. Ideally we could start chasing these up via https://github.com/developit/web-worker/issues/4.