-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: esm-only #1173
feat: esm-only #1173
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: a1b5b9f The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
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 |
d4d2fac
to
8f0a9de
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Would be sweet to have some docs around using wagmi w/ tooling that doesn't have first-class support for ESM such as Jest + Remix!
* docs: start migration guide * feat: esm-only (#1173) * wip: set up tsup * wip: working examples * build: tsc * fix: recursive conditional return types * refactor: remove preconstruct references * feat: dev mode * refactor: tsup config * chore: add changeset * build: validate exports * fix: jsx runtime import issue * chore: add types to package.json exports * refactor: addressOrName to address (#1203) * refactor: remove deprecated testnets + make `apiKey` required (#1185) * feat: make apiKey required on providers * tech-debt: remove deprecated testnets * chore: docs + changesets * chore: update tsdoc * chore: update migration guide * fix: lint error Co-authored-by: jxom <jakemoxey@gmail.com>
Description
This PR converts
wagmi
from bundling both CJS + ESM, to bundling pure ESM.This will probably affect tooling that is sensitive to importing ESM such as Jest and Remix. We might need to create some additional guides on how to use wagmi with these tools as we move to pure ESM.
Evolution of #933 using tsup instead of patching Preconstruct
Fixes #838
Fixes #1004
Additional Information
Your ENS/address: awkweb.eth