]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix typo (#5261) [ci skip]
authorYugang Cao <34439652+Talljack@users.noreply.github.com>
Fri, 21 Jan 2022 06:18:34 +0000 (14:18 +0800)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 06:18:34 +0000 (01:18 -0500)
packages/compiler-core/src/babelUtils.ts
packages/compiler-ssr/src/transforms/ssrTransformComponent.ts
packages/runtime-core/src/apiInject.ts
packages/runtime-core/src/apiSetupHelpers.ts
packages/runtime-core/src/compat/instance.ts
packages/runtime-core/src/vnode.ts
scripts/dev.js

index 738bf6ad353901688662a3fae2258cb8edb0be21..e773015f90f82da90ceb3045bb18fc1351a7630b 100644 (file)
@@ -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
index 609950040e7f4b31eae9041091d7e858414cce85..e4cd2698d1b8b3382777c133ace81a20e324a629 100644 (file)
@@ -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<ComponentNode, WIPSlotEntry[]>()
 
index 1cf5771c58242ce139eaddb4baa5bf173db7061b..c5c47876cb37c16cd00dfb1e6386c7d71be392f0 100644 (file)
@@ -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
index 64f5aa865f121640e040f993623362d755b62e1b..155c8cd19cc8ab8349810e07616b7deea108e95d 100644 (file)
@@ -111,14 +111,16 @@ export function defineEmits() {
  * instance properties when it is accessed by a parent component via template
  * refs.
  *
- * `<script setup>` components are closed by default - i.e. varaibles inside
+ * `<script setup>` components are closed by default - i.e. variables inside
  * the `<script setup>` scope is not exposed to parent unless explicitly exposed
  * via `defineExpose`.
  *
  * This is only usable inside `<script setup>`, is compiled away in the
  * output and should **not** be actually called at runtime.
  */
-export function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) {
+export function defineExpose<
+  Exposed extends Record<string, any> = Record<string, any>
+>(exposed?: Exposed) {
   if (__DEV__) {
     warnRuntimeUsage(`defineExpose`)
   }
index cc90395613da37c867c59af453af44c8502ea905..01e6618d45bfe20ff6ddb3421600ed82557169b1 100644 (file)
@@ -128,7 +128,7 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
       // needed by many libs / render fns
       $vnode: i => i.vnode,
 
-      // inject addtional properties into $options for compat
+      // inject additional properties into $options for compat
       // e.g. vuex needs this.$options.parent
       $options: i => {
         const res = extend({}, resolveMergedOptions(i))
index 059d8ba3a29252deb02ab4284346c2d4ff05a645..60ea0f718cfd32063451d4cfe4b1f1e54ca41020 100644 (file)
@@ -623,7 +623,7 @@ export function cloneVNode<T, U>(
     shapeFlag: vnode.shapeFlag,
     // if the vnode is cloned with extra props, we can no longer assume its
     // existing patch flag to be reliable and need to add the FULL_PROPS flag.
-    // note: perserve flag for fragments since they use the flag for children
+    // note: preserve flag for fragments since they use the flag for children
     // fast paths only.
     patchFlag:
       extraProps && vnode.type !== Fragment
index 621cbe63f055771667e1b487ef13fc9ed905e222..a197ea21d8c13bd06bdd59573698813384f704b1 100644 (file)
@@ -30,7 +30,7 @@ const outfile = resolve(
 )
 const relativeOutfile = relative(process.cwd(), outfile)
 
-// resolve extenrals
+// resolve externals
 // TODO this logic is largely duplicated from rollup.config.js
 let external = []
 if (!inlineDeps) {