Ariska Hidayattech.finlup.id路Dec 9, 2024Apa Itu Tree-Shaking? Teknik Optimasi untuk Mengurangi Ukuran Bundel dan Meningkatkan Performa AplikasiTree-shaking adalah teknik optimasi dalam pengembangan perangkat lunak, terutama pada bundler JavaScript seperti Webpack, Rollup, atau Parcel, yang digunakan untuk menghilangkan kode yang tidak terpakai (dead code) dalam aplikasi web. Prinsip dasar t...tree shaking
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
Vivekheyvivek.com路Jul 6, 2024The Future of Web Development: Embracing JavaScript Web Components 馃殌The world of development is forever changing, and this has placed JavaScript Web Components at the threshold of becoming an enormous potential instrument set that might change how we build and deploy applications. They are potential replacements for ...11 likes路31 readsJavaScript
Vivekheyvivek.com路Jul 7, 2024Build a micro-javascript frontend framework based on Web Components and no-buildCreating a basic JavaScript framework on Web Components with Shadow DOM and ES Modules, including client-side routing, requires a few steps. I shall outline how one can set up a framework. Step 1: Setting Up Your Project Create a brand new directory ...10 likes路28 readsJavaScript
Ijlal Ahmadblogs.ijlalahmad.tech路Jan 15, 2024Crafting Hybrid NPM Packages with TypeScript: A Comprehensive GuideIn this article, I'll walk you through the process of achieving a hybrid nature for npm packages, drawing from my own experiences and addressing potential challenges that may arise. I'll assume that you have a basic understanding of deploying npm pac...119 readsnpm
Dana Ciocandanaciocan.com路Nov 6, 2023Troubleshooting tree-shakingI have spent the last couple of months working on making a UI library (specifically a collection of React components for reuse in other projects) tree-shakeable. In that time, I felt like I read almost every article on tree-shaking that exists on the...Tree shakingtree shaking