/**
 * A loader that injects code at the bottom of a manifest to automatically execute an optional receiveContentProps function,
 * passing along the frontmatter of content-files of a matching entry-name.
 * @param {string} source The manifest.js file content
 */
function manifestLoader(source) {
  return `
    ${source}
    (() => {
      if (module.exports.receiveContentProps) {
        const applicationSettings = window.settings.applications[module.exports.entryName];
        module.exports.receiveContentProps(...applicationSettings.contentProps);
      }
    })();
  `;
}

module.exports = manifestLoader;

@@ -325,13 +325,18 @@
    (
-() =%3E
+function()
  %7B%0A 
@@ -520,12 +520,31 @@
 rops
-(...
+.apply(module.exports, 
 appl

Convert manifest loader to ES5 (#8542)