Skip to content

Conversation

@openscript
Copy link

Fixes #1095

Changes

When printing the AST and a slot attribute is found, we walk up the tree to check whether we are in an Astro component or a web component.

Testing

We check now different variations of nesting a web component inside expression blocks, to see if the slot attribute is removed or not.

Docs

bug fix only

@changeset-bot
Copy link

changeset-bot bot commented Jan 15, 2026

🦋 Changeset detected

Latest commit: 8489d9f

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

This PR includes changesets to release 1 package
Name Type
@astrojs/compiler 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

@openscript openscript changed the title Fix slot attribute stripped inside expression fix: slot attribute stripped inside expression Jan 15, 2026
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.

🐛 BUG: slot attribute stripped inside expression

1 participant