top | item 24068997 (no title) dsun179 | 5 years ago The reason is not correct. Nodejs cache the require lot and so circular dependencies can work without returning half finished loads. discuss order hn newest foreigner|5 years ago Nodejs does cache the results of require(), but that doesn't help with this problem. Example: https://repl.it/repls/SwiftOlivedrabBrace
foreigner|5 years ago Nodejs does cache the results of require(), but that doesn't help with this problem. Example: https://repl.it/repls/SwiftOlivedrabBrace
foreigner|5 years ago