Skip to content

Conversation

@tenphi
Copy link
Member

@tenphi tenphi commented Sep 4, 2025

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Sep 4, 2025

🦋 Changeset detected

Latest commit: 822b4b0

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

This PR includes changesets to release 1 package
Name Type
@cube-dev/ui-kit 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

@vercel
Copy link

vercel bot commented Sep 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
cube-ui-kit Ready Ready Preview Comment Sep 4, 2025 9:32am
cube-ui-kit-cursor Ready Ready Preview Comment Sep 4, 2025 9:32am

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

📦 NPM canary release

Deployed canary version 0.0.0-canary-e8aa05f.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

🧪 Storybook is successfully deployed!

@github-actions
Copy link
Contributor

github-actions bot commented Sep 4, 2025

🏋️ Size limit report

Name Size Passed?
All 298.74 KB (+0.19% 🔺) Yes 🎉
Tree shaking (just a Button) 31.46 KB (+0.07% 🔺) Yes 🎉
Tree shaking (just an Icon) 19.35 KB (+0.14% 🔺) Yes 🎉

Click here if you want to find out what is changed in this build

cursor[bot]

This comment was marked as outdated.

rawCSSSize: Math.round(rawData.size * scaleFactor),
keyframesCSSSize: Math.round(keyframesData.size * scaleFactor),
propertyCSSSize: Math.round(propertyData.size * scaleFactor),
};
Copy link

Choose a reason for hiding this comment

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

Bug: Global CSS Extraction Error Causes Division By Zero

A division by zero error can occur when globalTypesTotalSize is 0, but totalGlobalCSSSize is non-zero. This happens if individual global CSS extractions yield no content, but the overall allCSS length implies global CSS exists. The scaleFactor calculation then results in Infinity or NaN, corrupting the adjustedGlobalSizes and debug output.

Fix in Cursor Fix in Web

@tenphi tenphi merged commit 3f8be8e into main Sep 4, 2025
14 checks passed
@tenphi tenphi deleted the fix-debug-tools branch September 4, 2025 09:33
@github-actions github-actions bot mentioned this pull request Sep 4, 2025
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