-
Notifications
You must be signed in to change notification settings - Fork 66
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
Support new script/style behavior #347
Conversation
🦋 Changeset detectedLatest commit: d0b7945 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@@ -401,7 +401,7 @@ func render1(p *printer, n *Node, opts RenderOptions) { | |||
p.print(`]`) | |||
} else { | |||
for _, a := range n.Attr { | |||
if transform.IsImplictNodeMarker(a) { | |||
if transform.IsImplictNodeMarker(a) || a.Key == "is:inline" { |
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.
This strips is:inline
directives from the output
internal/transform/scope-css.go
Outdated
if hasTruthyAttr(n, "global") { | ||
if hasTruthyAttr(n, "is:global") { |
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.
Removed support for global
, just supporting is:global
. Is that what we want? It's minimal to support both.
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.
Added a migration warning for global
, but still supporting both.
LGTM! |
Changes
is:inline
andis:global
script
behavior,style is:global
astro#2961Testing
Tests updated
Docs
Covered by core PR