Function serverRequire

  • Conditionally require module only if in server process. No-op when called in browser.

    Parameters

    • module: any
    • id: any

    Returns any

    module or undefined