Skip to content

Commit

Permalink
fix: directive comments not working in production builds
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed May 22, 2023
1 parent 0e94112 commit 6d2872a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/vue-language-core/src/plugins/vue-template-html.ts
Expand Up @@ -20,7 +20,10 @@ const plugin: VueLanguagePlugin = ({ modules }) => {

const compiler = modules['@vue/compiler-dom'];

return compiler.compile(template, options);
return compiler.compile(template, {
...options,
comments: true,
});
}
},

Expand Down

0 comments on commit 6d2872a

Please sign in to comment.