We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3237a commit 051407dCopy full SHA for 051407d
packages/compiler-core/src/transforms/vOn.ts
@@ -17,7 +17,7 @@ import { hasScopeRef, isMemberExpression } from '../utils'
17
import { TO_HANDLER_KEY } from '../runtimeHelpers'
18
19
const fnExpRE =
20
- /^\s*([\w$_]+|(async\s*)?\([^)]*?\))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/
+ /^\s*([\w$_]+|(async\s*)?(\([^)]*?\)|[^=]+))\s*=>|^\s*(async\s+)?function(?:\s+[\w$]+)?\s*\(/
21
22
export interface VOnDirectiveNode extends DirectiveNode {
23
// v-on without arg is handled directly in ./transformElements.ts due to it affecting
0 commit comments