feat(compiler-sfc): <script setup> support (experimental)
This is the last commit for the feature which adds async/await detection.
This commit is contained in:
@@ -263,8 +263,9 @@ export function processExpression(
|
||||
return ret
|
||||
}
|
||||
|
||||
const isFunction = (node: Node): node is Function =>
|
||||
/Function(Expression|Declaration)$/.test(node.type)
|
||||
const isFunction = (node: Node): node is Function => {
|
||||
return /Function(?:Expression|Declaration)$|Method$/.test(node.type)
|
||||
}
|
||||
|
||||
const isStaticProperty = (node: Node): node is ObjectProperty =>
|
||||
node &&
|
||||
|
||||
Reference in New Issue
Block a user