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 KZitem! I'll have to restart my Pluralsight subscription to go watch your course now. 🙂
@swildermuth
Жыл бұрын
Awesome. Glad to reconnect!
@DannyHille
9 ай бұрын
Hi Shawn, no need to 'use strict' in modules, all modules are treated as strict by default
@swildermuth
9 ай бұрын
Exactly right, just forgot to remove it when I made it a module.
@collinsk8754
Жыл бұрын
Really interesting! Thanks. Would you need a try-catch block for the asynchronous imports?
@swildermuth
Жыл бұрын
Depends, likely if that fails you can't recover but if you want to catch it and re-try that's possible.
@soneryldrm3075
Жыл бұрын
Great video, thx.
@FlippieCoetser
Жыл бұрын
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.
Пікірлер: 10