vuejs / vueify

Browserify transform for single-file Vue components
MIT License
1.17k stars 153 forks source link

Make template compilation errors handling more abstract #216

Open vladfaust opened 6 years ago

vladfaust commented 6 years ago

https://github.com/vuejs/vueify/blob/8d3159ff7d41bfaf1662056436a4252ea07219aa/lib/template-compiler.js#L8-L11

The only way to see an exact Vue-specific template compilation error (e.g. Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.) is to look into the terminal.

It would be more convenient to include these errors into Error itself, so, for example, bumo could render it.