|
|
@@ -205,6 +205,18 @@ exports.compileRoot = function (el, options) {
|
|
|
// non-component, just compile as a normal element.
|
|
|
replacerLinkFn = compileDirectives(el.attributes, options)
|
|
|
}
|
|
|
+ } else if (process.env.NODE_ENV !== 'production' && containerAttrs) {
|
|
|
+ // warn container directives for fragment instances
|
|
|
+ containerAttrs.forEach(function (attr) {
|
|
|
+ if (attr.name.indexOf('v-') === 0 || attr.name === 'transition') {
|
|
|
+ _.warn(
|
|
|
+ attr.name + ' is ignored on component ' +
|
|
|
+ '<' + options.el.tagName.toLowerCase() + '> because ' +
|
|
|
+ 'the component is a fragment instance: ' +
|
|
|
+ 'http://vuejs.org/guide/components.html#Fragment_Instance'
|
|
|
+ )
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
|
|
|
return function rootLinkFn (vm, el, scope) {
|