artsy / palette

Artsy's design system

Home Page:https://palette-storybook.artsy.net/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only building dist for ESM modules?

shubham441996 opened this issue · comments

I have seen the dist of @artsy/palette package.
Have Following question?

  • Why we are not building package in other module like UMD.
  • Why we are using babel if we can compile it using tsc and it will produce the same lib.
import {abc}  from 'xyz';
import abc from xyz/dist/abc

did both the line will do the tree shaking ?