Files
mongo/bazel/mongo_js_rules.bzl
Zack Winter da80bcc821 SERVER-100977 Restrict js_library to arm/x86_64 cpus (#32508)
GitOrigin-RevId: 1c15500a2a6d0730efb2207f280c7a6721221288
2025-04-09 21:28:06 +00:00

13 lines
431 B
Python

"""Macros wrapping rules_js's javascript rules."""
load("@aspect_rules_js//js:defs.bzl", "js_library")
def mongo_js_library(*args, **kwargs):
if "target_compatible_with" not in kwargs:
kwargs["target_compatible_with"] = []
kwargs["target_compatible_with"] += select({
"//bazel/config:ppc_or_s390x": ["@platforms//:incompatible"],
"//conditions:default": [],
})
js_library(*args, **kwargs)