chore: fix typo (#5261) [ci skip]
This commit is contained in:
parent
e8022755ae
commit
e603fd258c
@ -400,7 +400,7 @@ function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean {
|
|||||||
case 'MetaProperty':
|
case 'MetaProperty':
|
||||||
return false
|
return false
|
||||||
|
|
||||||
// yes: type X = { somePropert: NODE }
|
// yes: type X = { someProperty: NODE }
|
||||||
// no: type X = { NODE: OtherType }
|
// no: type X = { NODE: OtherType }
|
||||||
case 'ObjectTypeProperty':
|
case 'ObjectTypeProperty':
|
||||||
return parent.key !== node
|
return parent.key !== node
|
||||||
|
@ -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
|
// 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
|
// 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.
|
// pass and complete them in the 2nd pass.
|
||||||
const wipMap = new WeakMap<ComponentNode, WIPSlotEntry[]>()
|
const wipMap = new WeakMap<ComponentNode, WIPSlotEntry[]>()
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@ export function inject(
|
|||||||
if (instance) {
|
if (instance) {
|
||||||
// #2400
|
// #2400
|
||||||
// to support `app.use` plugins,
|
// 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 =
|
const provides =
|
||||||
instance.parent == null
|
instance.parent == null
|
||||||
? instance.vnode.appContext && instance.vnode.appContext.provides
|
? instance.vnode.appContext && instance.vnode.appContext.provides
|
||||||
|
@ -111,14 +111,16 @@ export function defineEmits() {
|
|||||||
* instance properties when it is accessed by a parent component via template
|
* instance properties when it is accessed by a parent component via template
|
||||||
* refs.
|
* 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
|
* the `<script setup>` scope is not exposed to parent unless explicitly exposed
|
||||||
* via `defineExpose`.
|
* via `defineExpose`.
|
||||||
*
|
*
|
||||||
* This is only usable inside `<script setup>`, is compiled away in the
|
* This is only usable inside `<script setup>`, is compiled away in the
|
||||||
* output and should **not** be actually called at runtime.
|
* 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__) {
|
if (__DEV__) {
|
||||||
warnRuntimeUsage(`defineExpose`)
|
warnRuntimeUsage(`defineExpose`)
|
||||||
}
|
}
|
||||||
|
@ -128,7 +128,7 @@ export function installCompatInstanceProperties(map: PublicPropertiesMap) {
|
|||||||
// needed by many libs / render fns
|
// needed by many libs / render fns
|
||||||
$vnode: i => i.vnode,
|
$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
|
// e.g. vuex needs this.$options.parent
|
||||||
$options: i => {
|
$options: i => {
|
||||||
const res = extend({}, resolveMergedOptions(i))
|
const res = extend({}, resolveMergedOptions(i))
|
||||||
|
@ -623,7 +623,7 @@ export function cloneVNode<T, U>(
|
|||||||
shapeFlag: vnode.shapeFlag,
|
shapeFlag: vnode.shapeFlag,
|
||||||
// if the vnode is cloned with extra props, we can no longer assume its
|
// 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.
|
// 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.
|
// fast paths only.
|
||||||
patchFlag:
|
patchFlag:
|
||||||
extraProps && vnode.type !== Fragment
|
extraProps && vnode.type !== Fragment
|
||||||
|
@ -30,7 +30,7 @@ const outfile = resolve(
|
|||||||
)
|
)
|
||||||
const relativeOutfile = relative(process.cwd(), outfile)
|
const relativeOutfile = relative(process.cwd(), outfile)
|
||||||
|
|
||||||
// resolve extenrals
|
// resolve externals
|
||||||
// TODO this logic is largely duplicated from rollup.config.js
|
// TODO this logic is largely duplicated from rollup.config.js
|
||||||
let external = []
|
let external = []
|
||||||
if (!inlineDeps) {
|
if (!inlineDeps) {
|
||||||
|
Loading…
Reference in New Issue
Block a user