Jan 14 ยท 4 min read ยท 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...
Join discussionNov 8, 2025 ยท 5 min read ยท ํ๋ก ํธ์๋ ํ๋ก์ ํธ๊ฐ ๋ํํ๋ ์๋ก ๋น๋ ๊ฒฐ๊ณผ๋ฌผ์ ํฌ๊ธฐ๊ฐ ์ ์ฐจ ์ฆ๊ฐํ๋ ๊ฒ์ ์์ฐ์ค๋ฌ์ด ํ์์ ๋๋ค.๊ธฐ๋ฅ์ ํ์ฅ๊ณผ ๋ผ์ด๋ธ๋ฌ๋ฆฌ์ ๋์ ์ฌ์ฉ์ผ๋ก ์ธํด ๋ฒ๋ค ์ฌ์ด์ฆ(Bundle Size) ๊ฐ ์ปค์ง๊ฒ ๋๋ฉฐ, ์ด๋ ๋ก๋ฉ ์๋ ๋ฐ ์ฌ์ฉ์ ๊ฒฝํ ์ ํ๋ก ์ง๊ฒฐ๋ฉ๋๋ค. ๊ทธ๋ฌ๋ ์ค์ ๋ก ์ ํ๋ฆฌ์ผ์ด์ ์ด ์ฌ์ฉํ๋ ์ฝ๋๋ ์ ์ฒด ์์กด์ฑ์ ์ผ๋ถ์ ๋ถ๊ณผํฉ๋๋ค.์ด๋ ์ฌ์ฉ๋์ง ์๋ ์ฝ๋๋ฅผ ์ ๊ฑฐํ์ฌ ๋ฒ๋ค์ ๊ฒฝ๋ํํ๋ ๊ณผ์ ์ ์ํํ๋ ๊ธฐ์ ์ด ๋ฐ๋ก Tree Shaking์ ๋๋ค.ํ๋์ ๋ฒ๋ค...
Join discussionOct 18, 2025 ยท 3 min read ยท 1. ไปไนๆฏ Rollup ไธ ESM๏ผ Rollup ๅบ็กๆฆๅฟต Rollup ๆฏไธ็งไธๆณจไบ ES ๆจกๅ๏ผESM๏ผ็ JavaScript ๆๅ ๅทฅๅ ทใๅฎ้่ฟ้ๆๅๆๆจกๅไน้ด็ไพ่ตๅ ณ็ณป๏ผๅฎ็ฐๆ่ด็ Tree Shaking ๏ผ่ฝๅคๅจๆ็ปไบง็ฉไธญๅ้คๆชไฝฟ็จ็ไปฃ็ ๏ผไป่ๅคงๅน ๅบฆ้ไฝ bundle ๅคงๅฐใRollup ๆๆฉ็จไบๅบ็บงๅซ็ๆๅ ๏ผๅฆ lodashใmoment ็ญ๏ผๅ ๅ ถ็ๆ็ iifeใesmใcjs ็ญๅค็งๆ ผๅผ็ๅ ผๅฎนๆง่ๅนฟๅๆฌข่ฟใ ESM ๅบ็กๆฆๅฟต ESM๏ผECMAScript Modules๏ผ...
Join discussionOct 11, 2025 ยท 3 min read ยท 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...
Join discussionJul 9, 2025 ยท 3 min read ยท Why Packaging Still Breaks in 2025? Despite being two decades into Node.js, publishing a library that works across CommonJS (CJS), ECMAScript Modules (ESM), TypeScript, and bundlers is still confusing. Why? Because: Node.js evolved from CJS to ESM g...
Join discussion
May 31, 2025 ยท 3 min read ยท 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. ...
Join discussion
May 7, 2025 ยท 6 min read ยท As JavaScript evolves, ECMAScript Modules (ESM) have become the modern standard for writing modular code. ESM supports native imports in browsers, allows for asynchronous loading, and enables better tree-shaking during bundling. If you're transitioni...
Join discussion
Apr 17, 2025 ยท 4 min read ยท Recently, while writing unit tests for our React application, I stumbled into one of those classic "wait... what just happened?" developer moments. Everything was going great, and then โ boom ๐ฅ โ my npm run test exploded with this beauty: SyntaxErro...
Join discussion
Mar 11, 2025 ยท 6 min read ยท ์ต๊ทผ ํ์์ ๊ฐ๋ฐํ ๋์์ธ ์์คํ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ํ๋ก์ ํธ์ ์ ์ฉํ๊ณ ์ฌ์ฉํ๋ฉด์ ํฅ๋ฏธ๋ก์ด ๋ฌธ์ ๋ฅผ ๋ฐ๊ฒฌํ๋ค.(์ฌ์ค ์ ๋ถํฐ ์๊ณ ์์์ง๋ง ์ ๊น ๋ฏธ๋ค๋๋ค.) ๋จ์ํ Button ์ปดํฌ๋ํธ ํ๋๋ง ํ์ํ๋๋ฐ, ๋ฒ๋ค ๋ถ์ ๋๊ตฌ๋ฅผ ํ์ธํด๋ณด๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ ์ฒด๊ฐ ๋ฒ๋ค์ ํฌํจ๋์ด ์์๋ ๊ฒ์ด๋ค. ๋จ ํ๋์ ์ปดํฌ๋ํธ๋ฅผ ์ํด ์๋ฐฑ KB์ ์ฝ๋๊ฐ ์ถ๊ฐ๋์ด๋ฒ๋ฆฐ ๊ฒ.. // ์์: Button ์ปดํฌ๋ํธ๋ง ๊ฐ์ ธ์ค๊ธฐ import { Button } from '@company/de...
Join discussion