@BrianDiPalma1 Nothing prevents new browser js modules from using .mjs too @zenparsing @wycats
-
-
Replying to @lbljeffmo
@lbljeffmo Current ones don't so they'd have to be converted and surely out of the box they won't support .mjs?@zenparsing@wycats1 reply 0 retweets 0 likes -
Replying to @BrianDiPalma1
@BrianDiPalma1 Dont have to be converted. The key is that browsers dont pay attention to file ext. It all works out@zenparsing@wycats1 reply 0 retweets 0 likes -
Replying to @lbljeffmo
@lbljeffmo Last I saw you would need to include the file extension in the module source, has that changed?@zenparsing@wycats1 reply 0 retweets 0 likes -
Replying to @BrianDiPalma1
@BrianDiPalma1 You mean in the loader? Seems likely but that's greenfield code (and can only import modules not scripts)@zenparsing@wycats2 replies 0 retweets 0 likes -
Replying to @lbljeffmo
@lbljeffmo Almost all of our current code is using ES modules so there is lots of code that right now is ES .js modules@zenparsing@wycats1 reply 0 retweets 0 likes -
Replying to @BrianDiPalma1
@BrianDiPalma1 me too :) When ready to stop compiling (i.e. no longer care about backcompat), we just rename to .mjs@zenparsing@wycats2 replies 0 retweets 0 likes -
Replying to @lbljeffmo
@lbljeffmo In dev I'd want to not compile and use latest JS engine but compile if testing in old ones@zenparsing@wycats1 reply 0 retweets 0 likes -
Replying to @BrianDiPalma1
@BrianDiPalma1 that works well (and Im advocating for that approach): Rename to .mjs, compile down to .js for backcompat@zenparsing@wycats2 replies 0 retweets 0 likes -
Replying to @lbljeffmo
@lbljeffmo@BrianDiPalma1@zenparsing that means even in the far future, upgrading a package means transpiling to .js2 replies 0 retweets 0 likes
@lbljeffmo @BrianDiPalma1 @zenparsing the package.json approach allows people to upgrade transparently if/when they don't worry about node5
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.