-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix cssesc from breaking browser code #10194
Conversation
🦋 Changeset detectedLatest commit: e16ffde The changes in this PR will be included in the next version bump. 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 |
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.
I think the changeset should be more detailed. Sorry, I'm very confused by the whole PR
Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
What do you think it should say? I can give a better description of what is going on in the PR comment, but I don't think the intent of changesets is to explain how the bug is fixed, just what is fixes. EDIT: I've updated the PR comment to explain what is happening and how this fixes it. |
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.
Will have to sign soon, so I'll preemptively approve this first! I think making it work and adding a warning is a good middleground for now. And we can add on Linear to remove this for 5.0.
!preview allow-cc |
Snapshots have been released for the following packages:
Publish Log
Build Log
|
* Fix cssesc from breaking browser code * Include specific thing instead * Update .changeset/quick-bottles-march.md Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev> * Fix ISR * Remove query stripping altogether * Warn on client usage * Fix build * oops --------- Co-authored-by: Florian Lefebvre <contact@florian-lefebvre.dev>
Changes
astro > cssesc
as an optimized dep<script>
s do not work with Vercel ISR in development #10187astro:content
loads a lot of Astro's internal server-side code. This includes the server-side portion of View Transitions. This code depends oncssesc
which is used to correctly escapeview-transition-name
properties to what is valid in CSS. This code is CommonJS and doesn't work in the browser unless optimized. This change makes it so that this module can be optimized.astro:content
in the browser. This is only being fixed because a significant number of people are doing so. This PR will be updated to warn.Testing
Docs
N/A, bug fix