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 674ea6a commit c3de2a4Copy full SHA for c3de2a4
lib/loader.js
@@ -89,7 +89,7 @@ module.exports = function (content) {
89
var output = ''
90
var parts = parse(content, fileName, this.sourceMap)
91
var hasScoped = parts.styles.some(function (s) { return s.scoped })
92
- var hasComment = parts.template && parts.template.attrs.comments
+ var hasComment = parts.template && parts.template.attrs && parts.template.attrs.comments
93
94
var templateCompilerOptions = '?' + JSON.stringify({
95
id: moduleId,
0 commit comments