refactor(compiler): improve member expression check for v-on & v-model
This commit is contained in:
@@ -14,6 +14,7 @@ import { defaultOnError, createCompilerError, ErrorCodes } from './errors'
|
||||
import { trackSlotScopes, trackVForSlotScopes } from './transforms/vSlot'
|
||||
import { optimizeText } from './transforms/optimizeText'
|
||||
import { transformOnce } from './transforms/vOnce'
|
||||
import { transformModel } from './transforms/vModel'
|
||||
|
||||
export type CompilerOptions = ParserOptions & TransformOptions & CodegenOptions
|
||||
|
||||
@@ -62,6 +63,7 @@ export function baseCompile(
|
||||
on: transformOn,
|
||||
bind: transformBind,
|
||||
once: transformOnce,
|
||||
model: transformModel,
|
||||
...(options.directiveTransforms || {}) // user transforms
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user