Good stuff Shawn. I was just looking at starting an upgrade process of some of our javascript to use ECMAScript modules in a web project. Perfect timing! I've been following your content for years. I'm glad I found you on UA-cam! I'll have to restart my Pluralsight subscription to go watch your course now. 🙂
Good stuff Shawn. I was just looking at starting an upgrade process of some of our javascript to use ECMAScript modules in a web project. Perfect timing!
I've been following your content for years. I'm glad I found you on UA-cam! I'll have to restart my Pluralsight subscription to go watch your course now. 🙂
Awesome. Glad to reconnect!
Hi Shawn, no need to 'use strict' in modules, all modules are treated as strict by default
Exactly right, just forgot to remove it when I made it a module.
ES6 modules works a bit different in browser than node at 6:00 onwards. See importmaps to use NPM modules in browser using bare imports.
BTW, Love the coding shorts!
I'll take a look.
Really interesting! Thanks. Would you need a try-catch block for the asynchronous imports?
Depends, likely if that fails you can't recover but if you want to catch it and re-try that's possible.
Great video, thx.