tech/webdev magazine

April 29, 2022

Modules in JavaScript – CommonJS and ESmodules Explained

Friday, April 29, 2022 Teklinks

Modules are a technique heavily used in today's software design/architecture. First we're going to learn what they are and the different types of modules that exist. Then we're going to discuss why modules are useful. Then we're going to see examples and basic syntax for the most used module types, and finally we're going to discuss bundling, why is it necessary, and how to do it.

Full article