melt-ui / preprocessor

19 stars 4 forks source link

fix: New `{@const}` injection strategy #32

Closed AdrianGonz97 closed 1 year ago

AdrianGonz97 commented 1 year ago

Closes #31

{@const} tags are now injected into the action's direct parent blocks. This helps cover cases where an action with an expression contains no reference to it's parents context.

In short, melt actions that are found in blocks are no longer hoisted into the top script module.

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 66465604fd82b03541631d102a273c08b2135f08

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

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