We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f229397 commit 29f265dCopy full SHA for 29f265d
src/core/instance/inject.js
@@ -3,7 +3,7 @@
3
import { hasSymbol } from 'core/util/env'
4
import { warn } from '../util/index'
5
import { defineReactive } from '../observer/index'
6
-import { hasOwn } from '../../shared/util'
+import { hasOwn } from 'shared/util'
7
8
export function initProvide (vm: Component) {
9
const provide = vm.$options.provide
@@ -58,8 +58,9 @@ export function resolveInject (inject: any, vm: Component): ?Object {
58
}
59
source = source.$parent
60
61
- process.env.NODE_ENV !== 'production' && !hasOwn(result, key) &&
+ if (process.env.NODE_ENV !== 'production' && !hasOwn(result, key)) {
62
warn(`Injection "${key}" not found`, vm)
63
+ }
64
65
return result
66
0 commit comments