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

Pre release fixes #392

Merged
merged 5 commits into from
Mar 27, 2024
Merged

Pre release fixes #392

merged 5 commits into from
Mar 27, 2024

Conversation

chrisvxd
Copy link
Member

A few final fixes before v0.14.0 release based on canary testing.

@4leite I had to revert #359 as the esbuild implementation of CSS modules does not isolate styles using a random hash, only by checking for conflicts with the rest of the bundle. Since we don't know the final bundling environment, we require a random hash to avoid collisions.

i.e. instead of names like .Button-abc123, tsup (aka esbuild) is generating names like .Button. Perhaps there is a way to address this, but I couldn't see anything when reading the docs, and didn't want to delay the release to debug fully.

The esbuild implementation of CSS modules does not provide an obvious way to isolate the styles with a random hash.

Instead of names like .Button-abc123, tsup is generating names like .Button, which dramatically increases the risk of collision when consumed.
Copy link

vercel bot commented Mar 27, 2024

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

Name Status Preview Comments Updated (UTC)
puck-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 27, 2024 7:08pm
puck-docs ✅ Ready (Inspect) Visit Preview Mar 27, 2024 7:08pm

@chrisvxd chrisvxd force-pushed the pre-release-fixes branch from 146eecc to 2e7ad5f Compare March 27, 2024 19:05
@chrisvxd chrisvxd merged commit 26bc4ff into main Mar 27, 2024
4 checks passed
@chrisvxd chrisvxd deleted the pre-release-fixes branch March 27, 2024 19:09
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.

1 participant