-
I think the title says everything but there's an example. Isn't it bad to require files within functions? Shouldn't it be at the root of the file? |
Beta Was this translation helpful? Give feedback.
Answered by
monbrey
Jul 7, 2021
Replies: 2 comments 1 reply
-
The code you're referring to was last touched three years. It's not that it was added for v13, it's more of something that hasn't been changed. |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is intentional - scoping the require avoids creating circular imports. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Jiralite
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is intentional - scoping the require avoids creating circular imports.