Question - What is the purpose of vuejs compiler?
Answer -
The compiler is is responsible for compiling template strings into JavaScript render functions.
For example, the below code snippet shows the difference of templates which need compiler and not,
// this requires the compiler
new Vue({
template: '
{{ message }}
'
})
// this does not
new Vue({
render (h) {
return h('div', this.message)
}
})