Skip to content

Commit

Permalink
fix(pug): don't trim template comments
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Jul 16, 2023
1 parent 81b7d4f commit b172328
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/vue-language-plugin-pug/src/index.ts
Expand Up @@ -22,6 +22,7 @@ const plugin: VueLanguagePlugin = ({ modules }) => {
const compiler = modules['@vue/compiler-dom'];
const completed = compiler.compile(pugFile.htmlCode, {
...options,
comments: true,
onWarn(warning) {
options?.onWarn?.(createProxyObject(warning));
},
Expand Down

0 comments on commit b172328

Please sign in to comment.