function registerSources(loader, packageId, name, source, language) {
  const componentName = `${packageId}/${name}`;
  // eslint-disable-next-line no-param-reassign
  loader.sourcesForComponents[componentName] = {
    language,
    source,
  };
}
@param {import("../ComponentLoader").ComponentLoader} loader
@param {string} packageId
@param {string} name
@param {string} source
@param {string} language
@returns {void}