Vue should be able to generate source maps for <template> blocks. We can enable source maps today, but when an error occurs in a template, it's not entirely helpful:

There should be a way to enable source maps via vue.config.js that would signal the template compiler to generate source maps (if possible?) in raw markup.
You can create a feature request if it doesn't exist already in vue-loader repo
This is something we are working on for v3.
Most helpful comment
This is something we are working on for v3.