Ryan Leerlee.dev·Dec 17, 2024How To Use an ESM dependency in a library that exports ESM+CJSA common problem Typescript library developers face is when importing libraries that only output ESM. For example [the standard library (@std) from the JSR repo](https://jsr.io/@std) only outputs ESM as according to Deno’s mandate. However for most T...TypeScript
Ariska Hidayattech.finlup.id·Dec 9, 2024CommonJS vs ES Modules: Perbandingan Lengkap, Kelebihan, Kekurangan, dan Kapan MenggunakannyaKelebihan dan Kekurangan CommonJS (CJS) Kelebihan: Mature dan Stabil CommonJS telah digunakan secara luas di Node.js sejak awal, sehingga didukung secara luas oleh ekosistem Node.js. Eksekusi Dinamis Anda dapat mengimpor modul secara dinamis dengan...commonjs
Anusha Tomardifference-between-cjs-and-esm.hashnode.dev·Dec 6, 2024JavaScript Modules Explained: CommonJS vs ESM - A Beginner's GuideThe Evolution of JavaScript Modules JavaScript has come a long way from its early days of global variables and script tags. As web applications grew more complex, developers needed a way to organize code, manage dependencies, and create more modular,...1 likecjs and esm
Akritiakriti111.hashnode.dev·Aug 31, 2024Understanding CommonJS (CJS) and ES Modules (ESM) in JavaScriptLet's understand what module is! In the world of JavaScript, modules play a crucial role in organizing and structuring our code. They allow us to break down complex applications into manageable pieces, promote reusability, and enhance maintainability...10 likes·32 readsCommonjs Modules
Gautam VajaforCodeParrot 10x Dev10xdev.codeparrot.ai·Feb 10, 2024require Vs import: Old Vs New war in Javascriptimporting a module is a fundamental concept that refers to the process of bringing one module's code into another module. Think of it as borrowing a book from a library; you don't need to own every book, you just borrow what you need when you need it...10 likes·127 readsES6
Okiki Ojoblog.okikio.dev·Jul 8, 2023Mastering the Art of ESM and CJS Package HandlingGreetings, fellow devs and bundlejs aficionados! 🚀 I was closing out some long lived issues over on bundlejs, when issue #50 reminded me of the ongoing debate about how bundlejs should handle the ESM and CJS packages. Lightbulbs flickered, coffee wa...1 like·1.1K readsbundlejsTypeScript