andywer / threads.js

🧵 Make web workers & worker threads as simple as a function call.
https://threads.js.org/
MIT License
3.04k stars 161 forks source link

Ability to use without bundler #395

Open bjornharrtell opened 3 years ago

bjornharrtell commented 3 years ago

As far as I've been able to determine it's not possible to use the npm dist in a browser without a bundling step.

I think it would be nice to be able to use threads.js directly via a <script type="module"> import.

I guess that would require a prebundled esm browser target included in the dist of threads.js.

Fr33maan commented 3 years ago

I would love it too !