2024. 9. 4. 14:58ㆍ개발/토막난 상식
nodeLinker: pnp
장점
Extremely fast
Content-addressable store
Protects against ghost dependencies
Semantic dependency errors
Perfect hoisting optimizations
Provides a dependency tree API
Can be upgraded into zero-installs
https://yarnpkg.com/advanced/pnpapi
https://yarnpkg.com/features/caching#zero-installs
단점
Less idiomatic
IDE integrations often require SDKs
Sometimes requires packageExtensions
https://yarnpkg.com/configuration/yarnrc#packageExtensions
nodeLinker: pnpm
장점
Slower than PnP, but still very fast
Content-addressable store
Protects against some ghost dependencies
No need for IDE SDKs
단점
Symlinks aren't always supported by tools
Hard links can lead to strange behaviors
Generic dependency errors
Sometimes requires packageExtensions
nodeLinker: node-modules
장점
Perfect compatibility with the whole ecosystem
Optional support for hardlinks (nmMode)
No need for IDE SDKs
단점
Average speed
No protection against ghost dependencies
Imperfect hoisting due to the filesystem reliance
속도 비교
https://xionwcfm.tistory.com/452
추가 의견
https://engineering.ab180.co/stories/yarn-to-pnpm
'개발 > 토막난 상식' 카테고리의 다른 글
10만건 정도에서 중복 확인 시간 (0) | 2024.09.09 |
---|---|
test용 무료 공개 api (2) | 2024.09.04 |
깃허브 스타 변화량 비교 사이트 추천 (0) | 2024.09.03 |
2024 state of css 설문 시작 (0) | 2024.08.28 |
언제 공통 코드를 만들어서 사용해야 할까? (0) | 2024.08.23 |