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. * - * `