Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add sideEffects: false to package json in esm folder #683

Merged
merged 6 commits into from Jun 9, 2023

Conversation

jeetiss
Copy link
Contributor

@jeetiss jeetiss commented Jun 9, 2023

this PR is part of


PR-Codex overview

This PR focuses on optimizing the viem package by marking it as side effects free. Notable changes include:

Detailed summary

  • viem package marked as side effects free
  • build:esm script now includes sideEffects property in package.json
  • Added size-limit checks for viem (cjs), viem (tree-shaking check), and viem/chains
  • Updated simple-git-hooks configuration.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link

changeset-bot bot commented Jun 9, 2023

🦋 Changeset detected

Latest commit: 351d1c4

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jun 9, 2023

@jeetiss is attempting to deploy a commit to the wagmi Team on Vercel.

A member of the Team first needs to authorize it.

@fubhy
Copy link
Collaborator

fubhy commented Jun 9, 2023

Thanks. You can also introduce the size-limit probes here imho. That way we can easily iterate on them in the follow-up with the annotations.

@fubhy
Copy link
Collaborator

fubhy commented Jun 9, 2023

Thanks @jeetiss! That's good to go as far as I'm concerned. I think we can add even more checks to the size-limit config later on for good measure but that can follow in another PR.

LGTM!

Copy link
Member

@tmm tmm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to add a changeset for package.json#sideEffects? Then lgtm.

@tmm tmm merged commit fe259a0 into wevm:main Jun 9, 2023
8 of 11 checks passed
@github-actions github-actions bot mentioned this pull request Jun 9, 2023
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.

None yet

3 participants