is this still true, even for script type=module? 🤯 cc: @chromium.social … can’t for the life of me find the message but thank you to the person at @perfnow.bsky.social who sent this my way ❤️ web.dev/learn/perfor...
3 reposts86 likes
is this still true, even for script type=module? 🤯 cc: @chromium.social … can’t for the life of me find the message but thank you to the person at @perfnow.bsky.social who sent this my way ❤️ web.dev/learn/perfor...
3 reposts86 likes
yes @pi0.io has been trying to persuade me to migrate to .mjs for a while 😆
I don't think it matters for the web. But does for Node and the like: v8.dev/features/mod...
And yet oddly written after the doc I linked! @kevinfarrugia.bsky.social did you write web.dev/learn/perfor... ? Got any more info on mjs file extension?
Yes I did. After writing the module, we received feedback from the V8 team (including that the doc you linked is outdated). The problem is that it fails silently so it doesn't show up in a trace. Tomorrow I can send you all the info I have as I'm not on my laptop. Cc @kurtextrem.de
I _think_ @kevinfarrugia.bsky.social thought the impact was minimal (but if it's even slight I think we should reconsider our default format in @nuxt.com and possibly also in @vite.dev). the key thing I'd like to confirm is that it really is the case first ...
thanks for sharing! i'm going to make esm.sh to follow that!