-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 769dd4a The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 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 |
@@ -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", |
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.
building locally wouldn't work until i increased the old-space memory size.
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