We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5ea150a commit 234fe86Copy full SHA for 234fe86
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*(async\s*)?(\([^)]*?\)|[\w$_]+)\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