Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
dsun179
· 6y ago · 0 comments
The reason is not correct. Nodejs cache the require lot and so circular dependencies can work without returning half finished loads.
Comments
[–]
foreigner
6y ago
Nodejs does cache the results of require(), but that doesn't help with this problem. Example:
https://repl.it/repls/SwiftOlivedrabBrace