Js
Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.
registerJsSourcesHook()
registerJsSourcesHook(hook)
Register an internal facet hook enabled by importing a JS rules extension.
jsSources()
jsSources({ src = ".", base = packagePath()
Declare JavaScript/TypeScript sources and their exported graph roots. Importing an extension such as //rules/js/biome adds its facets at construction time, without mutating this object after the fact.