4 posts about ES Modules by 4 contributors.
Know ES Modules? Share what you know with developers who are learning it.
Learn to build a reusable JavaScript library with Vite, configure ES module and CommonJS output, set package metadata, and prepare the package for npm publishing.
Learn how to organize your JavaScript code using ES Modules! This chapter covers the modern approach to structuring applications by breaking code into reusable files. Discover how modules prevent global scope conflicts, enhance maintainability, and promote code sharing. Master the import and export syntax, including named, default, and namespace imports, with practical examples for cleaner, more manageable projects. Implement modules using the <script type="module"> tag.
This article explains the differences between require() and import in Node.js, when to use each, how they work under the hood, and their impact on performance and compatibility.
Modern JavaScript supports ES Modules, which allow you to split your code into multiple files and reuse logic cleanly. This improves structure, maintainability, and scalability. Let’s explore how to use export and import.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only17days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article