Gabor Koos: “When #JavaScript module behavior looks impossible, identify the res...
bignose @bignose@fosstodon.org
Gabor Koos:
“When #JavaScript module behavior looks impossible, identify the resolved file and the loader that created it. […] Then verify that evaluation has completed and that the rest of the process holds the same module instance. […]
“Modules hide resolution and evaluation behind compact syntax. Once those stages are separated, import and require stop looking like interchangeable spellings and start describing different ways to connect code.”
https://blog.gaborkoos.com/posts/2026-08-14-Your-Modules-Are-Lying-to-You/