wip: compat integration progress

This commit is contained in:
Evan You
2021-04-20 09:25:12 -04:00
parent 7dc681c196
commit f6dee53270
10 changed files with 183 additions and 22 deletions

View File

@@ -80,7 +80,7 @@ const normalizeObjectSlots = (rawSlots: RawSlots, slots: InternalSlots) => {
if (isFunction(value)) {
slots[key] = normalizeSlot(key, value, ctx)
} else if (value != null) {
if (__DEV__) {
if (__DEV__ && !__COMPAT__) {
warn(
`Non-function value encountered for slot "${key}". ` +
`Prefer function slots for better performance.`