How is the composite «requirejs-config.js» file added to the pages?

Frontend: Magento_Theme/view/frontend/layout/default.xml

Backend: Magento_Backend/view/adminhtml/layout/default.xml

Magento\RequireJs\Block\Html\Head\Config::_prepareLayout()

Details: