Hacker News new | ask | show | jobs
by dsun179 2139 days ago
The reason is not correct. Nodejs cache the require lot and so circular dependencies can work without returning half finished loads.
1 comments

Nodejs does cache the results of require(), but that doesn't help with this problem. Example: https://repl.it/repls/SwiftOlivedrabBrace