Skip to content

Commit e603fd2

Browse files
authoredJan 21, 2022
chore: fix typo (#5261) [ci skip]
1 parent e802275 commit e603fd2

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed
 

‎packages/compiler-core/src/babelUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean {
400400
case 'MetaProperty':
401401
return false
402402

403-
// yes: type X = { somePropert: NODE }
403+
// yes: type X = { someProperty: NODE }
404404
// no: type X = { NODE: OtherType }
405405
case 'ObjectTypeProperty':
406406
return parent.key !== node

‎packages/compiler-ssr/src/transforms/ssrTransformComponent.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import { isSymbol, isObject, isArray } from '@vue/shared'
5151

5252
// We need to construct the slot functions in the 1st pass to ensure proper
5353
// scope tracking, but the children of each slot cannot be processed until
54-
// the 2nd pass, so we store the WIP slot functions in a weakmap during the 1st
54+
// the 2nd pass, so we store the WIP slot functions in a weakMap during the 1st
5555
// pass and complete them in the 2nd pass.
5656
const wipMap = new WeakMap<ComponentNode, WIPSlotEntry[]>()
5757

‎packages/runtime-core/src/apiInject.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function inject(
4949
if (instance) {
5050
// #2400
5151
// to support `app.use` plugins,
52-
// fallback to appContext's `provides` if the intance is at root
52+
// fallback to appContext's `provides` if the instance is at root
5353
const provides =
5454
instance.parent == null
5555
? instance.vnode.appContext && instance.vnode.appContext.provides

‎packages/runtime-core/src/apiSetupHelpers.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,16 @@ export function defineEmits() {
111111
* instance properties when it is accessed by a parent component via template
112112
* refs.
113113
*
114-
* `<script setup>` components are closed by default - i.e. varaibles inside
114+
* `<script setup>` components are closed by default - i.e. variables inside
115115
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
116116
* via `defineExpose`.
117117
*
118118
* This is only usable inside `<script setup>`, is compiled away in the
119119
* output and should **not** be actually called at runtime.
120120
*/
121-
export function defineExpose<Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) {
121+
export function defineExpose<
122+
Exposed extends Record<string, any> = Record<string, any>
123+
>(exposed?: Exposed) {
122124
if (__DEV__) {
123125
warnRuntimeUsage(`defineExpose`)
124126
}

‎packages/runtime-core/src/compat/instance.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
128128
// needed by many libs / render fns
129129
$vnode: i => i.vnode,
130130

131-
// inject addtional properties into $options for compat
131+
// inject additional properties into $options for compat
132132
// e.g. vuex needs this.$options.parent
133133
$options: i => {
134134
const res = extend({}, resolveMergedOptions(i))

‎packages/runtime-core/src/vnode.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ export function cloneVNode<T, U>(
623623
shapeFlag: vnode.shapeFlag,
624624
// if the vnode is cloned with extra props, we can no longer assume its
625625
// existing patch flag to be reliable and need to add the FULL_PROPS flag.
626-
// note: perserve flag for fragments since they use the flag for children
626+
// note: preserve flag for fragments since they use the flag for children
627627
// fast paths only.
628628
patchFlag:
629629
extraProps && vnode.type !== Fragment

‎scripts/dev.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const outfile = resolve(
3030
)
3131
const relativeOutfile = relative(process.cwd(), outfile)
3232

33-
// resolve extenrals
33+
// resolve externals
3434
// TODO this logic is largely duplicated from rollup.config.js
3535
let external = []
3636
if (!inlineDeps) {

0 commit comments

Comments
 (0)
Please sign in to comment.