Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix typo #5261

Merged
merged 1 commit into from Jan 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/compiler-core/src/babelUtils.ts
Expand Up @@ -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
Expand Down
Expand Up @@ -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[]>()

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiInject.ts
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions packages/runtime-core/src/apiSetupHelpers.ts
Expand Up @@ -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`)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/compat/instance.ts
Expand Up @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/vnode.ts
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/dev.js
Expand Up @@ -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) {
Expand Down