code: function preloadRequire (module) {
    if (loadedModules.has(module)) {
      return loadedModules.get(module)
    }
    throw new Error(`module not found: ${module}`)
  }
docs: This is the `require` function that will be visible to the preload script