chore: fix some typos (#5050) [ci skip]

This commit is contained in:
Forzen FIsh 2021-12-12 09:58:46 +08:00 committed by GitHub
parent 7e4f0a8694
commit 57a09331b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -330,7 +330,7 @@ function getGeneratedPropsConstantType(
} else if (value.type === NodeTypes.JS_CALL_EXPRESSION) { } else if (value.type === NodeTypes.JS_CALL_EXPRESSION) {
// some helper calls can be hoisted, // some helper calls can be hoisted,
// such as the `normalizeProps` generated by the compiler for pre-normalize class, // such as the `normalizeProps` generated by the compiler for pre-normalize class,
// in this case we need to respect the ConstantType of the helper's argments // in this case we need to respect the ConstantType of the helper's arguments
valueType = getConstantTypeOfHelperCall(value, context) valueType = getConstantTypeOfHelperCall(value, context)
} else { } else {
valueType = ConstantTypes.NOT_CONSTANT valueType = ConstantTypes.NOT_CONSTANT

View File

@ -602,7 +602,7 @@ const methodsToPatch = [
const patched = new WeakSet<object>() const patched = new WeakSet<object>()
function defineReactive(obj: any, key: string, val: any) { function defineReactive(obj: any, key: string, val: any) {
// it's possible for the orignial object to be mutated after being defined // it's possible for the original object to be mutated after being defined
// and expecting reactivity... we are covering it here because this seems to // and expecting reactivity... we are covering it here because this seems to
// be a bit more common. // be a bit more common.
if (isObject(val) && !isReactive(val) && !patched.has(val)) { if (isObject(val) && !isReactive(val) && !patched.has(val)) {

View File

@ -29,7 +29,7 @@ export function initFeatureFlags() {
`which expects these compile-time feature flags to be globally injected ` + `which expects these compile-time feature flags to be globally injected ` +
`via the bundler config in order to get better tree-shaking in the ` + `via the bundler config in order to get better tree-shaking in the ` +
`production bundle.\n\n` + `production bundle.\n\n` +
`For more details, see http://link.vuejs.org/feature-flags.` `For more details, see https://link.vuejs.org/feature-flags.`
) )
} }
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "vue", "name": "vue",
"version": "3.2.24", "version": "3.2.24",
"description": "The progressive JavaScript framework for buiding modern web UI.", "description": "The progressive JavaScript framework for building modern web UI.",
"main": "index.js", "main": "index.js",
"module": "dist/vue.runtime.esm-bundler.js", "module": "dist/vue.runtime.esm-bundler.js",
"types": "dist/vue.d.ts", "types": "dist/vue.d.ts",