Skip to content

[Bug]: Play function mount destructuring only works inline #33366

@ghengeveld

Description

@ghengeveld

Describe the bug

In order to detect whether mount is used in a play function, we currently rely on the play function context arg to be destructured in-place (as function args). This requires SWC's bugfixes option to be set, otherwise the destructuring would be moved to the function body where our detection doesn't work.

Reproduction link

Reproduction steps

No response

System

-

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions