Skip to content

Only building dist for ESM modules? #626

Open
@shubham441996

Description

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 ?

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions