fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404)

This commit is contained in:
Travis 2022-05-13 09:08:28 +08:00 committed by GitHub
parent 6283b2ec41
commit f2c48f5352
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1207,7 +1207,7 @@ export function compileScript(
checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS)
checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS)
checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS)
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_PROPS)
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_EMITS)
// 6. remove non-script content
if (script) {