|
|
@@ -1,5 +1,4 @@
|
|
|
import { isArray } from '@vue/shared'
|
|
|
-import { warn } from '@vue/runtime-dom'
|
|
|
import type { Block } from '../block'
|
|
|
import { isVaporComponent } from '../component'
|
|
|
|
|
|
@@ -17,8 +16,6 @@ export function setBlockKey(
|
|
|
} else if (isArray(block)) {
|
|
|
if (block.length === 1) {
|
|
|
setBlockKey(block[0], key)
|
|
|
- } else if (__DEV__ && block.length > 1) {
|
|
|
- warn(`key cannot be applied to multiple root elements.`)
|
|
|
}
|
|
|
} else {
|
|
|
block.$key = key
|