SFC top level await with single-line if condition is being compiled incorrectly #4596
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: script-setup
Version
3.2.11
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Check the JavaScript console output in the reproduction link.
What is expected?
The
console.error()
should never be executed.What is actually happening?
The
console.error()
is being executed when a single-lineif
statement is used (it works correctly withif
statements that have curly brackets).The text was updated successfully, but these errors were encountered: