fix(es/parser): Disallow spread operator(...) in JSX attribute values#10587
fix(es/parser): Disallow spread operator(...) in JSX attribute values#10587kdy1 merged 3 commits intoswc-project:mainfrom
...) in JSX attribute values#10587Conversation
🦋 Changeset detectedLatest commit: dee04f6 The changes in this PR will be included in the next version bump. 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 |
CodSpeed Performance ReportMerging #10587 will not alter performanceComparing Summary
|
|
I noticed the spread operator ( |
|
Alright, I've identified the root cause. TypeScript's parser uses the same This was confirmed by TypeScript's fix in microsoft/TypeScript#55284. To align with this behavior, we should update our test cases to treat spread operators in JSX attributes as syntax errors. |
...) in JSX attribute values
Related issue: