vuejs / component-compiler-utils

Lower level utilities for compiling Vue single file components
319 stars 75 forks source link

Set Pug's doctype option to html by default #58

Open aantipov opened 5 years ago

aantipov commented 5 years ago

Pug's doctype option is set to html by default in pug-plain-loader. The reasoning is also explained there:

The doctype option is set to html by default, since most Vue templates are HTML fragments without explicit doctype.

The same we should do here in component-compiler-utils (otherwise developers should figure it out and set it by themesevles https://github.com/vuejs/vue-jest/issues/170)

I can create a PR if we agree to do it