No, but auto strict and lack of early return certainly can be
-
-
-
Saying ESM and CJS differ in ways that are problematic
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @satya164
Right, but CJS and script do as well. The .js extension has always been broad. Never implied semantics just "some kind of JS"
2 replies 0 retweets 0 likes -
The reason node wants .mjs is not a new problem about diff semantics and the meaning of .js. It's about solving a problem Node has.
3 replies 1 retweet 2 likes -
What about other places like flow which is in OCaml having improper guessing of mode?
1 reply 0 retweets 0 likes -
Or pretty much anything that runs from a CLI
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @satya164
1: People can opt in to modules in package.json if they're using TS or Flow. I'm also fine with "use modules" as an escape valve for
2 replies 0 retweets 0 likes -
2/2: standalone scripts. It just doesn't wash to say that .js has only ever meant <script> given node, or only CJS given web.
2 replies 1 retweet 0 likes -
Do browsers ever run .js alone somehow without HTML?
1 reply 0 retweets 0 likes
Yeah. importScript
-
-
Doesnt html have to start the worker though? It never stands alone
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.