fix(compiler-sfc): fix defineEmits() scope reference check error message (#5404)
This commit is contained in:
@@ -1207,7 +1207,7 @@ export function compileScript(
|
|||||||
checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS)
|
checkInvalidScopeReference(propsRuntimeDecl, DEFINE_PROPS)
|
||||||
checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS)
|
checkInvalidScopeReference(propsRuntimeDefaults, DEFINE_PROPS)
|
||||||
checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS)
|
checkInvalidScopeReference(propsDestructureDecl, DEFINE_PROPS)
|
||||||
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_PROPS)
|
checkInvalidScopeReference(emitsRuntimeDecl, DEFINE_EMITS)
|
||||||
|
|
||||||
// 6. remove non-script content
|
// 6. remove non-script content
|
||||||
if (script) {
|
if (script) {
|
||||||
|
|||||||
Reference in New Issue
Block a user