-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[우창완] 챕터 10: 모듈형 자바스크립트 디자인 패턴 #91
The head ref may contain hidden characters: "10/\uC6B0\uCC3D\uC644"
Conversation
vscode는 최근에 amd로 작성된 모듈들을 esm 으로 마이그레이션하여 bundle size가 10%를 줄였다고 한다. | ||
|
||
https://code.visualstudio.com/updates/v1_94#_esm-is-shipping-for-vs-code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오오.. 하나 또 알아갑니다🧐
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대창완 👏 👏
node 23 부터 require(esm) 을 지원한다. | ||
|
||
https://github.com/nodejs/node/pull/51977 | ||
|
||
```js | ||
// main.js | ||
const required = require('./point.mjs'); | ||
|
||
(async () => { | ||
const imported = await import('./point.mjs'); | ||
console.log(imported === required); // true | ||
})(); | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍 👍
vscode는 최근에 amd로 작성된 모듈들을 esm 으로 마이그레이션하여 bundle size가 10%를 줄였다고 한다. | ||
|
||
https://code.visualstudio.com/updates/v1_94#_esm-is-shipping-for-vs-code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
대창완 👏 👏
No description provided.