I really enjoy the Node ESM implementation and the CJS interop. The ecosystem migration is probably going to be brutal but overall worth it. I hope bundlers are quick to adopt some actual "standardized" semantics. https://nodejs.org/api/esm.html
-
-
Replying to @sebmck
Yeah making file extensions mandatory is pretty great for performance. I once profiled parcel on a pretty large app and it did something like 500,000 fs.stat calls in its resolver checking for various file extensions. I’m glad they are optimizing the resolution algorithm a bit.
1 reply 0 retweets 6 likes -
Replying to @devongovett
Rome has an in-memory file system so extension lookups aren't that big of a deal. I don't think fs perf is really something they care about compared to aligning with the web though.
1 reply 0 retweets 2 likes -
Replying to @sebmck
Interesting. Do you traverse the whole fs on startup to create that in memory representation?
1 reply 0 retweets 1 like -
Replying to @devongovett
Yeah. That way resolution is synchronous so it's super fast. It's a requirement to support "haste" which is the name for a Facebook module system where all files can be referenced by their basename.
1 reply 0 retweets 4 likes
Also automatically pulls from a watchman daemon if you have one running.https://facebook.github.io/watchman/
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 