$ the-wire · showcase
Compiler-SFC fix restores await scope in nested blocks
By RepoJournal · Filed · About Vue.js
vuejs/core fixes an await scope leak in compiler-sfc that could break code generation inside nested blocks.
vuejs/core landed a compiler-sfc fix [1] that restores the await scope when leaving nested blocks, closing issue #15465. The bug caused the compiler to lose track of the async context after exiting a nested block, which could lead to incorrect code generation for await expressions in those scopes.
This is a targeted fix for the SFC compiler. If you use await inside nested blocks within script setup or composition APIs, this restores the intended behavior. No breaking changes are introduced.
Action items
References