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

Tree shaking: react-ui fix #837

Merged
merged 3 commits into from
Oct 26, 2024
Merged

Tree shaking: react-ui fix #837

merged 3 commits into from
Oct 26, 2024

Conversation

jmderby
Copy link
Contributor

@jmderby jmderby commented Oct 25, 2024

Description

This PR adds tree shaking capabilities back to the react-ui package
The solution around our twind issue was to add a TwindProvider that runs install inside a useEffect on mount.

Test plan

Tested build and styles worked as expected.

Package updates

@crossmint/client-sdk-react-ui

Copy link

vercel bot commented Oct 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
smart-wallet-auth-demo ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2024 0:36am

Copy link

changeset-bot bot commented Oct 25, 2024

🦋 Changeset detected

Latest commit: 769dd4a

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

This PR includes changesets to release 4 packages
Name Type
@crossmint/client-sdk-react-ui Patch
@crossmint/client-sdk-react-ui-starter Patch
@crossmint/client-sdk-nextjs-starter Patch
@crossmint/client-sdk-smart-wallet-next-starter Patch

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

@@ -15,7 +15,7 @@
"types": "./dist/index.d.ts",
"files": ["dist", "src", "LICENSE"],
"scripts": {
"build": "tsup",
"build": "NODE_OPTIONS='--max-old-space-size=8192' tsup",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

building locally wouldn't work until i increased the old-space memory size.

@mPaella mPaella merged commit aecf9b0 into main Oct 26, 2024
3 of 4 checks passed
@mPaella mPaella deleted the jonathan/react-ui-ts-fix branch October 26, 2024 00:44
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.

2 participants