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
310 stars 107 forks source link

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

Open thesayyn opened 1 month ago

thesayyn commented 1 month 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 1 month 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.