parcel-bundler / watcher

👀 A native C++ Node module for querying and subscribing to filesystem events
MIT License
656 stars 45 forks source link

Separate packages for precompiled binaries #143

Closed rtsao closed 1 year ago

rtsao commented 1 year ago

Both lightningcss and esbuild publish prebuilt binaries as individual npm packages which are declared as optionalDependencies. This technique allows package managers to skip downloading the binaries for irrelevant architectures/platforms.

It would be great if @parcel/watcher used the same approach. The current method is a hurdle for projects seeking to minimize the size/cost of dependencies.

I think a sensible starting place might be the GitHub Actions workflows for lightningcss or esbuild. Happy to help contribute

Related:

devongovett commented 1 year ago

Yes, this has been on my list for a long time, but I haven't had time to work on it. If you're interested, it would be an awesome contribution!