async transformer doesn't correctly detect need for semicolon in block #5808
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: compiler
scope: script-setup
Version
3.2.33
Reproduction link
sfc.vuejs.org/
Steps to reproduce
Nest an async call in a block following a string and it will not correctly detect that it needs a semicolon.
What is expected?
A semicolon should be inserted.
What is actually happening?
No semicolon is inserted.
Related:
core/packages/compiler-sfc/src/compileScript.ts
Lines 1070 to 1072 in 4a3237a
The text was updated successfully, but these errors were encountered: