From e603fd258c1576082625943ac8b34407f5847665 Mon Sep 17 00:00:00 2001 From: Yugang Cao <34439652+Talljack@users.noreply.github.com> Date: Fri, 21 Jan 2022 14:18:34 +0800 Subject: [PATCH] chore: fix typo (#5261) [ci skip] --- packages/compiler-core/src/babelUtils.ts | 2 +- .../compiler-ssr/src/transforms/ssrTransformComponent.ts | 2 +- packages/runtime-core/src/apiInject.ts | 2 +- packages/runtime-core/src/apiSetupHelpers.ts | 6 ++++-- packages/runtime-core/src/compat/instance.ts | 2 +- packages/runtime-core/src/vnode.ts | 2 +- scripts/dev.js | 2 +- 7 files changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/compiler-core/src/babelUtils.ts b/packages/compiler-core/src/babelUtils.ts index 738bf6ad353..e773015f90f 100644 --- a/packages/compiler-core/src/babelUtils.ts +++ b/packages/compiler-core/src/babelUtils.ts @@ -400,7 +400,7 @@ function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean { case 'MetaProperty': return false - // yes: type X = { somePropert: NODE } + // yes: type X = { someProperty: NODE } // no: type X = { NODE: OtherType } case 'ObjectTypeProperty': return parent.key !== node diff --git a/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts b/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts index 609950040e7..e4cd2698d1b 100644 --- a/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts +++ b/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts @@ -51,7 +51,7 @@ import { isSymbol, isObject, isArray } from '@vue/shared' // We need to construct the slot functions in the 1st pass to ensure proper // scope tracking, but the children of each slot cannot be processed until -// the 2nd pass, so we store the WIP slot functions in a weakmap during the 1st +// the 2nd pass, so we store the WIP slot functions in a weakMap during the 1st // pass and complete them in the 2nd pass. const wipMap = new WeakMap() diff --git a/packages/runtime-core/src/apiInject.ts b/packages/runtime-core/src/apiInject.ts index 1cf5771c582..c5c47876cb3 100644 --- a/packages/runtime-core/src/apiInject.ts +++ b/packages/runtime-core/src/apiInject.ts @@ -49,7 +49,7 @@ export function inject( if (instance) { // #2400 // to support `app.use` plugins, - // fallback to appContext's `provides` if the intance is at root + // fallback to appContext's `provides` if the instance is at root const provides = instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index 64f5aa865f1..155c8cd19cc 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -111,14 +111,16 @@ export function defineEmits() { * instance properties when it is accessed by a parent component via template * refs. * - * `