Documentation for JavaScript provider module deployment in domain mode

We’re looking for a way to avoid uploading JavaScript modules via the admin console. The docs explicitly say “Ability to upload scripts through the admin console is deprecated and will be removed in a future version of Keycloak” but I didn’t find anything regarding the description of how to deploy such a JavaScript module if not in standalone mode.

The creation of a JavaScript module seems to be described by the docs, but where and how to add this kind of module to the domain.xml?

Thanks in advance for any information. We scraped the internet, mailing list and discourse without any luck so far.