-
Notifications
You must be signed in to change notification settings - Fork 99
Logical operator breaks dev and build #723
Copy link
Copy link
Open
Labels
- P4: importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)
Description
What version of astro are you using?
2.0.6
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
When using a logical operator (<=), Astro breaks and thinks there is something wrong with a fragment.
Code example:
<Layout title="Welcome to Astro.">
<main>
{
[1,2,3,4,5,6,7,8,9].filter((_, index) => index <= 6 ).map(n => (
<div>{n}</div>
))
}
</main>
</Layout>
The following breaks it: index <= 6
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-v8kbtt?file=src/pages/index.astro
Participation
- I am willing to submit a pull request for this issue.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
- P4: importantViolate documented behavior or significantly improves performance (priority)Violate documented behavior or significantly improves performance (priority)