JaeYeopHan / tip-archive

📦 Archiving various development tips. If you watch this repository, you can get issues related to the newly registered development tip from the GitHub feed.
https://www.facebook.com/Jbee.dev/
245 stars 8 forks source link

lodash tree shaking 이슈 #34

Open JaeYeopHan opened 5 years ago

JaeYeopHan commented 5 years ago

Description

현재 lodash API 중 사용하고 있는 것은...

  1. partial
  2. get
  3. merge
  4. toInteger
  5. concat
  6. find
  7. isEmpty
  8. reduce
  9. isEmpty
  10. last
  11. size
  12. isUndefined
  13. upperFirst
  14. camelCase
  15. debounce
  16. noop
  17. isString
  18. toNumber
  19. includes

...

Reports

no-treeshaking

tree-shaking

Conclusion

$ npm i -S lodash-es
JaeYeopHan commented 5 years ago

이미 lodash를 여러 군데에서 사용한 프로젝트에서는 어떻게 하면 좋을까? 싹 다 바꿀 수도 없는 노릇이다.

@KrComet님이 알려주신 babel-plugin-lodash를 사용하자.

changyoungoh commented 3 years ago

:+1: