Skip to content

Conversation

loynoir
Copy link

@loynoir loynoir commented Mar 21, 2022

This PR

  1. makes js-yaml esm treeshake friendly
  2. new test added
  3. NOT update dist, to get it easier to review
  4. 2+3, leads to CI failure

This PR + updated dist

  1. can be found in branch https://github.com/loynoir/js-yaml/tree/feat-esm-treeshake-friendly-with-dist
  2. tests pass on node10, node12, node 14, node16, node17
  3. fixed esm release tree shake is not pure #631

@alexander-riss
Copy link

@puzrin any opinion on this? it looks like this might help downstream projects cut down on bundle size via tree-shaking

@seravifer
Copy link

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

esm release tree shake is not pure
3 participants