Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module: add isPreloading indicator #36263

Closed
wants to merge 1 commit into from

Commits on Nov 30, 2020

  1. module: add isPreloading indicator

    Adds a `module.isPreloading` property that is `true` only during the
    preload (`-r`) phase of Node.js bootstrap. This provides modules an
    easy, non-hacky way of knowing if they are being loaded during preload.
    
    Signed-off-by: James M Snell <[email protected]>
    jasnell committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    e0a80b2 View commit details
    Browse the repository at this point in the history