Vue-loader: Allow functional components to have multiple root elements

Created on 19 Feb 2018  路  13Comments  路  Source: vuejs/vue-loader

What problem does this feature solve?

As discussed in https://github.com/vuejs/vue/issues/7088 multiple root elements are not currently possible in Vue components, with @LinusBorg stating that multiple root elements will not be supported (in the general case) any time soon.

The exception to this is for functional components, where multiple root elements are allowed. Here's a jsfiddle from @trusktr showing it, though using a render function:
https://jsfiddle.net/b049qboe/1/

This feature would allow multiple root elements in