Vuejs has a nice component compiler: https://github.com/vuejs/vue-component-compiler
It puts JS inside of a script tag, which would fix some of the parsing issues, and also fix syntax highlighting. It also provides hooks for pre-processors. Have you considered this approach?
Vuejs has a nice component compiler: https://github.com/vuejs/vue-component-compiler
It puts JS inside of a script tag, which would fix some of the parsing issues, and also fix syntax highlighting. It also provides hooks for pre-processors. Have you considered this approach?