We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a92e559 commit bb09fccCopy full SHA for bb09fcc
lib/loader.js
@@ -89,11 +89,13 @@ module.exports = async function (content, sourceMap) {
89
}
90
if (component.template.lang === 'pug') {
91
const pug = requirePeer('pug')
92
- component.template.content = pug.compile(component.template.content)()
+ try {
93
+ component.template.content = pug.render(component.template.content)
94
+ } catch (err) {/* Ignore compilation errors, they'll be picked up by other loaders */}
95
96
compiler.compile(component.template.content, {
97
modules: [{
- postTransformNode: node => {
98
+ postTransformNode: node => {
99
Object.keys(node.attrsMap).forEach(attr => attrs.add(attr))
100
tags.add(node.tag)
101
0 commit comments