chrisguttandin / worker-timers

A replacement for setInterval() and setTimeout() which works in unfocused windows.
MIT License
590 stars 25 forks source link

Only minified source code included in this repo #428

Closed leothorp closed 1 year ago

leothorp commented 1 year ago

Unless I'm overlooking something, the source code for the main worker-timers-worker package is only included in this repo in minified/stringified form. Why is this?

Thank you.

chrisguttandin commented 1 year ago

Hi @leothorp, you're right. The source code of the worker is inlined here. It's just because this is the only way that I know of to publish something on npm which contains a worker without requiring any manual configuration by the users of the package.

The idea of the worker-timers package is to make using it in other projects a little easier. But you could also use the worker-timers-broker and worker-timers-worker packages directly as I tried to explain in this comment.

Does this answer your question?

leothorp commented 1 year ago

It does, thank you.