phoenix-ru / fervid

All-in-One Vue compiler written in Rust
https://phoenix-ru.github.io/fervid/
Apache License 2.0
371 stars 9 forks source link

Implement `await` detection #20

Closed phoenix-ru closed 5 months ago

phoenix-ru commented 7 months ago

Current detection only works for the top-most level. The spec requires nested detection except for functions.

Spec: https://github.com/vuejs/core/blob/272ab9fbdcb1af0535108b9f888e80d612f9171d/packages/compiler-sfc/__tests__/compileScript.spec.ts#L748-L860