Skip to content

What's the purpose of "if not then require" pattern? #35729

Answered by devsnek
ugultopu asked this question in General
Discussion options

You must be logged in to vote

We use it to lazily load functionality, so that Node.js can start faster.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ugultopu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants