aspect-build / rules_js

High-performance Bazel rules for running Node.js tools and building JavaScript projects
https://docs.aspect.build/rules/aspect_rules_js
Apache License 2.0
304 stars 105 forks source link

[FR]: Use js_image_layer with multiple js_binaries with node_modules and other files deduplicated #2002

Open thesayyn opened 2 hours ago

thesayyn commented 2 hours ago

What is the current behavior?

Currently, js_image_layer only allows one js_binary.

Describe the feature

js_image_layer needs to allow passing multiple binaries at once

thesayyn commented 2 hours ago

Current workaround is no use sh_binary and add js_binaries into data to allow bazel to deduplicate files for us and put that into js_image_layer.