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

feat(runtime)!: split uno-layer into separate <style> #2131

Merged
merged 6 commits into from
Feb 22, 2023

Conversation

chu121su12
Copy link
Collaborator

@chu121su12 chu121su12 commented Jan 30, 2023

Alternative to #2082

#2082 (comment)

Each uno-layer now get inside its own <style> element. One concern is the style placement in dom is done only once and may be different depending on the location of the previous layer's <style>

@netlify
Copy link

netlify bot commented Jan 30, 2023

Deploy Preview for unocss ready!

Name Link
🔨 Latest commit 39b53de
🔍 Latest deploy log https://app.netlify.com/sites/unocss/deploys/63f5e573af82ac00073a377b
😎 Deploy Preview https://deploy-preview-2131--unocss.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@chu121su12 chu121su12 marked this pull request as ready for review January 30, 2023 11:12
Copy link
Member

@antfu antfu left a comment

Choose a reason for hiding this comment

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

LGTM, would you consider this breaking change or not?

@chu121su12
Copy link
Collaborator Author

chu121su12 commented Feb 1, 2023

Technically yes as this PR changes how the <style>s in dom are generated. If developers move the original <style> around, the behavior now may/may not work differently. Otherwise, if the developers do not move the original <style> element they would not precieve any change.

Please mark this as breaking if deemed so.

There's signature change so it's breaking anyway

@chu121su12 chu121su12 changed the title feat(runtime): split uno-layer into separate <style> feat(runtime)!: split uno-layer into separate <style> Feb 1, 2023
@antfu antfu added this to the Next milestone Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants