---
title: "#esm articles | Hashnode"
description: "Explore 18 articles tagged #esm on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/esm"
---

Tag

# #esm

18 posts · 0 followers

[Satpalsinh Rana](https://hashnode.com/@satpalsinh) · [Mar 18](https://hashnode.com/posts/cjs-vs-esm/69bae5fe8c55d6eefb45dd2b)

### [CommonJs Vs EcmaScript Modules](https://blogs.satpal.cloud/cjs-vs-esm?utm_source=hashnode&utm_medium=feed)

Basic to advance guide to understand CJS and ESM

8 min read · [blogs.satpal.cloud](https://blogs.satpal.cloud/cjs-vs-esm?utm_source=hashnode&utm_medium=feed)

[abhishek aadarsh](https://hashnode.com/@shhekk) · [Jan 14](https://hashnode.com/posts/which-module-to-choose-nodenext-or-esnext/69678e8a0c19e185daa40b2a)

### [which module to choose nodenext or esnext](https://shhekk.hashnode.dev/which-module-to-choose-nodenext-or-esnext?utm_source=hashnode&utm_medium=feed)

Lets Understand what is nodenext and esnext which you usually find in tsconfig.json but don't know what these options actually does. Before that you must have a basic understanding of esm and cjs. In .js file if something is being exported, it become...

4 min read · [shhekk.hashnode.dev](https://shhekk.hashnode.dev/which-module-to-choose-nodenext-or-esnext?utm_source=hashnode&utm_medium=feed)

[Junghun Kim](https://hashnode.com/@vienna453) · [Nov 8, 2025](https://hashnode.com/posts/tree-shaking/690ede76f68b8a110909dd25)

### [번들러가 코드 크기를 줄이는 진정한 방법 — Tree Shaking의 원리와 한계](https://devnote-vienna453.hashnode.dev/tree-shaking?utm_source=hashnode&utm_medium=feed)

Tree Shaking으로 번들 사이즈를 줄이는 원리와 한계를 살펴보고, ESM 기반 최적화 방법을 알아봅니다

5 min read · [devnote-vienna453.hashnode.dev](https://devnote-vienna453.hashnode.dev/tree-shaking?utm_source=hashnode&utm_medium=feed)

[Star](https://hashnode.com/@insp) · [Oct 11, 2025](https://hashnode.com/posts/ecmascript-modules/68ea8fab2fd71e4d8b2a0e95)

### [ECMAScript Modules](https://adventure10.hashnode.dev/ecmascript-modules?utm_source=hashnode&utm_medium=feed)

What is ESM? ESM stands for ECMAScript Modules, which is the official standard for modular JavaScript defined in the ECMAScript specification (ES6/ES2015 and later). ESM allows you to split JavaScript code into separate files (modules) that can imp...

3 min read · [adventure10.hashnode.dev](https://adventure10.hashnode.dev/ecmascript-modules?utm_source=hashnode&utm_medium=feed)

[Ariska Hidayat](https://hashnode.com/@ariska138) · [May 31, 2025](https://hashnode.com/posts/kenapa-typescript-layak-dipelajari-lebih-dulu-daripada-cjs-atau-esm/683ae481a4f36629fc58dd01)

### [🧭 Kenapa TypeScript Layak Dipelajari Lebih Dulu daripada CJS atau ESM](https://tech.finlup.id/kenapa-typescript-layak-dipelajari-lebih-dulu-daripada-cjs-atau-esm?utm_source=hashnode&utm_medium=feed)

Dalam dunia JavaScript modern, banyak developer pemula bingung: harus mulai dari mana? Haruskah memahami dulu CommonJS (CJS), ECMAScript Modules (ESM), atau langsung loncat ke TypeScript? Jawabannya mungkin mengejutkan: Fokuslah dulu ke TypeScript. ...

3 min read · [tech.finlup.id](https://tech.finlup.id/kenapa-typescript-layak-dipelajari-lebih-dulu-daripada-cjs-atau-esm?utm_source=hashnode&utm_medium=feed)

[K. Stephen Clark](https://hashnode.com/@clickwithclark) · [May 7, 2025](https://hashnode.com/posts/how-to-convert-commonjs-modules-to-esm-a-step-by-step-guide/681bd75ed94dc860e52cd5b2)

### [How to Convert CommonJS Modules to ESM: A Step-by-Step Guide](https://blog.clickwithclark.com/how-to-convert-commonjs-modules-to-esm-a-step-by-step-guide?utm_source=hashnode&utm_medium=feed)

The Only Resource You Need for Switching from CommonJS to ESM

6 min read · [blog.clickwithclark.com](https://blog.clickwithclark.com/how-to-convert-commonjs-modules-to-esm-a-step-by-step-guide?utm_source=hashnode&utm_medium=feed)

[Dhanraj Pai Raiturkar](https://hashnode.com/@pai-tech) · [Apr 17, 2025](https://hashnode.com/posts/how-i-solved-jest-unexpected-token-export-error-when-testing-a-pure-esm-package/6800d54aaf15924d6970f675)

### [🧩 How I Solved Jest "Unexpected token 'export'" Error (When Testing a Pure ESM Package)](https://paitech.hashnode.dev/how-i-solved-jest-unexpected-token-export-error-when-testing-a-pure-esm-package?utm_source=hashnode&utm_medium=feed)

Running into 'SyntaxError: Unexpected Token export' in Jest tests? Learn why Pure ESM packages cause this issue and discover two simple solutions: mocking t

4 min read · [paitech.hashnode.dev](https://paitech.hashnode.dev/how-i-solved-jest-unexpected-token-export-error-when-testing-a-pure-esm-package?utm_source=hashnode&utm_medium=feed)

[InseoYang](https://hashnode.com/@1nxeo) · [Mar 11, 2025](https://hashnode.com/posts/import-cost/67cfaf394234907f2af9a023)

### [번들링 최적화를 통한 import cost 줄이기](https://1nxeo.hashnode.dev/import-cost?utm_source=hashnode&utm_medium=feed)

번들링 최적화를 통해 import cost를 줄이는 방법과 배럴 파일의 문제점을 상세히 설명하는 가이드

6 min read · [1nxeo.hashnode.dev](https://1nxeo.hashnode.dev/import-cost?utm_source=hashnode&utm_medium=feed)

[Ryan Lee](https://hashnode.com/@ryanleecode) · [Dec 17, 2024](https://hashnode.com/posts/how-to-use-an-esm-dependency-in-a-library-that-exports-esmcjs/67611779139f9a95888afec4)

### [How To Use an ESM dependency in a library that exports ESM+CJS](https://rlee.dev/how-to-use-an-esm-dependency-in-a-library-that-exports-esmcjs?utm_source=hashnode&utm_medium=feed)

Learn how to use an ESM dependency in a library that exports both ESM and CJS with TSUP bundler

2 min read · [rlee.dev](https://rlee.dev/how-to-use-an-esm-dependency-in-a-library-that-exports-esmcjs?utm_source=hashnode&utm_medium=feed)

[Ariska Hidayat](https://hashnode.com/@ariska138) · [Dec 9, 2024](https://hashnode.com/posts/commonjs-vs-es-modules-perbandingan-lengkap-kelebihan-kekurangan-dan-kapan-menggunakannya/67564674ccdcd737d93e8179)

### [CommonJS vs ES Modules: Perbandingan Lengkap, Kelebihan, Kekurangan, dan Kapan Menggunakannya](https://tech.finlup.id/commonjs-vs-es-modules-perbandingan-lengkap-kelebihan-kekurangan-dan-kapan-menggunakannya?utm_source=hashnode&utm_medium=feed)

Perbandingan CommonJS (CJS) dan ES Modules (ESM) memiliki kelebihan dan kekurangan masing-masing, tergantung pada konteks penggunaannya.

2 min read · [tech.finlup.id](https://tech.finlup.id/commonjs-vs-es-modules-perbandingan-lengkap-kelebihan-kekurangan-dan-kapan-menggunakannya?utm_source=hashnode&utm_medium=feed)
