runLoader function that executes effects on +page.server.ts load and then maps the result to what Sveltekit expects from a loader.runLoader: https://github.com/mateoroldos/sveltekit-effect-template/blob/89200adc2ff8ab282edafbc98bd88e87d3d26e51/src/lib/server/run-loader.ts#L12