Dynamic Module Imports in JavaScript

Published: 16 May 2021
on channel: Steve Griffith - Prof3ssorSt3v3
5,483
207

With ES Modules came the ability to use the import statement and export statement to manage our JavaScript as modules. Files could be divided and imported into each other. We could rely on the successful import of a file as the trigger to run the code.
ES Modules also gave us dynamic imports and conditional imports using the import method. This tutorial explains, with examples how to leverage dynamic and conditional imports in your code with the promise-based import method.

Code from video: https://gist.github.com/prof3ssorSt3v...


On this page of the site you can watch the video online Dynamic Module Imports in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Steve Griffith - Prof3ssorSt3v3 16 May 2021, share the link with friends and acquaintances, this video has already been watched 5,483 times on youtube and it was liked by 207 viewers. Enjoy your viewing!