Someone asked me what Node could have done - the API space is pretty constrained by JS, which is why native import required a directive, not a statement/expression. Short answer: AMD. AMD is amazingly simple and well suited for browsers. It was a great pre-module common format.https://twitter.com/justinfagnani/status/1114246515092930560 …
-
Show this thread
-
Noce could have supported CommonJS and AMD and multi-environment packages could have published AMD, which would load in browsers with pretty minimal tooling.
2 replies 0 retweets 3 likesShow this thread -
AMD is probably even loadable via the native module system with import maps, dynamic import, and a very small define() implemention. I need to try this out.
2 replies 0 retweets 6 likesShow this thread
Replying to @justinfagnani
AMD came directly from our experience with the sync require() mistake I made in Dojo early on. Such a lost opportunity.
2:13 PM - 6 Apr 2019
0 replies
0 retweets
4 likes
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.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.