Node 22.12.0부터는 CommonJS방식으로 ESM패키지 가져올 수 있다 #551
milooy
started this conversation in
Today I Learned
Replies: 1 comment
-
|
오.. 이제 진짜 1,2년뒤에는 dual packaging이 필요없어지겠네요. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ESM-only 패키지란?
import만 사용할 수 있고, 기존의require로는 가져올 수 없었던 패키지죠.이전에는?
require로 ESM-only 패키지를 가져오려면 experimental 플래그를 사용해야 했어요.(예:
--experimental-require-esm)이번 업데이트로?
require로 ESM-only 패키지를 직접 가져올 수 있게 됐습니다.Beta Was this translation helpful? Give feedback.
All reactions