반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- vue3 drag and drop
- d3 지도 확대/축소
- firebase id 자동
- commonjs와 ecmascript modules(esm)
- repaint
- 함수형 프로그래밍
- nuxt universal rendering
- ecmascript modules(esm)
- in-memory pm2 is out-of-date
- component is already mounted please use $fetch instead.
- vue draggable 차트 안나옴
- d3 지도 툴팁
- pm2 업데이트 에러
- img 태그 srcset
- Learning React
- vue 컴포저블 함수
- 이미지 성능 최적화
- 인터넷 거버넌스
- vue composable 함수
- img 태그 sizes
- vuedraggable
- $fetch
- ToDo
- reflow
- 웹 퍼포먼스 도구
- d3 지도
- d3 지도 타입스크립트
- cloud firestore id auto increment
- pm2 버전 충돌
- git
Archives
- Today
- Total
목록ecmascript modules(esm) (1)
빵 입니다.
CommonJS(CJS) V.S. ECMAScript Modules(ESM)
📌 모듈 시스템◾ 자바스크립트에서 모듈 시스템은 코드를 효율적으로 분리하고 재사용 가능하게 만드는 역할을 한다.◾ CommonJS와 ESM은 모듈화를 지원하는 두 가지 방식이다. 📌 CommonJS🧿 Node.js 환경에서 사용 - Node.js 초기 설계 단계에서 채택된 모듈 시스템🧿 require() 함수로 모듈을 가져오고, module.exports로 내보낸다.// math.jsmodule.exports = { add: (a, b) => a + b, subtract: (a, b) => a - b,};// app.jsconst math = require('./math');console.log(math.add(2, 3)); // 5 🧿 동기적 모듈을 로딩- 동기적으로 모듈을 로드하기 때문에..
프론트엔드/javascript
2025. 1. 21. 10:28