Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by dsun179 on Thursday August 06, 2020 @04:05AM
(#24068997)
The reason is not correct. Nodejs cache the require lot and so circular dependencies can work without returning half finished loads.
[ Parent
| on HN ]
Re:Node Modules at War: Why CommonJS and ES Modules Can’t Ge...
by foreigner on Thursday August 06, 2020 @06:38AM
(#24069717)
Nodejs does cache the results of require(), but that doesn't help with this problem. Example: https://repl.it/repls/SwiftOlivedrabBrace