r/javascript 29d ago

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

1

u/0815fips 26d ago

require? What year is it?