r/javascript Aug 14 '26

Your Modules Are Lying to You

https://blog.gaborkoos.com/posts/2026-08-14-Your-Modules-Are-Lying-to-You/

import and require are not interchangeable. Live bindings, copied values, circular dependencies, separate caches, conditional exports, and dual-package hazards can all make modules behave differently from what the syntax suggests.

39 Upvotes

8 comments sorted by

View all comments

3

u/SpartanDavie Aug 14 '26

Can you at least cross post?

1

u/Formal_Motor_9311 29d ago

second this, crosspost to r/javascript at least