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

Breaks destructuring assignment in templates #432

Closed
tedbyron opened this issue Feb 23, 2024 · 1 comment
Closed

Breaks destructuring assignment in templates #432

tedbyron opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@tedbyron
Copy link

When using array destructuring assignment in a template, this plugin is removing the comma that skips the first item of the array:

{#each arr as [, { item }]}
@tedbyron
Copy link
Author

Looks like this destructuring doesn't get changed:

{#each arr as item, i}
  {@const [, { something }] = item}

@dummdidumm dummdidumm added the bug Something isn't working label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants