Skip to content

Commit

Permalink
fix(compiler-sfc): fix defineEmits() scope reference check error mess…
Browse files Browse the repository at this point in the history
…age (#5404)
  • Loading branch information
godxiaoji committed May 13, 2022
1 parent 6283b2e commit f2c48f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compiler-sfc/src/compileScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit f2c48f5

Please sign in to comment.