@domenic @mikeal @fishrock123 @isntitvacant commonjs interop for es modules is just a massive rabbithole of problems
-
-
Replying to @sebmck
@sebmck@domenic@Fishrock123@isntitvacant which is to say interop with 99% of the JS modules in existence is a rabbithole of problems.1 reply 1 retweet 2 likes -
Replying to @mikeal
@mikeal@domenic@fishrock123@isntitvacant yes. there's no solution where you aren't making massive compromises.1 reply 0 retweets 2 likes -
Replying to @sebmck
@mikeal@domenic@fishrock123@isntitvacant if you want commonjs then use `require`, if you want es then use `import`. why is that bad?3 replies 1 retweet 6 likes -
Replying to @sebmck
@sebmck@mikeal@domenic@fishrock123@isntitvacant what happens when you don’t know what the module is? i.e., something from npm?1 reply 0 retweets 0 likes -
Replying to @ThisIsMissEm
@sebmck@mikeal@domenic@fishrock123@isntitvacant unless it’s something like: npm -> use require(), your code -> use `import`1 reply 0 retweets 1 like -
Replying to @ThisIsMissEm
@miksago@sebmck@domenic@Fishrock123@isntitvacant can someone explain what part of this is an actual improvement?2 replies 0 retweets 0 likes -
Replying to @isntitvacant
@isntitvacant@mikeal@miksago@domenic@fishrock123 circular deps, live bindings, trivially statically analysable, asynchronous resolution3 replies 0 retweets 2 likes -
Replying to @sebmck
@sebmck@isntitvacant@miksago@domenic@Fishrock123 circular deps work in cjs1 reply 0 retweets 0 likes
@mikeal @isntitvacant @miksago @domenic @fishrock123 not when you have default exports. `module.exports = ` pattern is extremely common.
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 