Convopage
See the entire conversation
Addy Osmani
@addyosmani
ES2015 Modules just landed in Chrome Canary! 🔥 Flip on “Experimental Web Platform features” to give them a spin. Feedback welcome.
51 replies and sub-replies as of May 02 2017
Paweł Grzybek
@pawelgrzybek
WOW! Biggie! Thanks Addy! Does it support `nomodule` attribute on Chrome?
Addy Osmani
@addyosmani
More ES Modules goodness: Chrome Canary (60) vs Chrome 58 side-by-side. In 58 <script nomodule> serves the fallback while 60 does not.
Sharat M R
@cosmos_genius
I just had the longest goosebumps ever 🤣🤣
Addy Osmani
@addyosmani
haha. Give the implem a go and let us know if you run into any bugs! :)
Sharat M R
@cosmos_genius
Definitely ☺️☺️
Giuseppe Caruso
@bonsaistudio
<trivial>What font is that with a scriptish italic?! 😍</trivial>
Oliver James
@_oliverjam
Probably Operator Mono:
typography.com/blog/introduci…
Matt James
@mattFrankJames
Operator mono
Addy Osmani
@addyosmani
Operator Mono. Inspired by
@wesbos
using it 😃
Wes Bos
@wesbos
Welcome to the fam. You might want to make a
@wesb0t
haha
Addy Osmani
@addyosmani
Whoa. Efficient :) Might pick your brain on how to set one of those up some time!
Wes Bos
@wesbos
ahaha yep
wesbos/wesbot
wesbot - A wes bot
github.com
Scott Spence 🌯😴💻♻
@ScottDevTweets
You can check out my bootstrap if you want 👍
github.com/spences10/twit…
😀
spences10/twitter-bot-bootstrap
twitter-bot-bootstrap - Twitter bot bootstrap :boot: using node and twit :bird:
github.com
Giuseppe Caruso
@bonsaistudio
ahahahahahahahahaha, awesome 🤖 Thanks Addy.
Christopher Hamilton
@39digits
WesBos's Law - If a discussion includes a screenshot of code, sooner or later someone will ask "What font is that?"
Wes Bot
@wesb0t
wait for it................ operator mono! → → → →
WesBos.com/uses
👌
Uses
Everyday I get a few emails asking about the specifics of some piece of software or hardware I use. I change up things fairly often, so this page will serve as a living document and a place to [...]
wesbos.com
InternetMediaWeb
@internetmediawe
Hi Addy! So some popular modules will be included in Chrome in the next future?
Federico Zivolo @ 🇭🇺
@FezVr4sta
why should they?
Luca Colonnello
@LucaColonnello
This is so cool!!!! Just wondering how a script in the browser can import what is in the imported module exports! 🤔
🔥 Jaime González 🔥
@Vintharas
That's so coool!
Abrar Shariar
@thecodemaniac
WOw that's Cool !!
Anatoliy Arkhipov
@aarkhipov_
How the browser knows what scripts to load? Should be the server configured somehow specially for this?
Sharat M R
@cosmos_genius
It would be similar to how html resolves js files...Meaning same logic to resolve path and file name.
Marius Gundersen
@GundersenMarius
Which build is this? I couldn't get it to work with "Version 60.0.3086.0 (Official Build) canary (64-bit)"
Addy Osmani
@addyosmani
3087 has it. Started getting rolled out last night.
Marius Gundersen
@GundersenMarius
Neat, got it now 👌 Something weird though, I'm seeing two requests for the module in the network panel
Addy Osmani
@addyosmani
DevTools support is early atm but we can investigate. Is that something you can share so we can repro?
Marius Gundersen
@GundersenMarius
Sure, not exactly minimum repro case:
mariusGundersen/module-pusher
module-pusher - Demo of SW + HTTP2 + ES6 modules
github.com
Muhammad Rizki Rijal
@eezhal92
wow cool! congrats!
Alex Reardon
@alexandereardon
It will be a nice day when I can turn off babel and webpack
Matt
@mattdarveniza
By the time you can you’ll want all the nice features in ES7/8/n. And you’d probably still want to bundle in production anyway
Alex Reardon
@alexandereardon
I agree about the es7+ features - but hopefully we won't need to bundle with http2.
ΛNGUS 👽
@Angus_KST
I have a feeling bundling will still be the path of least resistance for a long time, with npm modules, uglification, webpack .* imports
ΛNGUS 👽
@Angus_KST
At least it'll be good for beginners
Sean Larkin
@TheLarkInn
Nah in fact http2 should make bundling even more exciting!!! See this little synopsis from our medium publication
webpack & HTTP/2 – webpack – Medium
Let’s start with a myth about HTTP/2:
medium.com
Addy Osmani
@addyosmani
We've already started thinking about the granular loading story w/modules. Atm bottlenecks are number requests (for large dep tree), compile
Addy Osmani
@addyosmani
My prediction is we'll initially see folks use modules for dev then more experimenting with them + <script nomodule> for fallbacks in prod
Matthias Bayer
@matthias_bayer
Awesome work guys! Waited so long for this, can't wait to try it out :)
ori livni
@oriSomething
So now, do I need to fix all my repos to have the `.js` extension on the import statements?
Nick Wanninger
@nickwanninger
I'm interested. How does.it request the code? As the compiler comes to it, or do you have to include it all as script tags?
Addy Osmani
@addyosmani
Here I'm just requesting a single entry point via script type=module. Rest of code is using import statements to specify dependencies.
Nick Wanninger
@nickwanninger
So it makes an http request for each import statement (with cache)?
Tommie Forssander
@tforssander
Nice!
Pat Ferguson
@DevPatF
Soon!
Stewart Webb
@nuclearpidgeon
Hoooooo boy
#gethype
Juan Martí
@jmarti326
What theme and font are you using?
shahid ahmad
@shahid_ahmad035
Really awesome
Ömer Ufuk Efendioğlu
@ufukomar
:O
Marყ̈n Haverbeke
@marijnjh
Great news! I hope to introduce them as the 'normal' way to do modules in the next edition of my book, & have the current mess as a sidenote
Addy Osmani
@addyosmani
👍 Fantastic. We're aiming to have a complete implementation sometime this summer. Hopefully by the time your book is out itll be more stable
worker & parasite
@ughitsaaron
I'm imagining the section about the module ecosystem of the last decade as if it were the exposition at the start of a dystopian scifi film